<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <roleRef roleURI="http://cognex.com/role/AccruedExpenses" xlink:href="cgnx-20151231.xsd#AccruedExpenses" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/AccruedExpensesChangesInWarrantyObligationsDetail" xlink:href="cgnx-20151231.xsd#AccruedExpensesChangesInWarrantyObligationsDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/AccruedExpensesConstituentsOfAccruedExpensesDetail" xlink:href="cgnx-20151231.xsd#AccruedExpensesConstituentsOfAccruedExpensesDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/AccruedExpensesTables" xlink:href="cgnx-20151231.xsd#AccruedExpensesTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/AcquisitionOfSelectedAssetsOfManateeWorksInc" xlink:href="cgnx-20151231.xsd#AcquisitionOfSelectedAssetsOfManateeWorksInc" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/AcquisitionOfSelectedAssetsOfManateeWorksIncAcquisitionOfSelectedAssetsOfManateeWorksIncContingentConsiderationDetails" xlink:href="cgnx-20151231.xsd#AcquisitionOfSelectedAssetsOfManateeWorksIncAcquisitionOfSelectedAssetsOfManateeWorksIncContingentConsiderationDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/AcquisitionOfSelectedAssetsOfManateeWorksIncAcquisitionOfSelectedAssetsOfManateeWorksIncDetails" xlink:href="cgnx-20151231.xsd#AcquisitionOfSelectedAssetsOfManateeWorksIncAcquisitionOfSelectedAssetsOfManateeWorksIncDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/AcquisitionOfSelectedAssetsOfManateeWorksIncAcquisitionOfSelectedAssetsOfManateeWorksIncTables" xlink:href="cgnx-20151231.xsd#AcquisitionOfSelectedAssetsOfManateeWorksIncAcquisitionOfSelectedAssetsOfManateeWorksIncTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CashCashEquivalentsAndInvestments" xlink:href="cgnx-20151231.xsd#CashCashEquivalentsAndInvestments" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CashCashEquivalentsAndInvestmentsAdditionalInformationDetail" xlink:href="cgnx-20151231.xsd#CashCashEquivalentsAndInvestmentsAdditionalInformationDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CashCashEquivalentsAndInvestmentsAmortizedCostToFairValueDetail" xlink:href="cgnx-20151231.xsd#CashCashEquivalentsAndInvestmentsAmortizedCostToFairValueDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CashCashEquivalentsAndInvestmentsComponentsOfCashCashEquivalentsAndInvestmentsDetail" xlink:href="cgnx-20151231.xsd#CashCashEquivalentsAndInvestmentsComponentsOfCashCashEquivalentsAndInvestmentsDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CashCashEquivalentsAndInvestmentsEffectiveMaturityDatesOfAvailableForSaleInvestmentsDetail" xlink:href="cgnx-20151231.xsd#CashCashEquivalentsAndInvestmentsEffectiveMaturityDatesOfAvailableForSaleInvestmentsDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CashCashEquivalentsAndInvestmentsGrossUnrealizedLossesAndFairValueForAvailableForSaleInvestmentsDetail" xlink:href="cgnx-20151231.xsd#CashCashEquivalentsAndInvestmentsGrossUnrealizedLossesAndFairValueForAvailableForSaleInvestmentsDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CashCashEquivalentsAndInvestmentsTables" xlink:href="cgnx-20151231.xsd#CashCashEquivalentsAndInvestmentsTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CommitmentsAndContingencies" xlink:href="cgnx-20151231.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" xlink:href="cgnx-20151231.xsd#CommitmentsAndContingenciesAdditionalInformationDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CommitmentsAndContingenciesFutureMinimumRentalPaymentsUnderLeaseAgreementsDetail" xlink:href="cgnx-20151231.xsd#CommitmentsAndContingenciesFutureMinimumRentalPaymentsUnderLeaseAgreementsDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CommitmentsAndContingenciesFutureMinimumRentalReceiptsUnderNonCancelableLeaseAgreementsDetail" xlink:href="cgnx-20151231.xsd#CommitmentsAndContingenciesFutureMinimumRentalReceiptsUnderNonCancelableLeaseAgreementsDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/CommitmentsAndContingenciesTables" xlink:href="cgnx-20151231.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ConsolidatedBalanceSheets" xlink:href="cgnx-20151231.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="cgnx-20151231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="cgnx-20151231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="cgnx-20151231.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:href="cgnx-20151231.xsd#ConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ConsolidatedStatementsOfOperations" xlink:href="cgnx-20151231.xsd#ConsolidatedStatementsOfOperations" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ConsolidatedStatementsOfOperationsParenthetical" xlink:href="cgnx-20151231.xsd#ConsolidatedStatementsOfOperationsParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ConsolidatedStatementsOfShareholdersEquity" xlink:href="cgnx-20151231.xsd#ConsolidatedStatementsOfShareholdersEquity" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ConsolidatedStatementsOfShareholdersEquityParenthetical" xlink:href="cgnx-20151231.xsd#ConsolidatedStatementsOfShareholdersEquityParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DerivativeInstruments" xlink:href="cgnx-20151231.xsd#DerivativeInstruments" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DerivativeInstrumentsBalanceSheetLocationDetails" xlink:href="cgnx-20151231.xsd#DerivativeInstrumentsBalanceSheetLocationDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DerivativeInstrumentsChangesInAociDetails" xlink:href="cgnx-20151231.xsd#DerivativeInstrumentsChangesInAociDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsAdditionalDetailsDetails" xlink:href="cgnx-20151231.xsd#DerivativeInstrumentsDerivativeInstrumentsAdditionalDetailsDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsAssetsAndLiabilitiesPresentedOnNetBasisDueToRightOfOffsetDetails" xlink:href="cgnx-20151231.xsd#DerivativeInstrumentsDerivativeInstrumentsAssetsAndLiabilitiesPresentedOnNetBasisDueToRightOfOffsetDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeLossDetails" xlink:href="cgnx-20151231.xsd#DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeLossDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsDetails" xlink:href="cgnx-20151231.xsd#DerivativeInstrumentsOutstandingForwardContractsDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DerivativeInstrumentsTables" xlink:href="cgnx-20151231.xsd#DerivativeInstrumentsTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DiscontinuedOperations" xlink:href="cgnx-20151231.xsd#DiscontinuedOperations" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DiscontinuedOperationsDiscontinuedOperationsDetails" xlink:href="cgnx-20151231.xsd#DiscontinuedOperationsDiscontinuedOperationsDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DiscontinuedOperationsDiscontinuedOperationsScheduleOfDiscontinuedOperationsDetails" xlink:href="cgnx-20151231.xsd#DiscontinuedOperationsDiscontinuedOperationsScheduleOfDiscontinuedOperationsDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DiscontinuedOperationsDiscontinuedOperationsTables" xlink:href="cgnx-20151231.xsd#DiscontinuedOperationsDiscontinuedOperationsTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/DocumentAndEntityInformation" xlink:href="cgnx-20151231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/EmployeeSavingsPlan" xlink:href="cgnx-20151231.xsd#EmployeeSavingsPlan" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/EmployeeSavingsPlanAdditionalInformationDetail" xlink:href="cgnx-20151231.xsd#EmployeeSavingsPlanAdditionalInformationDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/FairValueMeasurements" xlink:href="cgnx-20151231.xsd#FairValueMeasurements" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/FairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetail" xlink:href="cgnx-20151231.xsd#FairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/FairValueMeasurementsTables" xlink:href="cgnx-20151231.xsd#FairValueMeasurementsTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/Goodwill" xlink:href="cgnx-20151231.xsd#Goodwill" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/GoodwillAdditionalInformationDetail" xlink:href="cgnx-20151231.xsd#GoodwillAdditionalInformationDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/GoodwillChangesInCarryingValueOfGoodwillDetail" xlink:href="cgnx-20151231.xsd#GoodwillChangesInCarryingValueOfGoodwillDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/GoodwillTables" xlink:href="cgnx-20151231.xsd#GoodwillTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/IndemnificationProvisions" xlink:href="cgnx-20151231.xsd#IndemnificationProvisions" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/IntangibleAssets" xlink:href="cgnx-20151231.xsd#IntangibleAssets" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/IntangibleAssetsAmortizedIntangibleAssetsDetail" xlink:href="cgnx-20151231.xsd#IntangibleAssetsAmortizedIntangibleAssetsDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/IntangibleAssetsEstimatedAmortizationExpenseSucceedingFiscalYearsDetail" xlink:href="cgnx-20151231.xsd#IntangibleAssetsEstimatedAmortizationExpenseSucceedingFiscalYearsDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/IntangibleAssetsTables" xlink:href="cgnx-20151231.xsd#IntangibleAssetsTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/Inventories" xlink:href="cgnx-20151231.xsd#Inventories" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/InventoriesInventoriesDetail" xlink:href="cgnx-20151231.xsd#InventoriesInventoriesDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/InventoriesTables" xlink:href="cgnx-20151231.xsd#InventoriesTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/NewPronouncements" xlink:href="cgnx-20151231.xsd#NewPronouncements" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/PropertyPlantAndEquipment" xlink:href="cgnx-20151231.xsd#PropertyPlantAndEquipment" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/PropertyPlantAndEquipmentAdditionalInformationDetails" xlink:href="cgnx-20151231.xsd#PropertyPlantAndEquipmentAdditionalInformationDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/PropertyPlantAndEquipmentPropertyPlantAndEquipmentDetail" xlink:href="cgnx-20151231.xsd#PropertyPlantAndEquipmentPropertyPlantAndEquipmentDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/PropertyPlantAndEquipmentTables" xlink:href="cgnx-20151231.xsd#PropertyPlantAndEquipmentTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ScheduleIiValuationAndQualifyingAccounts" xlink:href="cgnx-20151231.xsd#ScheduleIiValuationAndQualifyingAccounts" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ScheduleIiValuationAndQualifyingAccountsDetail" xlink:href="cgnx-20151231.xsd#ScheduleIiValuationAndQualifyingAccountsDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SegmentAndGeographicInformation" xlink:href="cgnx-20151231.xsd#SegmentAndGeographicInformation" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SegmentAndGeographicInformationAdditionalInformationDetail" xlink:href="cgnx-20151231.xsd#SegmentAndGeographicInformationAdditionalInformationDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SegmentAndGeographicInformationScheduleOfRevenueFromExternalCustomersAndLongLivedAssetsByGeographicalAreasDetail" xlink:href="cgnx-20151231.xsd#SegmentAndGeographicInformationScheduleOfRevenueFromExternalCustomersAndLongLivedAssetsByGeographicalAreasDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SegmentAndGeographicInformationTables" xlink:href="cgnx-20151231.xsd#SegmentAndGeographicInformationTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ShareholdersEquity" xlink:href="cgnx-20151231.xsd#ShareholdersEquity" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/ShareholdersEquityAdditionalInformationDetail" xlink:href="cgnx-20151231.xsd#ShareholdersEquityAdditionalInformationDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/StockBasedCompensation" xlink:href="cgnx-20151231.xsd#StockBasedCompensation" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/StockBasedCompensationExpenseAdditionalInformationDetail" xlink:href="cgnx-20151231.xsd#StockBasedCompensationExpenseAdditionalInformationDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseDetail" xlink:href="cgnx-20151231.xsd#StockBasedCompensationExpenseStockBasedCompensationExpenseDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/StockBasedCompensationExpenseSummaryOfStockOptionActivityDetail" xlink:href="cgnx-20151231.xsd#StockBasedCompensationExpenseSummaryOfStockOptionActivityDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/StockBasedCompensationExpenseWeightedAverageAssumptionsUsedInEstimatingFairValuesOfStockOptionsGrantedDetail" xlink:href="cgnx-20151231.xsd#StockBasedCompensationExpenseWeightedAverageAssumptionsUsedInEstimatingFairValuesOfStockOptionsGrantedDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/StockBasedCompensationStockBasedCompensationExpenseSummaryOfRestrictedStockOptionActivityDetailDetails" xlink:href="cgnx-20151231.xsd#StockBasedCompensationStockBasedCompensationExpenseSummaryOfRestrictedStockOptionActivityDetailDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/StockBasedCompensationTables" xlink:href="cgnx-20151231.xsd#StockBasedCompensationTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SubsequentEventsSubsequentEventsDetails" xlink:href="cgnx-20151231.xsd#SubsequentEventsSubsequentEventsDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SubsequentEventsSubsequentEventsNotes" xlink:href="cgnx-20151231.xsd#SubsequentEventsSubsequentEventsNotes" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="cgnx-20151231.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail" xlink:href="cgnx-20151231.xsd#SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesAdvertisingCostsDetails" xlink:href="cgnx-20151231.xsd#SummaryOfSignificantAccountingPoliciesAdvertisingCostsDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesComprehensiveIncomeLossDetails" xlink:href="cgnx-20151231.xsd#SummaryOfSignificantAccountingPoliciesComprehensiveIncomeLossDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesIntangibleAssetsDetails" xlink:href="cgnx-20151231.xsd#SummaryOfSignificantAccountingPoliciesIntangibleAssetsDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="cgnx-20151231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfSignificantAccountingPoliciesGoodwillDetails" xlink:href="cgnx-20151231.xsd#SummaryOfSignificantAccountingPoliciesSummaryOfSignificantAccountingPoliciesGoodwillDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesWarrantyDetails" xlink:href="cgnx-20151231.xsd#SummaryOfSignificantAccountingPoliciesWarrantyDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/Taxes" xlink:href="cgnx-20151231.xsd#Taxes" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/TaxesAdditionalInformationDetails" xlink:href="cgnx-20151231.xsd#TaxesAdditionalInformationDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/TaxesChangesInReserveForIncomeTaxesExcludingInterestAndPenaltiesDetails" xlink:href="cgnx-20151231.xsd#TaxesChangesInReserveForIncomeTaxesExcludingInterestAndPenaltiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/TaxesConstituentsOfDeferredTaxAssetsDetails" xlink:href="cgnx-20151231.xsd#TaxesConstituentsOfDeferredTaxAssetsDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/TaxesConstituentsOfProvisionForIncomeTaxesDetails" xlink:href="cgnx-20151231.xsd#TaxesConstituentsOfProvisionForIncomeTaxesDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/TaxesReconciliationOfUnitedStatesFederalStatutoryCorporateTaxRateToCompanysEffectiveTaxRateOrIncomeTaxProvisionDetails" xlink:href="cgnx-20151231.xsd#TaxesReconciliationOfUnitedStatesFederalStatutoryCorporateTaxRateToCompanysEffectiveTaxRateOrIncomeTaxProvisionDetails" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/TaxesTables" xlink:href="cgnx-20151231.xsd#TaxesTables" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/WeightedAverageShares" xlink:href="cgnx-20151231.xsd#WeightedAverageShares" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/WeightedAverageSharesAdditionalInformationDetail" xlink:href="cgnx-20151231.xsd#WeightedAverageSharesAdditionalInformationDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/WeightedAverageSharesCalculationOfWeightedAverageSharesDetail" xlink:href="cgnx-20151231.xsd#WeightedAverageSharesCalculationOfWeightedAverageSharesDetail" xlink:type="simple" />
  <roleRef roleURI="http://cognex.com/role/WeightedAverageSharesTables" xlink:href="cgnx-20151231.xsd#WeightedAverageSharesTables" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <definitionLink xlink:role="http://cognex.com/role/AccruedExpenses" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/AccruedExpensesChangesInWarrantyObligationsDetail" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/AccruedExpensesConstituentsOfAccruedExpensesDetail" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/AccruedExpensesTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/AcquisitionOfSelectedAssetsOfManateeWorksInc" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/AcquisitionOfSelectedAssetsOfManateeWorksIncAcquisitionOfSelectedAssetsOfManateeWorksIncContingentConsiderationDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/AcquisitionOfSelectedAssetsOfManateeWorksIncAcquisitionOfSelectedAssetsOfManateeWorksIncDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/AcquisitionOfSelectedAssetsOfManateeWorksIncAcquisitionOfSelectedAssetsOfManateeWorksIncTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/CashCashEquivalentsAndInvestments" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/CashCashEquivalentsAndInvestmentsAdditionalInformationDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_21CA2010FD6DB8AA3AE2A850BA96FFF3" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_8693DF5797687933F8D5A850BA955A66" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_21CA2010FD6DB8AA3AE2A850BA96FFF3" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_8693DF5797687933F8D5A850BA955A66" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_A286C49344A6668C7D34A850BA95EDFF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_8693DF5797687933F8D5A850BA955A66" xlink:to="loc_dei_LegalEntityAxis_A286C49344A6668C7D34A850BA95EDFF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_C93E5E15783E5B92DE67A850BA9689E3_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_A286C49344A6668C7D34A850BA95EDFF" xlink:to="loc_dei_EntityDomain_C93E5E15783E5B92DE67A850BA9689E3_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_C93E5E15783E5B92DE67A850BA9689E3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_A286C49344A6668C7D34A850BA95EDFF" xlink:to="loc_dei_EntityDomain_C93E5E15783E5B92DE67A850BA9689E3" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_DueFromForeignBanks" xlink:label="loc_cgnx_DueFromForeignBanks_FF273E57E84E58F1ACCEA850BA962281" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_21CA2010FD6DB8AA3AE2A850BA96FFF3" xlink:to="loc_cgnx_DueFromForeignBanks_FF273E57E84E58F1ACCEA850BA962281" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossRealizedGains" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGains_D1647EE300E1A7533C11A850BA96A12B" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_21CA2010FD6DB8AA3AE2A850BA96FFF3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGains_D1647EE300E1A7533C11A850BA96A12B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses_DDB350B9134F9E9DA32DA850BA96A063" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_21CA2010FD6DB8AA3AE2A850BA96FFF3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses_DDB350B9134F9E9DA32DA850BA96A063" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_MaximumInvestmentInLimitedPartnership" xlink:label="loc_cgnx_MaximumInvestmentInLimitedPartnership_5923EB4E2A3C13440C0CA850BA96EE42" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_21CA2010FD6DB8AA3AE2A850BA96FFF3" xlink:to="loc_cgnx_MaximumInvestmentInLimitedPartnership_5923EB4E2A3C13440C0CA850BA96EE42" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_ContributionToLimitedPartnership" xlink:label="loc_cgnx_ContributionToLimitedPartnership_9B82D55C01BB3F752338A850BA969E7B" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_21CA2010FD6DB8AA3AE2A850BA96FFF3" xlink:to="loc_cgnx_ContributionToLimitedPartnership_9B82D55C01BB3F752338A850BA969E7B" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_RemainingAmountOfCommitment" xlink:label="loc_cgnx_RemainingAmountOfCommitment_CF9F87930982CE2F066CA850BA96ECE1" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_21CA2010FD6DB8AA3AE2A850BA96FFF3" xlink:to="loc_cgnx_RemainingAmountOfCommitment_CF9F87930982CE2F066CA850BA96ECE1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ProceedsFromLimitedPartnershipInvestments" xlink:label="loc_us-gaap_ProceedsFromLimitedPartnershipInvestments_853D2459BA1C1C386653A850BA963DCC" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_21CA2010FD6DB8AA3AE2A850BA96FFF3" xlink:to="loc_us-gaap_ProceedsFromLimitedPartnershipInvestments_853D2459BA1C1C386653A850BA963DCC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CostMethodInvestments" xlink:label="loc_us-gaap_CostMethodInvestments_D0B429CBE696636CC32AA850BA96263A" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_21CA2010FD6DB8AA3AE2A850BA96FFF3" xlink:to="loc_us-gaap_CostMethodInvestments_D0B429CBE696636CC32AA850BA96263A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CostMethodInvestmentsFairValueDisclosure" xlink:label="loc_us-gaap_CostMethodInvestmentsFairValueDisclosure_0AED7413280DC1271AF7A850BA9672D1" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_21CA2010FD6DB8AA3AE2A850BA96FFF3" xlink:to="loc_us-gaap_CostMethodInvestmentsFairValueDisclosure_0AED7413280DC1271AF7A850BA9672D1" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/CashCashEquivalentsAndInvestmentsAmortizedCostToFairValueDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_ED1FD97AF5D5817E8CCDAD33F75C0541" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_131381656A86522A208EAD33F75BC090" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_ED1FD97AF5D5817E8CCDAD33F75C0541" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_131381656A86522A208EAD33F75BC090" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_F0F7750AAEBC0A805B43AD33F75B1C42" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_131381656A86522A208EAD33F75BC090" xlink:to="loc_dei_LegalEntityAxis_F0F7750AAEBC0A805B43AD33F75B1C42" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_95FC521BF291A16E04FBAD33F75BC533_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_F0F7750AAEBC0A805B43AD33F75B1C42" xlink:to="loc_dei_EntityDomain_95FC521BF291A16E04FBAD33F75BC533_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_95FC521BF291A16E04FBAD33F75BC533" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_F0F7750AAEBC0A805B43AD33F75B1C42" xlink:to="loc_dei_EntityDomain_95FC521BF291A16E04FBAD33F75BC533" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_CEA7CD699ADC351903F7AD33F75BCC7E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_131381656A86522A208EAD33F75BC090" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_CEA7CD699ADC351903F7AD33F75BCC7E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0302929A87137F150D1DAD33F75C73BC_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_CEA7CD699ADC351903F7AD33F75BCC7E" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0302929A87137F150D1DAD33F75C73BC_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0302929A87137F150D1DAD33F75C73BC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_CEA7CD699ADC351903F7AD33F75BCC7E" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0302929A87137F150D1DAD33F75C73BC" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_EuroliquidityfundMember" xlink:label="loc_cgnx_EuroliquidityfundMember_0EB941CEE74CC5B83476AD33F75C2509" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0302929A87137F150D1DAD33F75C73BC" xlink:to="loc_cgnx_EuroliquidityfundMember_0EB941CEE74CC5B83476AD33F75C2509" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_3684092FA1AE3F8E8B42AD33F75C95BA" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0302929A87137F150D1DAD33F75C73BC" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_3684092FA1AE3F8E8B42AD33F75C95BA" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AgencyBondsMember" xlink:label="loc_cgnx_AgencyBondsMember_88E4FF63E08BAF2C596CAD33F75C0E8F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0302929A87137F150D1DAD33F75C73BC" xlink:to="loc_cgnx_AgencyBondsMember_88E4FF63E08BAF2C596CAD33F75C0E8F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_9376543D82BC3E557300AD33F75CCD54" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0302929A87137F150D1DAD33F75C73BC" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_9376543D82BC3E557300AD33F75CCD54" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MunicipalBondsMember" xlink:label="loc_us-gaap_MunicipalBondsMember_C377FB1BCFCAF3FD400FAD33F75CF730" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0302929A87137F150D1DAD33F75C73BC" xlink:to="loc_us-gaap_MunicipalBondsMember_C377FB1BCFCAF3FD400FAD33F75CF730" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_USTreasurySecuritiesMember" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_BFAB8C6DB96925FA582DAD33F75C455F" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0302929A87137F150D1DAD33F75C73BC" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_BFAB8C6DB96925FA582DAD33F75C455F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SovereignDebtSecuritiesMember" xlink:label="loc_us-gaap_SovereignDebtSecuritiesMember_8D47E62C9DAE320D9DA4AD33F75CC629" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0302929A87137F150D1DAD33F75C73BC" xlink:to="loc_us-gaap_SovereignDebtSecuritiesMember_8D47E62C9DAE320D9DA4AD33F75CC629" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:label="loc_us-gaap_InvestmentTypeAxis_30E1DC4AFF320C62ACE7AD33F75C6929" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_131381656A86522A208EAD33F75BC090" xlink:to="loc_us-gaap_InvestmentTypeAxis_30E1DC4AFF320C62ACE7AD33F75C6929" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_6E9BD87B8194BC38A435AD33F75CE3A7_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_30E1DC4AFF320C62ACE7AD33F75C6929" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_6E9BD87B8194BC38A435AD33F75CE3A7_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_6E9BD87B8194BC38A435AD33F75CE3A7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_30E1DC4AFF320C62ACE7AD33F75C6929" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_6E9BD87B8194BC38A435AD33F75CE3A7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShortTermInvestmentsMember" xlink:label="loc_us-gaap_ShortTermInvestmentsMember_AE89C9B1738AE5539076AD33F75C7C75" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_6E9BD87B8194BC38A435AD33F75CE3A7" xlink:to="loc_us-gaap_ShortTermInvestmentsMember_AE89C9B1738AE5539076AD33F75C7C75" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_LongTermInvestmentsMember" xlink:label="loc_cgnx_LongTermInvestmentsMember_246D0234B7A0B8C60A8FAD33F75CDE5B" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_6E9BD87B8194BC38A435AD33F75CE3A7" xlink:to="loc_cgnx_LongTermInvestmentsMember_246D0234B7A0B8C60A8FAD33F75CDE5B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8445CF5353F5F61B2AC6AD33F75C135B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_ED1FD97AF5D5817E8CCDAD33F75C0541" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8445CF5353F5F61B2AC6AD33F75C135B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_0420DA598343AD97C159AD33F75C0EB5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_ED1FD97AF5D5817E8CCDAD33F75C0541" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_0420DA598343AD97C159AD33F75C0EB5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_427CD5A749CF7365AAE5AD33F75C2C1A" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_ED1FD97AF5D5817E8CCDAD33F75C0541" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_427CD5A749CF7365AAE5AD33F75C2C1A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_7B68E809E0EA0BDF1266AD33F75CDE8C" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_ED1FD97AF5D5817E8CCDAD33F75C0541" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_7B68E809E0EA0BDF1266AD33F75CDE8C" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/CashCashEquivalentsAndInvestmentsComponentsOfCashCashEquivalentsAndInvestmentsDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_EE9358ECB5FEB955C8F5B23CF24EE12E" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_ADB6997B0AE4F43C6A88B23CF24DF274" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_EE9358ECB5FEB955C8F5B23CF24EE12E" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_ADB6997B0AE4F43C6A88B23CF24DF274" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_87F42C1A6373E823201BB23CF24D4369" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_ADB6997B0AE4F43C6A88B23CF24DF274" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_87F42C1A6373E823201BB23CF24D4369" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_87F42C1A6373E823201BB23CF24D4369" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_87F42C1A6373E823201BB23CF24D4369" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_USTreasuryBillSecuritiesMember" xlink:label="loc_us-gaap_USTreasuryBillSecuritiesMember_695141177164A0F9E706B23CF24D1804" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084" xlink:to="loc_us-gaap_USTreasuryBillSecuritiesMember_695141177164A0F9E706B23CF24D1804" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_15867D52C941E1F8B086B23CF24E2441" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_15867D52C941E1F8B086B23CF24E2441" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_50F0095069164703BAC0B23CF24EEECB" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_50F0095069164703BAC0B23CF24EEECB" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_EuroliquidityfundMember" xlink:label="loc_cgnx_EuroliquidityfundMember_DC5A3626DFB17506F295B23CF24E1632" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084" xlink:to="loc_cgnx_EuroliquidityfundMember_DC5A3626DFB17506F295B23CF24E1632" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SovereignDebtSecuritiesMember" xlink:label="loc_us-gaap_SovereignDebtSecuritiesMember_1187DB818D0A26E06D9CB23CF24EC292" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084" xlink:to="loc_us-gaap_SovereignDebtSecuritiesMember_1187DB818D0A26E06D9CB23CF24EC292" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AgencyBondsMember" xlink:label="loc_cgnx_AgencyBondsMember_0275F6475C7408E78BEBB23CF24E31A8" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084" xlink:to="loc_cgnx_AgencyBondsMember_0275F6475C7408E78BEBB23CF24E31A8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MunicipalBondsMember" xlink:label="loc_us-gaap_MunicipalBondsMember_085C41A7772E8C925571B23CF24EE1B3" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084" xlink:to="loc_us-gaap_MunicipalBondsMember_085C41A7772E8C925571B23CF24EE1B3" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_SupranationalbondsMember" xlink:label="loc_cgnx_SupranationalbondsMember_17FC2205C3AA53E34500B23CF24EE72A" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_2B50EF7C83A67DD47A7AB23CF24DA084" xlink:to="loc_cgnx_SupranationalbondsMember_17FC2205C3AA53E34500B23CF24EE72A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_Cash" xlink:label="loc_us-gaap_Cash_50B9313771EF5550155BB23CF24E127A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_EE9358ECB5FEB955C8F5B23CF24EE12E" xlink:to="loc_us-gaap_Cash_50B9313771EF5550155BB23CF24E127A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MoneyMarketFundsAtCarryingValue" xlink:label="loc_us-gaap_MoneyMarketFundsAtCarryingValue_CAB15AFA5942FFD29D0BB23CF24E2DFB" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_EE9358ECB5FEB955C8F5B23CF24EE12E" xlink:to="loc_us-gaap_MoneyMarketFundsAtCarryingValue_CAB15AFA5942FFD29D0BB23CF24E2DFB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_EF39B2E07C14FDACF837B23CF24E24D9" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_EE9358ECB5FEB955C8F5B23CF24EE12E" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_EF39B2E07C14FDACF837B23CF24E24D9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_ABB26AAF1F8AF066ABFBB23CF24EF538" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_EE9358ECB5FEB955C8F5B23CF24EE12E" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_ABB26AAF1F8AF066ABFBB23CF24EF538" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AssetBackedSecuritiesFairValueDisclosure" xlink:label="loc_cgnx_AssetBackedSecuritiesFairValueDisclosure_8749D1ADE16F91379338B23CF24EAF5E" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_EE9358ECB5FEB955C8F5B23CF24EE12E" xlink:to="loc_cgnx_AssetBackedSecuritiesFairValueDisclosure_8749D1ADE16F91379338B23CF24EAF5E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_AA9798103F4AF463F31AB23CF24E98CA" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_EE9358ECB5FEB955C8F5B23CF24EE12E" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_AA9798103F4AF463F31AB23CF24E98CA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CostMethodInvestments" xlink:label="loc_us-gaap_CostMethodInvestments_74E53A89808F7028C823B23CF24EE497" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_EE9358ECB5FEB955C8F5B23CF24EE12E" xlink:to="loc_us-gaap_CostMethodInvestments_74E53A89808F7028C823B23CF24EE497" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_LongTermInvestments" xlink:label="loc_us-gaap_LongTermInvestments_1BAB6CC0EB06522971D1B23CF24E3EE0" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_EE9358ECB5FEB955C8F5B23CF24EE12E" xlink:to="loc_us-gaap_LongTermInvestments_1BAB6CC0EB06522971D1B23CF24E3EE0" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_CashCashEquivalentsShortTermAndLongTermInvestments" xlink:label="loc_cgnx_CashCashEquivalentsShortTermAndLongTermInvestments_C3372599BA2A2CA32D07B23CF24E2A0D" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_EE9358ECB5FEB955C8F5B23CF24EE12E" xlink:to="loc_cgnx_CashCashEquivalentsShortTermAndLongTermInvestments_C3372599BA2A2CA32D07B23CF24E2A0D" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/CashCashEquivalentsAndInvestmentsEffectiveMaturityDatesOfAvailableForSaleInvestmentsDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A5773801BD54A1628152C1B01A33758E" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_B73C749E4122BA248342C1B01A31545B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A5773801BD54A1628152C1B01A33758E" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_B73C749E4122BA248342C1B01A31545B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_F7B1F558EF2C1CBF55DEC1B01A317837" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_B73C749E4122BA248342C1B01A31545B" xlink:to="loc_us-gaap_RangeAxis_F7B1F558EF2C1CBF55DEC1B01A317837" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_10861DCB5A56E01C6FACC1B01A322B76_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_F7B1F558EF2C1CBF55DEC1B01A317837" xlink:to="loc_us-gaap_RangeMember_10861DCB5A56E01C6FACC1B01A322B76_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_10861DCB5A56E01C6FACC1B01A322B76" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_F7B1F558EF2C1CBF55DEC1B01A317837" xlink:to="loc_us-gaap_RangeMember_10861DCB5A56E01C6FACC1B01A322B76" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_C6A019932E4657176FADC1B01A321CF2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_10861DCB5A56E01C6FACC1B01A322B76" xlink:to="loc_us-gaap_MaximumMember_C6A019932E4657176FADC1B01A321CF2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_D02A993DC57EF7A91305C1B01A32EAAF" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_B73C749E4122BA248342C1B01A31545B" xlink:to="loc_dei_LegalEntityAxis_D02A993DC57EF7A91305C1B01A32EAAF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_3EE151B55E5327D82FF6C1B01A32649C_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_D02A993DC57EF7A91305C1B01A32EAAF" xlink:to="loc_dei_EntityDomain_3EE151B55E5327D82FF6C1B01A32649C_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_3EE151B55E5327D82FF6C1B01A32649C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_D02A993DC57EF7A91305C1B01A32EAAF" xlink:to="loc_dei_EntityDomain_3EE151B55E5327D82FF6C1B01A32649C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_6556E5A3BDC002E0034CC1B01A32CAD3" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_B73C749E4122BA248342C1B01A31545B" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_6556E5A3BDC002E0034CC1B01A32CAD3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_6556E5A3BDC002E0034CC1B01A32CAD3" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_6556E5A3BDC002E0034CC1B01A32CAD3" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_3D3A125EF1B77952A565C1B01A335D00" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_3D3A125EF1B77952A565C1B01A335D00" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_USTreasurySecuritiesMember" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_6AFF1BDDD288B97658C0C1B01A33C0F4" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_6AFF1BDDD288B97658C0C1B01A33C0F4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_5FE0FCE29815592FABBDC1B01A33E09E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_5FE0FCE29815592FABBDC1B01A33E09E" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_EuroliquidityfundMember" xlink:label="loc_cgnx_EuroliquidityfundMember_291A4F387766C0BB3936C1B01A33EF52" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6" xlink:to="loc_cgnx_EuroliquidityfundMember_291A4F387766C0BB3936C1B01A33EF52" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AgencyBondsMember" xlink:label="loc_cgnx_AgencyBondsMember_1600FF078538CC4514C6C1B01A33BF0F" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6" xlink:to="loc_cgnx_AgencyBondsMember_1600FF078538CC4514C6C1B01A33BF0F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SovereignDebtSecuritiesMember" xlink:label="loc_us-gaap_SovereignDebtSecuritiesMember_D512B1D50057762F95CAC1B01A332A8A" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6" xlink:to="loc_us-gaap_SovereignDebtSecuritiesMember_D512B1D50057762F95CAC1B01A332A8A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MunicipalBondsMember" xlink:label="loc_us-gaap_MunicipalBondsMember_B78F9EA75B6B3E5BBCB8C1B01A33191E" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6" xlink:to="loc_us-gaap_MunicipalBondsMember_B78F9EA75B6B3E5BBCB8C1B01A33191E" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_SupranationalbondsMember" xlink:label="loc_cgnx_SupranationalbondsMember_021B5AB02A93FDF6B140C1B01A330B05" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_306726EDBB7DFE8D6933C1B01A329FF6" xlink:to="loc_cgnx_SupranationalbondsMember_021B5AB02A93FDF6B140C1B01A330B05" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_2A9804432F8551E1A48CC1B01A33987E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A5773801BD54A1628152C1B01A33758E" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_2A9804432F8551E1A48CC1B01A33987E" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterOneYearBeforeTwoYearsFairValue" xlink:label="loc_cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterOneYearBeforeTwoYearsFairValue_FB6B41426A05FF515B2BC1B01A334450" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A5773801BD54A1628152C1B01A33758E" xlink:to="loc_cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterOneYearBeforeTwoYearsFairValue_FB6B41426A05FF515B2BC1B01A334450" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterTwoYearsBeforeThreeYearsFairValue" xlink:label="loc_cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterTwoYearsBeforeThreeYearsFairValue_1721ADCF43C7F56CDED3C1B01A337280" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A5773801BD54A1628152C1B01A33758E" xlink:to="loc_cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterTwoYearsBeforeThreeYearsFairValue_1721ADCF43C7F56CDED3C1B01A337280" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterThreeYearsBeforeFourYearsFairValue" xlink:label="loc_cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterThreeYearsBeforeFourYearsFairValue_FFFA78954556ED270133C1B01A3367F2" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A5773801BD54A1628152C1B01A33758E" xlink:to="loc_cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterThreeYearsBeforeFourYearsFairValue_FFFA78954556ED270133C1B01A3367F2" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterFourYearsBeforeFiveYearsFairValue" xlink:label="loc_cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterFourYearsBeforeFiveYearsFairValue_750408F6625756022247C1B01A3372C7" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A5773801BD54A1628152C1B01A33758E" xlink:to="loc_cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterFourYearsBeforeFiveYearsFairValue_750408F6625756022247C1B01A3372C7" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveYearsBeforeSevenYearsFairValue" xlink:label="loc_cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveYearsBeforeSevenYearsFairValue_B37413DBA0FED9EE2657C1D2F7B2AB6A" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A5773801BD54A1628152C1B01A33758E" xlink:to="loc_cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveYearsBeforeSevenYearsFairValue_B37413DBA0FED9EE2657C1D2F7B2AB6A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_EAB23BFF37D3C1390D18C1B01A33C4FD" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_A5773801BD54A1628152C1B01A33758E" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_EAB23BFF37D3C1390D18C1B01A33C4FD" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/CashCashEquivalentsAndInvestmentsGrossUnrealizedLossesAndFairValueForAvailableForSaleInvestmentsDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_F4AD021AEF1F3244FB9AA394ABA8B4C9" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_91F60C1C369CAEE2DC33A394ABA789B4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_F4AD021AEF1F3244FB9AA394ABA8B4C9" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_91F60C1C369CAEE2DC33A394ABA789B4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_83F32213416A7338D12AA394ABA7D33A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_91F60C1C369CAEE2DC33A394ABA789B4" xlink:to="loc_dei_LegalEntityAxis_83F32213416A7338D12AA394ABA7D33A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_58EFDAAEDE20EA59BA55A394ABA70064_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_83F32213416A7338D12AA394ABA7D33A" xlink:to="loc_dei_EntityDomain_58EFDAAEDE20EA59BA55A394ABA70064_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_58EFDAAEDE20EA59BA55A394ABA70064" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_83F32213416A7338D12AA394ABA7D33A" xlink:to="loc_dei_EntityDomain_58EFDAAEDE20EA59BA55A394ABA70064" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_7BF2EC0A2442ACB7CA1BA394ABA7B7C0" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_91F60C1C369CAEE2DC33A394ABA789B4" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_7BF2EC0A2442ACB7CA1BA394ABA7B7C0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C3AA7B94DD893775DE6CA394ABA78CBA_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_7BF2EC0A2442ACB7CA1BA394ABA7B7C0" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C3AA7B94DD893775DE6CA394ABA78CBA_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C3AA7B94DD893775DE6CA394ABA78CBA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_7BF2EC0A2442ACB7CA1BA394ABA7B7C0" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C3AA7B94DD893775DE6CA394ABA78CBA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_5D01F50888E953341F5BA394ABA716F4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C3AA7B94DD893775DE6CA394ABA78CBA" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_5D01F50888E953341F5BA394ABA716F4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_USTreasurySecuritiesMember" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_4B8813F344F243329B8DA394ABA86698" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C3AA7B94DD893775DE6CA394ABA78CBA" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_4B8813F344F243329B8DA394ABA86698" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_5E2D302E0925B23CDB28A394ABA8497E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C3AA7B94DD893775DE6CA394ABA78CBA" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_5E2D302E0925B23CDB28A394ABA8497E" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AgencyBondsMember" xlink:label="loc_cgnx_AgencyBondsMember_8C5F81469CAEE1864B1FA394ABA8B4FE" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C3AA7B94DD893775DE6CA394ABA78CBA" xlink:to="loc_cgnx_AgencyBondsMember_8C5F81469CAEE1864B1FA394ABA8B4FE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SovereignDebtSecuritiesMember" xlink:label="loc_us-gaap_SovereignDebtSecuritiesMember_BF96CE48C079DBE4C1A8A394ABA8F3A9" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C3AA7B94DD893775DE6CA394ABA78CBA" xlink:to="loc_us-gaap_SovereignDebtSecuritiesMember_BF96CE48C079DBE4C1A8A394ABA8F3A9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_E36F83FB4D4A62CD57DAA394ABA8FFA0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_F4AD021AEF1F3244FB9AA394ABA8B4C9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_E36F83FB4D4A62CD57DAA394ABA8FFA0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_025C57705E32576049EDA394ABA880C2" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_F4AD021AEF1F3244FB9AA394ABA8B4C9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_025C57705E32576049EDA394ABA880C2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_5B69BB2FD9817E77CD9BA394ABA8C049" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_F4AD021AEF1F3244FB9AA394ABA8B4C9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_5B69BB2FD9817E77CD9BA394ABA8C049" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_B8AC0C4C6780DDB2FB48A394ABA805A1" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_F4AD021AEF1F3244FB9AA394ABA8B4C9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_B8AC0C4C6780DDB2FB48A394ABA805A1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue_31E8352FA92B1950B71BA394ABA8CBCF" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_F4AD021AEF1F3244FB9AA394ABA8B4C9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue_31E8352FA92B1950B71BA394ABA8CBCF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_C2D7868289403B5F9DAAA394ABA8047C" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_F4AD021AEF1F3244FB9AA394ABA8B4C9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_C2D7868289403B5F9DAAA394ABA8047C" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/CashCashEquivalentsAndInvestmentsTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/CommitmentsAndContingenciesFutureMinimumRentalPaymentsUnderLeaseAgreementsDetail" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/CommitmentsAndContingenciesFutureMinimumRentalReceiptsUnderNonCancelableLeaseAgreementsDetail" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ConsolidatedBalanceSheets" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ConsolidatedStatementsOfOperations" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ConsolidatedStatementsOfOperationsParenthetical" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ConsolidatedStatementsOfShareholdersEquity" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_46B9B13128AFA3FBFF75A30ACE0D6004" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_C01179317AA8100131CFA30ACE0CA898" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_46B9B13128AFA3FBFF75A30ACE0D6004" xlink:to="loc_us-gaap_StatementTable_C01179317AA8100131CFA30ACE0CA898" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_60329FCECA4CE243EE46A30ACE0CE48B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_C01179317AA8100131CFA30ACE0CA898" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_60329FCECA4CE243EE46A30ACE0CE48B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_8E3A82F1862082986460A30ACE0CD52C_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_60329FCECA4CE243EE46A30ACE0CE48B" xlink:to="loc_us-gaap_EquityComponentDomain_8E3A82F1862082986460A30ACE0CD52C_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_8E3A82F1862082986460A30ACE0CD52C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_60329FCECA4CE243EE46A30ACE0CE48B" xlink:to="loc_us-gaap_EquityComponentDomain_8E3A82F1862082986460A30ACE0CD52C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_9D56B8C1A1EFCD127644A30ACE0D803F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_8E3A82F1862082986460A30ACE0CD52C" xlink:to="loc_us-gaap_CommonStockMember_9D56B8C1A1EFCD127644A30ACE0D803F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_F63493A42FAE0ED24C8BA30ACE0DF9D7" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_8E3A82F1862082986460A30ACE0CD52C" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_F63493A42FAE0ED24C8BA30ACE0DF9D7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_6FB71EA42EAD07A47B36A30ACE0D44CB" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_8E3A82F1862082986460A30ACE0CD52C" xlink:to="loc_us-gaap_RetainedEarningsMember_6FB71EA42EAD07A47B36A30ACE0D44CB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_F115FABF1845CC4047F6A30ACE0D24E8" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_8E3A82F1862082986460A30ACE0CD52C" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_F115FABF1845CC4047F6A30ACE0D24E8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_46B9B13128AFA3FBFF75A30ACE0D6004" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_DA1428DBF11B6857B051A30ACE0D323F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_StockholdersEquity_DA1428DBF11B6857B051A30ACE0D323F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_21368F5E1F23F31274B1A30ACE0DCF03" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_CommonStockSharesIssued_21368F5E1F23F31274B1A30ACE0DCF03" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_1F72493D00A3A1D803B0A30ACE0D4CDA" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_1F72493D00A3A1D803B0A30ACE0D4CDA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_7CCB49FA12BBF29F9466A30ACE0D658B" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_7CCB49FA12BBF29F9466A30ACE0D658B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_945D55C1300791F9BFFFA30ACE0D7D24" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_945D55C1300791F9BFFFA30ACE0D7D24" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_A8D1FC7B7708D8718BDFA30ACE0DEE32" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_A8D1FC7B7708D8718BDFA30ACE0DEE32" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_689AFF93E9AD7037F8DEA30ACE0D85AE" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_689AFF93E9AD7037F8DEA30ACE0D85AE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_33A12930029995070BE0A30ACE0D001E" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_33A12930029995070BE0A30ACE0D001E" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AdjustmentToAdditionalPaidInCapitalTaxBenefitForResearchAndDevelopmentCreditsAsResultOfStockOptionAccounting" xlink:label="loc_cgnx_AdjustmentToAdditionalPaidInCapitalTaxBenefitForResearchAndDevelopmentCreditsAsResultOfStockOptionAccounting_5C629FBAA16418E71437A30ACE0D9C40" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_cgnx_AdjustmentToAdditionalPaidInCapitalTaxBenefitForResearchAndDevelopmentCreditsAsResultOfStockOptionAccounting_5C629FBAA16418E71437A30ACE0D9C40" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DividendsCommonStockCash" xlink:label="loc_us-gaap_DividendsCommonStockCash_C157122EDA84C4C4E944A3334051679A" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_DividendsCommonStockCash_C157122EDA84C4C4E944A3334051679A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_7A57167E7F67308D5C45A30ACE0E8AC4" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_NetIncomeLoss_7A57167E7F67308D5C45A30ACE0E8AC4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_5220CE77AD59D148D0C4A30ACE0E10D5" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_5220CE77AD59D148D0C4A30ACE0E10D5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_4A9AE6B15926DEE76D6FA30ACE0E0F54" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_4A9AE6B15926DEE76D6FA30ACE0E0F54" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_AC36DBF92A6E65D0D874A30ACE0E5130" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_AC36DBF92A6E65D0D874A30ACE0E5130" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_472055ABCA261E22ADC4A30ACE0E1AF5" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_472055ABCA261E22ADC4A30ACE0E1AF5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_2322674BC59AD5C24B3FA30ACE0E3960" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_EE532D253C8EE97B4E18A30ACE0D5C74" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_2322674BC59AD5C24B3FA30ACE0E3960" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/ConsolidatedStatementsOfShareholdersEquityParenthetical" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_466D9A26E98490C285B8B807436C9CC8" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_528FA92E08A8C23C00E5B807436C7FEF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_466D9A26E98490C285B8B807436C9CC8" xlink:to="loc_us-gaap_StatementTable_528FA92E08A8C23C00E5B807436C7FEF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_8F1E3A5C9C5E39C5CF79B807436C8A8C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_528FA92E08A8C23C00E5B807436C7FEF" xlink:to="loc_dei_LegalEntityAxis_8F1E3A5C9C5E39C5CF79B807436C8A8C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_2840EE75010DA67A8B8CB807436C869B_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_8F1E3A5C9C5E39C5CF79B807436C8A8C" xlink:to="loc_dei_EntityDomain_2840EE75010DA67A8B8CB807436C869B_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_2840EE75010DA67A8B8CB807436C869B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_8F1E3A5C9C5E39C5CF79B807436C8A8C" xlink:to="loc_dei_EntityDomain_2840EE75010DA67A8B8CB807436C869B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesTax_50CE3B4790A57FD21FB0B807436C411C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_466D9A26E98490C285B8B807436C9CC8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesTax_50CE3B4790A57FD21FB0B807436C411C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_E40CC97F068E7DD02C3FB807436C726D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_466D9A26E98490C285B8B807436C9CC8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_E40CC97F068E7DD02C3FB807436C726D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_023622A2D35019EE1B56B807436C882D" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_466D9A26E98490C285B8B807436C9CC8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_023622A2D35019EE1B56B807436C882D" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/DerivativeInstruments" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/DerivativeInstrumentsBalanceSheetLocationDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativesFairValueLineItems" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_4711B680756C8EFCDBC5A3A03020806B" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_8FDBD5A08DB6371617DCA3A0301FAF03" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_4711B680756C8EFCDBC5A3A03020806B" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_8FDBD5A08DB6371617DCA3A0301FAF03" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_DCB975B363CB4CC4580FA3A0301FED5B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_8FDBD5A08DB6371617DCA3A0301FAF03" xlink:to="loc_us-gaap_HedgingDesignationAxis_DCB975B363CB4CC4580FA3A0301FED5B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_82D55DC7EAFADCEAE9D7A3A0301F2C65_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_DCB975B363CB4CC4580FA3A0301FED5B" xlink:to="loc_us-gaap_HedgingDesignationDomain_82D55DC7EAFADCEAE9D7A3A0301F2C65_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_82D55DC7EAFADCEAE9D7A3A0301F2C65" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_DCB975B363CB4CC4580FA3A0301FED5B" xlink:to="loc_us-gaap_HedgingDesignationDomain_82D55DC7EAFADCEAE9D7A3A0301F2C65" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_0B2D4CC827899C287BECA3A0301F19AC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_82D55DC7EAFADCEAE9D7A3A0301F2C65" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_0B2D4CC827899C287BECA3A0301F19AC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_0FF7A27FF63C9C7DD1F3A3A03020805B" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_82D55DC7EAFADCEAE9D7A3A0301F2C65" xlink:to="loc_us-gaap_NondesignatedMember_0FF7A27FF63C9C7DD1F3A3A03020805B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_46F8EE30E7AD4559AF80A3A0302071DC" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_8FDBD5A08DB6371617DCA3A0301FAF03" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_46F8EE30E7AD4559AF80A3A0302071DC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1DC865B387D5CE41D49CA3A030209004_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_46F8EE30E7AD4559AF80A3A0302071DC" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1DC865B387D5CE41D49CA3A030209004_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1DC865B387D5CE41D49CA3A030209004" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_46F8EE30E7AD4559AF80A3A0302071DC" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1DC865B387D5CE41D49CA3A030209004" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_2DF3E3D10AB816C221DCA3A0302032DC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_1DC865B387D5CE41D49CA3A030209004" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_2DF3E3D10AB816C221DCA3A0302032DC" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AccruedExpensesMember" xlink:label="loc_cgnx_AccruedExpensesMember_7C32252E0A1726D08055A3A03020A97D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_1DC865B387D5CE41D49CA3A030209004" xlink:to="loc_cgnx_AccruedExpensesMember_7C32252E0A1726D08055A3A03020A97D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_6D999BFC7BEE96646F4AA3A030203389" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_4711B680756C8EFCDBC5A3A03020806B" xlink:to="loc_us-gaap_DerivativeAssets_6D999BFC7BEE96646F4AA3A030203389" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_D82E6AA7F98D42D20F6FA3A030201FBE" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_4711B680756C8EFCDBC5A3A03020806B" xlink:to="loc_us-gaap_DerivativeLiabilities_D82E6AA7F98D42D20F6FA3A030201FBE" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/DerivativeInstrumentsChangesInAociDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_45011ED0069E696271E8A850B9BEF059" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_B20463BFCDBC0C940758A850B9BD86B4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_45011ED0069E696271E8A850B9BEF059" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_B20463BFCDBC0C940758A850B9BD86B4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_B39424D80E8C13B78CFDA850B9BD73AC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_B20463BFCDBC0C940758A850B9BD86B4" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_B39424D80E8C13B78CFDA850B9BD73AC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_571266EA1BD22736F440A850B9BE6AB7_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_B39424D80E8C13B78CFDA850B9BD73AC" xlink:to="loc_us-gaap_EquityComponentDomain_571266EA1BD22736F440A850B9BE6AB7_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_571266EA1BD22736F440A850B9BE6AB7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_B39424D80E8C13B78CFDA850B9BD73AC" xlink:to="loc_us-gaap_EquityComponentDomain_571266EA1BD22736F440A850B9BE6AB7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember" xlink:label="loc_us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember_9B758061222AF9944A92A850B9BEAB98" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_571266EA1BD22736F440A850B9BE6AB7" xlink:to="loc_us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember_9B758061222AF9944A92A850B9BEAB98" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_97ED2B7BD7FAF06FFB05A850B9BEF5FA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_45011ED0069E696271E8A850B9BEF059" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_97ED2B7BD7FAF06FFB05A850B9BEF5FA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_5B3FCE4074728887C9E9A850B9BE3250" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_97ED2B7BD7FAF06FFB05A850B9BEF5FA" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_5B3FCE4074728887C9E9A850B9BE3250" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_D70BADA672271FB17B9FA850B9BE7C0F" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_97ED2B7BD7FAF06FFB05A850B9BEF5FA" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_D70BADA672271FB17B9FA850B9BE7C0F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_BD3E7561005AC926A485A850B9BE291F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_97ED2B7BD7FAF06FFB05A850B9BEF5FA" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_BD3E7561005AC926A485A850B9BE291F" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsAdditionalDetailsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeLineItems" xlink:label="loc_us-gaap_DerivativeLineItems_3B559F82F81AB2AA764FA3A0304267D0" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeTable" xlink:label="loc_us-gaap_DerivativeTable_AC15EDFE7574BA3EE9E6A3A03041D6E8" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_3B559F82F81AB2AA764FA3A0304267D0" xlink:to="loc_us-gaap_DerivativeTable_AC15EDFE7574BA3EE9E6A3A03041D6E8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_788298892146812A87A2A3A03042F9E4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_AC15EDFE7574BA3EE9E6A3A03041D6E8" xlink:to="loc_us-gaap_HedgingDesignationAxis_788298892146812A87A2A3A03042F9E4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_29610ED03B4A13717CD6A3A03042363E_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_788298892146812A87A2A3A03042F9E4" xlink:to="loc_us-gaap_HedgingDesignationDomain_29610ED03B4A13717CD6A3A03042363E_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_29610ED03B4A13717CD6A3A03042363E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_788298892146812A87A2A3A03042F9E4" xlink:to="loc_us-gaap_HedgingDesignationDomain_29610ED03B4A13717CD6A3A03042363E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_64A1EC1570A05E28F329A3A030424217" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_29610ED03B4A13717CD6A3A03042363E" xlink:to="loc_us-gaap_NondesignatedMember_64A1EC1570A05E28F329A3A030424217" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_2CA62807E13B69ACE4D3A3A03042184E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_29610ED03B4A13717CD6A3A03042363E" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_2CA62807E13B69ACE4D3A3A03042184E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MaximumRemainingMaturityOfForeignCurrencyDerivatives1" xlink:label="loc_us-gaap_MaximumRemainingMaturityOfForeignCurrencyDerivatives1_9ECD671C5CCDAB6FF686A3A030428FCA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_3B559F82F81AB2AA764FA3A0304267D0" xlink:to="loc_us-gaap_MaximumRemainingMaturityOfForeignCurrencyDerivatives1_9ECD671C5CCDAB6FF686A3A030428FCA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1" xlink:label="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_8F8C89293EA20B38847AA3A030422349" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_3B559F82F81AB2AA764FA3A0304267D0" xlink:to="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_8F8C89293EA20B38847AA3A030422349" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_42096BE8D68F56BEDDC9A3A030425280" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_3B559F82F81AB2AA764FA3A0304267D0" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_42096BE8D68F56BEDDC9A3A030425280" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsAssetsAndLiabilitiesPresentedOnNetBasisDueToRightOfOffsetDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeLossDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_7B50CCBA96F685662B20B807432E3925" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_12F4227C4011B51E9840B807432E1E77" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_7B50CCBA96F685662B20B807432E3925" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_12F4227C4011B51E9840B807432E1E77" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_257B715366FC2F451A35B807432E6157" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_12F4227C4011B51E9840B807432E1E77" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_257B715366FC2F451A35B807432E6157" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_1CB1BC6B38E17FD835B4B807432E7BAB_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_257B715366FC2F451A35B807432E6157" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_1CB1BC6B38E17FD835B4B807432E7BAB_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_1CB1BC6B38E17FD835B4B807432E7BAB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_257B715366FC2F451A35B807432E6157" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_1CB1BC6B38E17FD835B4B807432E7BAB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_68CF7913F427305954ADB807432E88A8" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_1CB1BC6B38E17FD835B4B807432E7BAB" xlink:to="loc_us-gaap_CashFlowHedgingMember_68CF7913F427305954ADB807432E88A8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SalesRevenueGoodsNetMember" xlink:label="loc_us-gaap_SalesRevenueGoodsNetMember_9CB3DE33D6AD528438C5B807432E79EE" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_1CB1BC6B38E17FD835B4B807432E7BAB" xlink:to="loc_us-gaap_SalesRevenueGoodsNetMember_9CB3DE33D6AD528438C5B807432E79EE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_A22E5933B53DB2AF2FCBB807432E9090" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_1CB1BC6B38E17FD835B4B807432E7BAB" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_A22E5933B53DB2AF2FCBB807432E9090" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_D5945E6FB48C817B99FDB807432E7D0D" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_1CB1BC6B38E17FD835B4B807432E7BAB" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_D5945E6FB48C817B99FDB807432E7D0D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ForeignCurrencyGainLossMember" xlink:label="loc_us-gaap_ForeignCurrencyGainLossMember_0D8DDCF056026D3A65DAB807432E7B52" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_1CB1BC6B38E17FD835B4B807432E7BAB" xlink:to="loc_us-gaap_ForeignCurrencyGainLossMember_0D8DDCF056026D3A65DAB807432E7B52" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_B7631B448EFD39074933B807432E0C92" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_12F4227C4011B51E9840B807432E1E77" xlink:to="loc_us-gaap_HedgingDesignationAxis_B7631B448EFD39074933B807432E0C92" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_A1BD53284084C74334B7B807432E9EC0_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_B7631B448EFD39074933B807432E0C92" xlink:to="loc_us-gaap_HedgingDesignationDomain_A1BD53284084C74334B7B807432E9EC0_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_A1BD53284084C74334B7B807432E9EC0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_B7631B448EFD39074933B807432E0C92" xlink:to="loc_us-gaap_HedgingDesignationDomain_A1BD53284084C74334B7B807432E9EC0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_AAB51358B6535BFB43FCB807432E1749" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_A1BD53284084C74334B7B807432E9EC0" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_AAB51358B6535BFB43FCB807432E1749" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_F2CD9867704549E0DD47B807432EBE89" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_A1BD53284084C74334B7B807432E9EC0" xlink:to="loc_us-gaap_NondesignatedMember_F2CD9867704549E0DD47B807432EBE89" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeEffectivePortionNet" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeEffectivePortionNet_42ED0B79A3B7013A4267B807432E22BD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_7B50CCBA96F685662B20B807432E3925" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeEffectivePortionNet_42ED0B79A3B7013A4267B807432E22BD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet_BD6959EF4D94451F4ABFB807432E1F62" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_7B50CCBA96F685662B20B807432E3925" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet_BD6959EF4D94451F4ABFB807432E1F62" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_3B48375D042065E5D9C7B807432E66C3" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_7B50CCBA96F685662B20B807432E3925" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_3B48375D042065E5D9C7B807432E66C3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNetAbstract" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNetAbstract_EA12EE89A4A340844465B807432ED56B" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_7B50CCBA96F685662B20B807432E3925" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNetAbstract_EA12EE89A4A340844465B807432ED56B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet_ABBB147A5E2D17B756CFB807432ECEF3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNetAbstract_EA12EE89A4A340844465B807432ED56B" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet_ABBB147A5E2D17B756CFB807432ECEF3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_4B2D4E9DDF224AF7EDB5B807432E9C1F" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNetAbstract_EA12EE89A4A340844465B807432ED56B" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_4B2D4E9DDF224AF7EDB5B807432E9C1F" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeLineItems" xlink:label="loc_us-gaap_DerivativeLineItems_BF8E632EDEB6ECE12ABCA3A030378FF4" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeTable" xlink:label="loc_us-gaap_DerivativeTable_A87484946594921D9E2FA3A0303120B4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_BF8E632EDEB6ECE12ABCA3A030378FF4" xlink:to="loc_us-gaap_DerivativeTable_A87484946594921D9E2FA3A0303120B4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_79294B8C4674D8280C55A3A03031E926" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_A87484946594921D9E2FA3A0303120B4" xlink:to="loc_us-gaap_HedgingDesignationAxis_79294B8C4674D8280C55A3A03031E926" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_F71A357ECF1230771C50A3A0303157C7_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_79294B8C4674D8280C55A3A03031E926" xlink:to="loc_us-gaap_HedgingDesignationDomain_F71A357ECF1230771C50A3A0303157C7_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_F71A357ECF1230771C50A3A0303157C7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_79294B8C4674D8280C55A3A03031E926" xlink:to="loc_us-gaap_HedgingDesignationDomain_F71A357ECF1230771C50A3A0303157C7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_26804CF97518D79956E8A3A030319D69" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_F71A357ECF1230771C50A3A0303157C7" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_26804CF97518D79956E8A3A030319D69" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_D6273153F66FE514685EA3A030315CA3" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_F71A357ECF1230771C50A3A0303157C7" xlink:to="loc_us-gaap_NondesignatedMember_D6273153F66FE514685EA3A030315CA3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CurrencyAxis" xlink:label="loc_us-gaap_CurrencyAxis_DF74AC594D0448FE8BDDA3A03031D807" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_A87484946594921D9E2FA3A0303120B4" xlink:to="loc_us-gaap_CurrencyAxis_DF74AC594D0448FE8BDDA3A03031D807" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/currency/2014/currency-2014-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CurrencyAxis_DF74AC594D0448FE8BDDA3A03031D807" xlink:to="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/currency/2014/currency-2014-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CurrencyAxis_DF74AC594D0448FE8BDDA3A03031D807" xlink:to="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/currency/2014/currency-2014-01-31.xsd#currency_USD" xlink:label="loc_currency_USD_315411773321423E1C9FA3A03031CEB2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35" xlink:to="loc_currency_USD_315411773321423E1C9FA3A03031CEB2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/currency/2014/currency-2014-01-31.xsd#currency_JPY" xlink:label="loc_currency_JPY_F804714A09838F745592A3A03031B99C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35" xlink:to="loc_currency_JPY_F804714A09838F745592A3A03031B99C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/currency/2014/currency-2014-01-31.xsd#currency_KRW" xlink:label="loc_currency_KRW_D55FE86FA186E62CFBAFA3A03037AE61" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35" xlink:to="loc_currency_KRW_D55FE86FA186E62CFBAFA3A03037AE61" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/currency/2014/currency-2014-01-31.xsd#currency_HUF" xlink:label="loc_currency_HUF_928D1AA31754A0D2A6D0A3A03031CC67" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35" xlink:to="loc_currency_HUF_928D1AA31754A0D2A6D0A3A03031CC67" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/currency/2014/currency-2014-01-31.xsd#currency_SGD" xlink:label="loc_currency_SGD_C835857C73B81C2DEA3AA3A03032E77F" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35" xlink:to="loc_currency_SGD_C835857C73B81C2DEA3AA3A03032E77F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/currency/2014/currency-2014-01-31.xsd#currency_CAD" xlink:label="loc_currency_CAD_5A1BE1744FC6CC854CD0A3A03032C3F9" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35" xlink:to="loc_currency_CAD_5A1BE1744FC6CC854CD0A3A03032C3F9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/currency/2014/currency-2014-01-31.xsd#currency_GBP" xlink:label="loc_currency_GBP_B1F4D4561923DA476CB6A3A0303234AA" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35" xlink:to="loc_currency_GBP_B1F4D4561923DA476CB6A3A0303234AA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/currency/2014/currency-2014-01-31.xsd#currency_TWD" xlink:label="loc_currency_TWD_46D40AA5D2580E506B5CA3A030371C38" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_E14DB7D96B7751564769A3A03031EE35" xlink:to="loc_currency_TWD_46D40AA5D2580E506B5CA3A030371C38" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeAssetNotionalAmount" xlink:label="loc_us-gaap_DerivativeAssetNotionalAmount_F5232F85AD03894B8C03A3A03037C434" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_BF8E632EDEB6ECE12ABCA3A030378FF4" xlink:to="loc_us-gaap_DerivativeAssetNotionalAmount_F5232F85AD03894B8C03A3A03037C434" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/DerivativeInstrumentsTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/DiscontinuedOperations" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/DiscontinuedOperationsDiscontinuedOperationsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_BEC76EC2FABED5BEB18FACF0D0C3F038" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_BEA4FD96DC4F9A2EE2C0ACF0D0C299CD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_BEC76EC2FABED5BEB18FACF0D0C3F038" xlink:to="loc_us-gaap_StatementTable_BEA4FD96DC4F9A2EE2C0ACF0D0C299CD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementOperatingActivitiesSegmentAxis" xlink:label="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_54CD8B67CACDE3C9ECEDACF0D0C36599" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_BEA4FD96DC4F9A2EE2C0ACF0D0C299CD" xlink:to="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_54CD8B67CACDE3C9ECEDACF0D0C36599" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaap_SegmentOperatingActivitiesDomain_E25706EB8A7A4A0B3D31ACF0D0C31A66_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_54CD8B67CACDE3C9ECEDACF0D0C36599" xlink:to="loc_us-gaap_SegmentOperatingActivitiesDomain_E25706EB8A7A4A0B3D31ACF0D0C31A66_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaap_SegmentOperatingActivitiesDomain_E25706EB8A7A4A0B3D31ACF0D0C31A66" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_54CD8B67CACDE3C9ECEDACF0D0C36599" xlink:to="loc_us-gaap_SegmentOperatingActivitiesDomain_E25706EB8A7A4A0B3D31ACF0D0C31A66" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationsDisposedOfBySaleMember" xlink:label="loc_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_D4FB5930DD0F042B1BBFACF0D0C3068F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentOperatingActivitiesDomain_E25706EB8A7A4A0B3D31ACF0D0C31A66" xlink:to="loc_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_D4FB5930DD0F042B1BBFACF0D0C3068F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_A0366B70AC58E8A0126EACF0D0C32F33" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_BEA4FD96DC4F9A2EE2C0ACF0D0C299CD" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_A0366B70AC58E8A0126EACF0D0C32F33" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_18B95EEE0F558FA13945ACF0D0C3E3CE_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_A0366B70AC58E8A0126EACF0D0C32F33" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_18B95EEE0F558FA13945ACF0D0C3E3CE_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_18B95EEE0F558FA13945ACF0D0C3E3CE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_A0366B70AC58E8A0126EACF0D0C32F33" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_18B95EEE0F558FA13945ACF0D0C3E3CE" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_SisdMember" xlink:label="loc_cgnx_SisdMember_1CF1D4C45DF3FDD4ED38ACF0D0C30A13" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_18B95EEE0F558FA13945ACF0D0C3E3CE" xlink:to="loc_cgnx_SisdMember_1CF1D4C45DF3FDD4ED38ACF0D0C30A13" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_4EDE1FEF6BEB8E4B1D80ACF0D0C3AA5B" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_BEA4FD96DC4F9A2EE2C0ACF0D0C299CD" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_4EDE1FEF6BEB8E4B1D80ACF0D0C3AA5B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_34DF672812C5F27F36D7ACF0D0C38CE6_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_4EDE1FEF6BEB8E4B1D80ACF0D0C3AA5B" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_34DF672812C5F27F36D7ACF0D0C38CE6_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_34DF672812C5F27F36D7ACF0D0C38CE6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_4EDE1FEF6BEB8E4B1D80ACF0D0C3AA5B" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_34DF672812C5F27F36D7ACF0D0C38CE6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationsDisposedOfBySaleMember" xlink:label="loc_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_FDF52BA94E316EBABEC7ACF0D0C3656A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupClassificationDomain_34DF672812C5F27F36D7ACF0D0C38CE6" xlink:to="loc_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_FDF52BA94E316EBABEC7ACF0D0C3656A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration_BBF1020AD7C4D222D500ACF0D0C3CA5A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_BEC76EC2FABED5BEB18FACF0D0C3F038" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration_BBF1020AD7C4D222D500ACF0D0C3CA5A" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_DisposalGroupIncludingDiscontinuedOperationsTransactionCosts" xlink:label="loc_cgnx_DisposalGroupIncludingDiscontinuedOperationsTransactionCosts_FA33109B8F9C4F3FF242ACF0D0C4FFA7" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_BEC76EC2FABED5BEB18FACF0D0C3F038" xlink:to="loc_cgnx_DisposalGroupIncludingDiscontinuedOperationsTransactionCosts_FA33109B8F9C4F3FF242ACF0D0C4FFA7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_77D3E50A4FFCE15AE8B2ACF0D0C42E20" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_BEC76EC2FABED5BEB18FACF0D0C3F038" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_77D3E50A4FFCE15AE8B2ACF0D0C42E20" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationGainLossFromDisposalOfDiscontinuedOperationBeforeIncomeTax" xlink:label="loc_us-gaap_DiscontinuedOperationGainLossFromDisposalOfDiscontinuedOperationBeforeIncomeTax_BC505A2D9C10F62F6AFCACF0D0C4E39C" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_BEC76EC2FABED5BEB18FACF0D0C3F038" xlink:to="loc_us-gaap_DiscontinuedOperationGainLossFromDisposalOfDiscontinuedOperationBeforeIncomeTax_BC505A2D9C10F62F6AFCACF0D0C4E39C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationTaxEffectOfIncomeLossFromDisposalOfDiscontinuedOperation" xlink:label="loc_us-gaap_DiscontinuedOperationTaxEffectOfIncomeLossFromDisposalOfDiscontinuedOperation_ED92CF2692C56CD23B4CACF0D41023B9" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_BEC76EC2FABED5BEB18FACF0D0C3F038" xlink:to="loc_us-gaap_DiscontinuedOperationTaxEffectOfIncomeLossFromDisposalOfDiscontinuedOperation_ED92CF2692C56CD23B4CACF0D41023B9" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/DiscontinuedOperationsDiscontinuedOperationsScheduleOfDiscontinuedOperationsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_41CB9C77F5BAF98CEB6CB284E3EE6F8A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_StatementTable_41CB9C77F5BAF98CEB6CB284E3EE6F8A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_9FA1F2103B589FC57E46B284E3EEA4C4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_41CB9C77F5BAF98CEB6CB284E3EE6F8A" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_9FA1F2103B589FC57E46B284E3EEA4C4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_E3FDBF13A070F555D20DB284E3EFFDE9_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_9FA1F2103B589FC57E46B284E3EEA4C4" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_E3FDBF13A070F555D20DB284E3EFFDE9_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_E3FDBF13A070F555D20DB284E3EFFDE9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_9FA1F2103B589FC57E46B284E3EEA4C4" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_E3FDBF13A070F555D20DB284E3EFFDE9" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_SisdMember" xlink:label="loc_cgnx_SisdMember_2BFF04E42417998FA8DAB284E3EF47ED" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_E3FDBF13A070F555D20DB284E3EFFDE9" xlink:to="loc_cgnx_SisdMember_2BFF04E42417998FA8DAB284E3EF47ED" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_A339EDFECD851AEA25E2B284E3EF05B3" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_41CB9C77F5BAF98CEB6CB284E3EE6F8A" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_A339EDFECD851AEA25E2B284E3EF05B3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_B328CE23F949B6A3D2ECB284E3EF4A7C_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_A339EDFECD851AEA25E2B284E3EF05B3" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_B328CE23F949B6A3D2ECB284E3EF4A7C_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_B328CE23F949B6A3D2ECB284E3EF4A7C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_A339EDFECD851AEA25E2B284E3EF05B3" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_B328CE23F949B6A3D2ECB284E3EF4A7C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationsDisposedOfBySaleMember" xlink:label="loc_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_0E393C93F788A1265A9BB284E3F02FF5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupClassificationDomain_B328CE23F949B6A3D2ECB284E3EF4A7C" xlink:to="loc_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_0E393C93F788A1265A9BB284E3F02FF5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsNotesAndLoansReceivableNet" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsNotesAndLoansReceivableNet_3EE607351BD42E93206BB284E3F04095" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsNotesAndLoansReceivableNet_3EE607351BD42E93206BB284E3F04095" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationInventoryCurrent" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationInventoryCurrent_6E2021CB05736FD38186B284E3F030E2" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationInventoryCurrent_6E2021CB05736FD38186B284E3F030E2" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_DisposalGroupIncludingDiscontinuedOperationUnbilledContractsReceivable" xlink:label="loc_cgnx_DisposalGroupIncludingDiscontinuedOperationUnbilledContractsReceivable_AD110A36855FD6AC0F1FB284E3F010C6" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_cgnx_DisposalGroupIncludingDiscontinuedOperationUnbilledContractsReceivable_AD110A36855FD6AC0F1FB284E3F010C6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationPrepaidAndOtherAssetsCurrent" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationPrepaidAndOtherAssetsCurrent_91FEFCF82A3945A759EEB284E3F042E5" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationPrepaidAndOtherAssetsCurrent_91FEFCF82A3945A759EEB284E3F042E5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipmentCurrent" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipmentCurrent_3D03EB2D820A92530C6FB284E3F1A0EB" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipmentCurrent_3D03EB2D820A92530C6FB284E3F1A0EB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGoodwillCurrent" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGoodwillCurrent_21527E1DCF4A1F8DD312B284E3F1051D" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationGoodwillCurrent_21527E1DCF4A1F8DD312B284E3F1051D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationIntangibleAssetsCurrent" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationIntangibleAssetsCurrent_3ADEAD4001CD3C6CBFF4B284E3F12729" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationIntangibleAssetsCurrent_3ADEAD4001CD3C6CBFF4B284E3F12729" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherCurrentAssets" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherCurrentAssets_193F7C23776E33005C2CB284E3F1301F" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherCurrentAssets_193F7C23776E33005C2CB284E3F1301F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent" xlink:label="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent_A6640BC799FC617845FBB284E3F19C7C" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent_A6640BC799FC617845FBB284E3F19C7C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayableCurrent" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayableCurrent_815216374D3195C503B2B284E3F10EA9" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayableCurrent_815216374D3195C503B2B284E3F10EA9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationAccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccruedLiabilitiesCurrent_80056E583E43C6721413B284E3F162BC" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccruedLiabilitiesCurrent_80056E583E43C6721413B284E3F162BC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationDeferredRevenueCurrent" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationDeferredRevenueCurrent_91531B2E5BE164A1B819B284E3F1802F" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationDeferredRevenueCurrent_91531B2E5BE164A1B819B284E3F1802F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent" xlink:label="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent_7DA6C82FF9B42E76E555B284E3F20122" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent_7DA6C82FF9B42E76E555B284E3F20122" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_FF31CAD70CE5411D2D33B284E3F2806C" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue_FF31CAD70CE5411D2D33B284E3F2806C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_E4E9B17C268439D693E2B284E3F26A75" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_E4E9B17C268439D693E2B284E3F26A75" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_DisposalGroupIncludingDiscontinuedOperationsResearchDevelopmentAndEngineeringExpenses" xlink:label="loc_cgnx_DisposalGroupIncludingDiscontinuedOperationsResearchDevelopmentAndEngineeringExpenses_54A16DD6159BB25072CBB284E3F2D06B" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_cgnx_DisposalGroupIncludingDiscontinuedOperationsResearchDevelopmentAndEngineeringExpenses_54A16DD6159BB25072CBB284E3F2D06B" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_DisposalGroupIncludingDiscontinuedOperationsSellingGeneralAndAdministrativeExpenses" xlink:label="loc_cgnx_DisposalGroupIncludingDiscontinuedOperationsSellingGeneralAndAdministrativeExpenses_27C763BA559F96F3D8A1B284E3F23BEA" xlink:type="locator" />
    <definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_cgnx_DisposalGroupIncludingDiscontinuedOperationsSellingGeneralAndAdministrativeExpenses_27C763BA559F96F3D8A1B284E3F23BEA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationForeignCurrencyTranslationGainsLosses" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationForeignCurrencyTranslationGainsLosses_DDE616158935DC6C9A9DB284E497A9E6" xlink:type="locator" />
    <definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationForeignCurrencyTranslationGainsLosses_DDE616158935DC6C9A9DB284E497A9E6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax" xlink:label="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_03389896272D429C8C48B284E497A9C9" xlink:type="locator" />
    <definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_03389896272D429C8C48B284E497A9C9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationGainLossFromDisposalOfDiscontinuedOperationBeforeIncomeTax" xlink:label="loc_us-gaap_DiscontinuedOperationGainLossFromDisposalOfDiscontinuedOperationBeforeIncomeTax_F36BC11CB203BD14E91CB284E4970C09" xlink:type="locator" />
    <definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DiscontinuedOperationGainLossFromDisposalOfDiscontinuedOperationBeforeIncomeTax_F36BC11CB203BD14E91CB284E4970C09" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_Incomefromdiscontinuedoperationstotalpretax" xlink:label="loc_cgnx_Incomefromdiscontinuedoperationstotalpretax_18144A7AFE0A4C2374D2B284E4985A7B" xlink:type="locator" />
    <definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_cgnx_Incomefromdiscontinuedoperationstotalpretax_18144A7AFE0A4C2374D2B284E4985A7B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation" xlink:label="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_9278FD123F2383A29155B284E4989DC1" xlink:type="locator" />
    <definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_9278FD123F2383A29155B284E4989DC1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_7BE73F377BEAF7932DF3B284E49846BF" xlink:type="locator" />
    <definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_7BE73F377BEAF7932DF3B284E49846BF" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_Stockbasedcompensationdiscontinuedoperation" xlink:label="loc_cgnx_Stockbasedcompensationdiscontinuedoperation_88078F8318367857ABB9B284E3F080BA" xlink:type="locator" />
    <definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_cgnx_Stockbasedcompensationdiscontinuedoperation_88078F8318367857ABB9B284E3F080BA" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_DepreciationDiscontinuedOperations" xlink:label="loc_cgnx_DepreciationDiscontinuedOperations_91D7A57EEF22E7924056B284E49881E1" xlink:type="locator" />
    <definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_cgnx_DepreciationDiscontinuedOperations_91D7A57EEF22E7924056B284E49881E1" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AmortizationDiscontinuedOperations" xlink:label="loc_cgnx_AmortizationDiscontinuedOperations_32B767DEE1B089C53C79B284E4983A4F" xlink:type="locator" />
    <definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_cgnx_AmortizationDiscontinuedOperations_32B767DEE1B089C53C79B284E4983A4F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CapitalExpenditureDiscontinuedOperations" xlink:label="loc_us-gaap_CapitalExpenditureDiscontinuedOperations_9E189C06630B5637686DB284E498B708" xlink:type="locator" />
    <definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_51B93C55E199EB704E75B284E3F05FE7" xlink:to="loc_us-gaap_CapitalExpenditureDiscontinuedOperations_9E189C06630B5637686DB284E498B708" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/DiscontinuedOperationsDiscontinuedOperationsTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/DocumentAndEntityInformation" xlink:type="extended">
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityInformationLineItems" xlink:label="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:type="locator" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentInformationTable" xlink:label="loc_dei_DocumentInformationTable_2C3484DA2F798805C0FCB80742C067BD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_DocumentInformationTable_2C3484DA2F798805C0FCB80742C067BD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_D43311554A44C5C435BAB80742C08ED0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_2C3484DA2F798805C0FCB80742C067BD" xlink:to="loc_dei_LegalEntityAxis_D43311554A44C5C435BAB80742C08ED0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_41060E84758382154733B80742C0FC98_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_D43311554A44C5C435BAB80742C08ED0" xlink:to="loc_dei_EntityDomain_41060E84758382154733B80742C0FC98_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_41060E84758382154733B80742C0FC98" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_D43311554A44C5C435BAB80742C08ED0" xlink:to="loc_dei_EntityDomain_41060E84758382154733B80742C0FC98" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_4C363069B07D9BEF6B26B80742C0A4D3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_DocumentType_4C363069B07D9BEF6B26B80742C0A4D3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_B077EFFA072AC8C93F71B80742C0E075" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_AmendmentFlag_B077EFFA072AC8C93F71B80742C0E075" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_1B1B24E34A8EA7008637B80742C002DC" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_DocumentPeriodEndDate_1B1B24E34A8EA7008637B80742C002DC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_1E38F9E0EA2FB579EEF8B80742C0CF7D" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_DocumentFiscalYearFocus_1E38F9E0EA2FB579EEF8B80742C0CF7D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_90D1083DCF5007BFE0EBB80742C0BE6F" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_DocumentFiscalPeriodFocus_90D1083DCF5007BFE0EBB80742C0BE6F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_TradingSymbol" xlink:label="loc_dei_TradingSymbol_BDE0F37C6039F9ECD9EEB80742C02386" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_TradingSymbol_BDE0F37C6039F9ECD9EEB80742C02386" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_8A280AA1F1B42448E831B80742C08C1E" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_EntityRegistrantName_8A280AA1F1B42448E831B80742C08C1E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_428083F4F6E977B6CE02B80742C03865" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_EntityCentralIndexKey_428083F4F6E977B6CE02B80742C03865" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_4EB1D797DB6DCCD1689BB80742C028FA" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_CurrentFiscalYearEndDate_4EB1D797DB6DCCD1689BB80742C028FA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityWellKnownSeasonedIssuer" xlink:label="loc_dei_EntityWellKnownSeasonedIssuer_616EADD45CA7907541E1B80742C0A70E" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_EntityWellKnownSeasonedIssuer_616EADD45CA7907541E1B80742C0A70E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityCurrentReportingStatus" xlink:label="loc_dei_EntityCurrentReportingStatus_DC0BCEA19E2E32093D74B80742C08DB7" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_EntityCurrentReportingStatus_DC0BCEA19E2E32093D74B80742C08DB7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityVoluntaryFilers" xlink:label="loc_dei_EntityVoluntaryFilers_171BACF4DEB8A6E85490B80742C09287" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_EntityVoluntaryFilers_171BACF4DEB8A6E85490B80742C09287" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_E26A804146109BBD426AB80742C0B6E5" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_EntityFilerCategory_E26A804146109BBD426AB80742C0B6E5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_7F7E8C37F440173A9346B80742C057DC" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_7F7E8C37F440173A9346B80742C057DC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityPublicFloat" xlink:label="loc_dei_EntityPublicFloat_9A0F0C8378B3B4272A92B80742C098D1" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_0B9B924E793D5E305920B80742C05C6B" xlink:to="loc_dei_EntityPublicFloat_9A0F0C8378B3B4272A92B80742C098D1" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/EmployeeSavingsPlan" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/EmployeeSavingsPlanAdditionalInformationDetail" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/FairValueMeasurements" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/FairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0DD35D46FB5C33236B25B2BD7E6E1DC6" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_169697C06E0E9709F97DB2BD7E6DB22D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0DD35D46FB5C33236B25B2BD7E6E1DC6" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_169697C06E0E9709F97DB2BD7E6DB22D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F75A7DE4B47DBBD378AEB2BD7E6EB817" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_169697C06E0E9709F97DB2BD7E6DB22D" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F75A7DE4B47DBBD378AEB2BD7E6EB817" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5F203C476D06BE466DF4B2BD7E6E6EB3_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F75A7DE4B47DBBD378AEB2BD7E6EB817" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5F203C476D06BE466DF4B2BD7E6E6EB3_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5F203C476D06BE466DF4B2BD7E6E6EB3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F75A7DE4B47DBBD378AEB2BD7E6EB817" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5F203C476D06BE466DF4B2BD7E6E6EB3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_F1A312DE3C0291462D67B2BD7E6E07A0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5F203C476D06BE466DF4B2BD7E6E6EB3" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_F1A312DE3C0291462D67B2BD7E6E07A0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_2C79F95FBA48DFF25B6DB2BD7E6E9951" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5F203C476D06BE466DF4B2BD7E6E6EB3" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_2C79F95FBA48DFF25B6DB2BD7E6E9951" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_B4DF6A36BAA19C3D393BB2BD7E6E6929" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5F203C476D06BE466DF4B2BD7E6E6EB3" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_B4DF6A36BAA19C3D393BB2BD7E6E6929" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_5350ECDAF8543B2E5C8DB2BD7E6EAA52" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_169697C06E0E9709F97DB2BD7E6DB22D" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_5350ECDAF8543B2E5C8DB2BD7E6EAA52" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_8816DBBFD710DD5D842AB2BD7E6E335B_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_5350ECDAF8543B2E5C8DB2BD7E6EAA52" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8816DBBFD710DD5D842AB2BD7E6E335B_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_8816DBBFD710DD5D842AB2BD7E6E335B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_5350ECDAF8543B2E5C8DB2BD7E6EAA52" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8816DBBFD710DD5D842AB2BD7E6E335B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_2E6943417AFE31805016B2BD7E6E2B6C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_8816DBBFD710DD5D842AB2BD7E6E335B" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_2E6943417AFE31805016B2BD7E6E2B6C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AssetsFairValueDisclosureAbstract" xlink:label="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0DD35D46FB5C33236B25B2BD7E6E1DC6" xlink:to="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_MoneyMarketInstrumentsFairValueDisclosure" xlink:label="loc_cgnx_MoneyMarketInstrumentsFairValueDisclosure_9F6757EEBE50ED45E375B2BD7E6F7DEA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:to="loc_cgnx_MoneyMarketInstrumentsFairValueDisclosure_9F6757EEBE50ED45E375B2BD7E6F7DEA" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_CorporateBondsFairValueDisclosure" xlink:label="loc_cgnx_CorporateBondsFairValueDisclosure_4F9E99C888CF1BCE2ECBB2BD7E6F3DC8" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:to="loc_cgnx_CorporateBondsFairValueDisclosure_4F9E99C888CF1BCE2ECBB2BD7E6F3DC8" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_TreasuryBillsFairValueDisclosure" xlink:label="loc_cgnx_TreasuryBillsFairValueDisclosure_B03B07D007395B853019B2BD7E6FBC03" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:to="loc_cgnx_TreasuryBillsFairValueDisclosure_B03B07D007395B853019B2BD7E6FBC03" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AssetBackedSecuritiesFairValueDisclosure" xlink:label="loc_cgnx_AssetBackedSecuritiesFairValueDisclosure_464572C9D8D141C1D492B2BD7E6FA710" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:to="loc_cgnx_AssetBackedSecuritiesFairValueDisclosure_464572C9D8D141C1D492B2BD7E6FA710" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_Euroliquidityfunds" xlink:label="loc_cgnx_Euroliquidityfunds_869337E78A4B02CC22EEB2BD7E6FD355" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:to="loc_cgnx_Euroliquidityfunds_869337E78A4B02CC22EEB2BD7E6FD355" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_SovereignBondsFairValueDisclosure" xlink:label="loc_cgnx_SovereignBondsFairValueDisclosure_C9D25EE96B24422755B9B2BD7E6FBB99" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:to="loc_cgnx_SovereignBondsFairValueDisclosure_C9D25EE96B24422755B9B2BD7E6FBB99" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_AgencyBondsFairValueDisclosure" xlink:label="loc_cgnx_AgencyBondsFairValueDisclosure_EEE730AF8440B5AB7395B2BD7E6F6AB9" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:to="loc_cgnx_AgencyBondsFairValueDisclosure_EEE730AF8440B5AB7395B2BD7E6F6AB9" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_MunicipalBondsFairValueDisclosure" xlink:label="loc_cgnx_MunicipalBondsFairValueDisclosure_93F3319076AFD140C03DB2BD7E6FB9F0" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:to="loc_cgnx_MunicipalBondsFairValueDisclosure_93F3319076AFD140C03DB2BD7E6FB9F0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ForeignCurrencyCashFlowHedgeAssetAtFairValue" xlink:label="loc_us-gaap_ForeignCurrencyCashFlowHedgeAssetAtFairValue_35614B9F1A5CEB24DEB5B2BD7E6FFB08" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:to="loc_us-gaap_ForeignCurrencyCashFlowHedgeAssetAtFairValue_35614B9F1A5CEB24DEB5B2BD7E6FFB08" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ForeignCurrencyContractAssetFairValueDisclosure" xlink:label="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_69495CAA8A323C3C7FA5B2BD7E6FC773" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_39C9E927A75AFA027727B2BD7E6E9934" xlink:to="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_69495CAA8A323C3C7FA5B2BD7E6FC773" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosureAbstract" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_B3C85F5ECBAC63E0CCF2B2BD7E6F19D5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0DD35D46FB5C33236B25B2BD7E6E1DC6" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_B3C85F5ECBAC63E0CCF2B2BD7E6F19D5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ForeignCurrencyCashFlowHedgeLiabilityAtFairValue" xlink:label="loc_us-gaap_ForeignCurrencyCashFlowHedgeLiabilityAtFairValue_C02BE5C5477A2E098ECCB2BD7E6FC523" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_B3C85F5ECBAC63E0CCF2B2BD7E6F19D5" xlink:to="loc_us-gaap_ForeignCurrencyCashFlowHedgeLiabilityAtFairValue_C02BE5C5477A2E098ECCB2BD7E6FC523" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure" xlink:label="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_CEF589E666533FA0830FB2BD7E6FB83E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_B3C85F5ECBAC63E0CCF2B2BD7E6F19D5" xlink:to="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_CEF589E666533FA0830FB2BD7E6FB83E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_DDB92B69B1BD3E2E8E40B2BD7E6FA2B4" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_B3C85F5ECBAC63E0CCF2B2BD7E6F19D5" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_DDB92B69B1BD3E2E8E40B2BD7E6FA2B4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_E01F29256DA261F2F188B2BD7E70987A" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0DD35D46FB5C33236B25B2BD7E6E1DC6" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_E01F29256DA261F2F188B2BD7E70987A" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNetnoncurrent" xlink:label="loc_cgnx_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNetnoncurrent_B8C6EE7BBEA701D6A804B2BD7E70D1B6" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0DD35D46FB5C33236B25B2BD7E6E1DC6" xlink:to="loc_cgnx_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNetnoncurrent_B8C6EE7BBEA701D6A804B2BD7E70D1B6" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/FairValueMeasurementsTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/Goodwill" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/GoodwillAdditionalInformationDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_97B8B254872EBEF2E73BA850BA651510" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_FC829F84EBBBF341E2C0A850BA6423CB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_97B8B254872EBEF2E73BA850BA651510" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_FC829F84EBBBF341E2C0A850BA6423CB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_63B31552A3B1BF30C7A4A850BA6485EB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_FC829F84EBBBF341E2C0A850BA6423CB" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_63B31552A3B1BF30C7A4A850BA6485EB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_FD05275F6360991E9C5DA850BA65E580_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_63B31552A3B1BF30C7A4A850BA6485EB" xlink:to="loc_us-gaap_SegmentDomain_FD05275F6360991E9C5DA850BA65E580_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_FD05275F6360991E9C5DA850BA65E580" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_63B31552A3B1BF30C7A4A850BA6485EB" xlink:to="loc_us-gaap_SegmentDomain_FD05275F6360991E9C5DA850BA65E580" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_SisdMember" xlink:label="loc_cgnx_SisdMember_21D6C4409FB422A92F70A850BA6510AD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_FD05275F6360991E9C5DA850BA65E580" xlink:to="loc_cgnx_SisdMember_21D6C4409FB422A92F70A850BA6510AD" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_MvsdMember" xlink:label="loc_cgnx_MvsdMember_CE8276E44573E35415DAA850BA651D5B" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_FD05275F6360991E9C5DA850BA65E580" xlink:to="loc_cgnx_MvsdMember_CE8276E44573E35415DAA850BA651D5B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_5F28CF94927D4CD81C98A850BA65BA53" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_97B8B254872EBEF2E73BA850BA651510" xlink:to="loc_us-gaap_Goodwill_5F28CF94927D4CD81C98A850BA65BA53" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_FairValueInExcessToCarryingValue" xlink:label="loc_cgnx_FairValueInExcessToCarryingValue_FD568461EAF85EFFE38DA850BA653310" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_97B8B254872EBEF2E73BA850BA651510" xlink:to="loc_cgnx_FairValueInExcessToCarryingValue_FD568461EAF85EFFE38DA850BA653310" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/GoodwillChangesInCarryingValueOfGoodwillDetail" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/GoodwillTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/IndemnificationProvisions" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/IntangibleAssets" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/IntangibleAssetsAmortizedIntangibleAssetsDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_05BB29845F0E494069D0A39FA0583E5F" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_BAC989B8A7E0C188BC22A39FA057D015" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_05BB29845F0E494069D0A39FA0583E5F" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_BAC989B8A7E0C188BC22A39FA057D015" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_709798F560ECB30DAE63A39FA058F45D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_BAC989B8A7E0C188BC22A39FA057D015" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_709798F560ECB30DAE63A39FA058F45D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F83F89B3AA7C394FD820A39FA0587F07_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_709798F560ECB30DAE63A39FA058F45D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F83F89B3AA7C394FD820A39FA0587F07_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F83F89B3AA7C394FD820A39FA0587F07" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_709798F560ECB30DAE63A39FA058F45D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F83F89B3AA7C394FD820A39FA0587F07" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DistributionRightsMember" xlink:label="loc_us-gaap_DistributionRightsMember_9B5FCFE7F57C3090D3C4A39FA0586375" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F83F89B3AA7C394FD820A39FA0587F07" xlink:to="loc_us-gaap_DistributionRightsMember_9B5FCFE7F57C3090D3C4A39FA0586375" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_CustomerContractsAndRelationshipsMember" xlink:label="loc_cgnx_CustomerContractsAndRelationshipsMember_DE9024A095037761D27FA39FA058BFF5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F83F89B3AA7C394FD820A39FA0587F07" xlink:to="loc_cgnx_CustomerContractsAndRelationshipsMember_DE9024A095037761D27FA39FA058BFF5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DevelopedTechnologyRightsMember" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_DF2FC0663410B0AB513AA39FA05873E9" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F83F89B3AA7C394FD820A39FA0587F07" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_DF2FC0663410B0AB513AA39FA05873E9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_5FD3D9B10F6757D42B69A39FA058C776" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_05BB29845F0E494069D0A39FA0583E5F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_5FD3D9B10F6757D42B69A39FA058C776" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_0C6EBB293AD1DF512D13A39FA059D926" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_05BB29845F0E494069D0A39FA0583E5F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_0C6EBB293AD1DF512D13A39FA059D926" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_301A0EFCDA409DA3A7B0A39FA0599F91" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_05BB29845F0E494069D0A39FA0583E5F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_301A0EFCDA409DA3A7B0A39FA0599F91" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/IntangibleAssetsEstimatedAmortizationExpenseSucceedingFiscalYearsDetail" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/IntangibleAssetsTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/Inventories" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/InventoriesInventoriesDetail" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/InventoriesTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/NewPronouncements" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/PropertyPlantAndEquipment" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/PropertyPlantAndEquipmentAdditionalInformationDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/PropertyPlantAndEquipmentPropertyPlantAndEquipmentDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_A30007CE2FA15BA56D20A39A687CFADC" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_3D65D2DFAEF616A320F3A39A687BF90F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_A30007CE2FA15BA56D20A39A687CFADC" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_3D65D2DFAEF616A320F3A39A687BF90F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_EEB4868246CCCF551319A39A687BD9DD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_3D65D2DFAEF616A320F3A39A687BF90F" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_EEB4868246CCCF551319A39A687BD9DD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1E4050FC89F909D0F969A39A687BB7E6_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_EEB4868246CCCF551319A39A687BD9DD" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1E4050FC89F909D0F969A39A687BB7E6_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1E4050FC89F909D0F969A39A687BB7E6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_EEB4868246CCCF551319A39A687BD9DD" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1E4050FC89F909D0F969A39A687BB7E6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_LandMember" xlink:label="loc_us-gaap_LandMember_3ECAFCD606BD0B3034BFA39A687C5932" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1E4050FC89F909D0F969A39A687BB7E6" xlink:to="loc_us-gaap_LandMember_3ECAFCD606BD0B3034BFA39A687C5932" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_BuildingMember" xlink:label="loc_us-gaap_BuildingMember_1521ED1959486269BA0DA39A687CB983" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1E4050FC89F909D0F969A39A687BB7E6" xlink:to="loc_us-gaap_BuildingMember_1521ED1959486269BA0DA39A687CB983" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_BuildingImprovementsMember" xlink:label="loc_us-gaap_BuildingImprovementsMember_EABC7A59BBEEA34162BAA39A687C7537" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1E4050FC89F909D0F969A39A687BB7E6" xlink:to="loc_us-gaap_BuildingImprovementsMember_EABC7A59BBEEA34162BAA39A687C7537" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_8D5E92FB1F61D5ED1190A39A687C4B49" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1E4050FC89F909D0F969A39A687BB7E6" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_8D5E92FB1F61D5ED1190A39A687C4B49" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_HardwareAndSoftwareMember" xlink:label="loc_cgnx_HardwareAndSoftwareMember_B0E31658D42720758052A39A687CB1AD" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1E4050FC89F909D0F969A39A687BB7E6" xlink:to="loc_cgnx_HardwareAndSoftwareMember_B0E31658D42720758052A39A687CB1AD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EquipmentMember" xlink:label="loc_us-gaap_EquipmentMember_816AE4C6E462E8420D89A39A687CEE9A" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1E4050FC89F909D0F969A39A687BB7E6" xlink:to="loc_us-gaap_EquipmentMember_816AE4C6E462E8420D89A39A687CEE9A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_B09EF672765410AB93A7A39A687CA61A" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1E4050FC89F909D0F969A39A687BB7E6" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_B09EF672765410AB93A7A39A687CA61A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_D2F2561A3FA44324E2FDA39A687C47A0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_A30007CE2FA15BA56D20A39A687CFADC" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_D2F2561A3FA44324E2FDA39A687C47A0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_FCDBC6A64D5E2C83E582A39A687CEB37" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_A30007CE2FA15BA56D20A39A687CFADC" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_FCDBC6A64D5E2C83E582A39A687CEB37" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_1A0FD88AD8AF1D43A4E7A39A687C3811" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_A30007CE2FA15BA56D20A39A687CFADC" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_1A0FD88AD8AF1D43A4E7A39A687C3811" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/PropertyPlantAndEquipmentTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ScheduleIiValuationAndQualifyingAccounts" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ScheduleIiValuationAndQualifyingAccountsDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems" xlink:label="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_C616E57D7ECCAE8CE89EA4491E3AA336" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAndQualifyingAccountsDisclosureTable" xlink:label="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_F418D4631CEA751978F7A4491E3AC2A9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_C616E57D7ECCAE8CE89EA4491E3AA336" xlink:to="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_F418D4631CEA751978F7A4491E3AC2A9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_00AFA1B08F0313B915FBA4491E3A2807" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_F418D4631CEA751978F7A4491E3AC2A9" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_00AFA1B08F0313B915FBA4491E3A2807" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_EFEE0312F6BFB5DFDD80A4491E3A4360_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_00AFA1B08F0313B915FBA4491E3A2807" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_EFEE0312F6BFB5DFDD80A4491E3A4360_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_EFEE0312F6BFB5DFDD80A4491E3A4360" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_00AFA1B08F0313B915FBA4491E3A2807" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_EFEE0312F6BFB5DFDD80A4491E3A4360" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_UncollectibleReceivablesMember" xlink:label="loc_us-gaap_UncollectibleReceivablesMember_E5E6B6E79A28A8425F56A4491E3AD156" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_EFEE0312F6BFB5DFDD80A4491E3A4360" xlink:to="loc_us-gaap_UncollectibleReceivablesMember_E5E6B6E79A28A8425F56A4491E3AD156" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_InventoryValuationReserveMember" xlink:label="loc_us-gaap_InventoryValuationReserveMember_D71253972852C732560AA4491E3ACCA1" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_EFEE0312F6BFB5DFDD80A4491E3A4360" xlink:to="loc_us-gaap_InventoryValuationReserveMember_D71253972852C732560AA4491E3ACCA1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember" xlink:label="loc_us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember_17EC309D95CA1FDF3DE7A4491E3A5612" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_EFEE0312F6BFB5DFDD80A4491E3A4360" xlink:to="loc_us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember_17EC309D95CA1FDF3DE7A4491E3A5612" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MovementInValuationAllowancesAndReservesRollForward" xlink:label="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_4602439CA5DF8910957AA4491E3AA4F0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_C616E57D7ECCAE8CE89EA4491E3AA336" xlink:to="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_4602439CA5DF8910957AA4491E3AA4F0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAllowancesAndReservesBalance" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesBalance_91D85151142C1F8F8C05A4491E3A8814" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_4602439CA5DF8910957AA4491E3AA4F0" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesBalance_91D85151142C1F8F8C05A4491E3A8814" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_F35E21168C9F44CD8433A4491E3A3083" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_4602439CA5DF8910957AA4491E3AA4F0" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_F35E21168C9F44CD8433A4491E3A3083" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDeductions" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDeductions_4793CD3C400DD64CB803A4491E3AA61E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_4602439CA5DF8910957AA4491E3AA4F0" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDeductions_4793CD3C400DD64CB803A4491E3AA61E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAllowancesAndReservesAdjustments" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesAdjustments_EF3A0AEE5239F5B31861A4491E3B6ABA" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_4602439CA5DF8910957AA4491E3AA4F0" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesAdjustments_EF3A0AEE5239F5B31861A4491E3B6ABA" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/SegmentAndGeographicInformation" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/SegmentAndGeographicInformationAdditionalInformationDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_348217780A875C5EB9DDA850B8D7A986" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="loc_us-gaap_ConcentrationRiskTable_71929AB0A9FE7DFCCF07A850B8D73667" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_348217780A875C5EB9DDA850B8D7A986" xlink:to="loc_us-gaap_ConcentrationRiskTable_71929AB0A9FE7DFCCF07A850B8D73667" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_6FE743563B1AEA0F3590A90E48450200" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_71929AB0A9FE7DFCCF07A850B8D73667" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_6FE743563B1AEA0F3590A90E48450200" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_D8F1D75EE3E927391079A90E48631237_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6FE743563B1AEA0F3590A90E48450200" xlink:to="loc_us-gaap_SegmentDomain_D8F1D75EE3E927391079A90E48631237_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_D8F1D75EE3E927391079A90E48631237" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6FE743563B1AEA0F3590A90E48450200" xlink:to="loc_us-gaap_SegmentDomain_D8F1D75EE3E927391079A90E48631237" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_PreviousCompanySegmentsMember" xlink:label="loc_cgnx_PreviousCompanySegmentsMember_FDEDD7A5CD99998691CCA90E4946E601" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_D8F1D75EE3E927391079A90E48631237" xlink:to="loc_cgnx_PreviousCompanySegmentsMember_FDEDD7A5CD99998691CCA90E4946E601" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_CurrentCompanySegmentsMember" xlink:label="loc_cgnx_CurrentCompanySegmentsMember_C6E86EAC79A6823D7F13A90E4A4AC195" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_D8F1D75EE3E927391079A90E48631237" xlink:to="loc_cgnx_CurrentCompanySegmentsMember_C6E86EAC79A6823D7F13A90E4A4AC195" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementGeographicalAxis" xlink:label="loc_us-gaap_StatementGeographicalAxis_AC6C9DE8CE73B54786A8A850B8D78A2F" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_71929AB0A9FE7DFCCF07A850B8D73667" xlink:to="loc_us-gaap_StatementGeographicalAxis_AC6C9DE8CE73B54786A8A850B8D78A2F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_0CBD25165A62676E8520A850B8D79DD1_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementGeographicalAxis_AC6C9DE8CE73B54786A8A850B8D78A2F" xlink:to="loc_us-gaap_SegmentGeographicalDomain_0CBD25165A62676E8520A850B8D79DD1_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_0CBD25165A62676E8520A850B8D79DD1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementGeographicalAxis_AC6C9DE8CE73B54786A8A850B8D78A2F" xlink:to="loc_us-gaap_SegmentGeographicalDomain_0CBD25165A62676E8520A850B8D79DD1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EuropeMember" xlink:label="loc_us-gaap_EuropeMember_E7CC87433ADD2E1F6D75A850B8D7B578" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_0CBD25165A62676E8520A850B8D79DD1" xlink:to="loc_us-gaap_EuropeMember_E7CC87433ADD2E1F6D75A850B8D7B578" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_7CB28176579FBD07A261A850B8D7CEB3" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_71929AB0A9FE7DFCCF07A850B8D73667" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_7CB28176579FBD07A261A850B8D7CEB3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_831E83CADB5A3772A9D3A850B8D7984A_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_7CB28176579FBD07A261A850B8D7CEB3" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_831E83CADB5A3772A9D3A850B8D7984A_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_831E83CADB5A3772A9D3A850B8D7984A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_7CB28176579FBD07A261A850B8D7CEB3" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_831E83CADB5A3772A9D3A850B8D7984A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="loc_us-gaap_SalesRevenueNetMember_D12D4B50F38CA1DDCF32A850B8D72565" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_831E83CADB5A3772A9D3A850B8D7984A" xlink:to="loc_us-gaap_SalesRevenueNetMember_D12D4B50F38CA1DDCF32A850B8D72565" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_A1ED58BF15463B5719DEA850B8D7C6C5" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_71929AB0A9FE7DFCCF07A850B8D73667" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_A1ED58BF15463B5719DEA850B8D7C6C5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_EBAF09B56BE1CCAC0B2EA850B8D7BC03_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_A1ED58BF15463B5719DEA850B8D7C6C5" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_EBAF09B56BE1CCAC0B2EA850B8D7BC03_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_EBAF09B56BE1CCAC0B2EA850B8D7BC03" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_A1ED58BF15463B5719DEA850B8D7C6C5" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_EBAF09B56BE1CCAC0B2EA850B8D7BC03" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_176970B95F65BA36AA40A850B8D79A35" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_EBAF09B56BE1CCAC0B2EA850B8D7BC03" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_176970B95F65BA36AA40A850B8D79A35" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_169A7DB53503E7153CCDA850B8D86EEC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_348217780A875C5EB9DDA850B8D7A986" xlink:to="loc_us-gaap_Revenues_169A7DB53503E7153CCDA850B8D86EEC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_NumberOfReportableSegments" xlink:label="loc_us-gaap_NumberOfReportableSegments_A3A025DB1C20186F2BECA850B8D8D487" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_348217780A875C5EB9DDA850B8D7A986" xlink:to="loc_us-gaap_NumberOfReportableSegments_A3A025DB1C20186F2BECA850B8D8D487" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_5F9D138DA598DDDA8835A850B8D8AFD4" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_348217780A875C5EB9DDA850B8D7A986" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_5F9D138DA598DDDA8835A850B8D8AFD4" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/SegmentAndGeographicInformationScheduleOfRevenueFromExternalCustomersAndLongLivedAssetsByGeographicalAreasDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems" xlink:label="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_1DC4DC61C7210804FDFCB27BE532B4D6" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable" xlink:label="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_DEC14B1EF281FA8F69C3B27BE531504A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_1DC4DC61C7210804FDFCB27BE532B4D6" xlink:to="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_DEC14B1EF281FA8F69C3B27BE531504A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementGeographicalAxis" xlink:label="loc_us-gaap_StatementGeographicalAxis_087A7875F95319C9361EB27BE53148C7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_DEC14B1EF281FA8F69C3B27BE531504A" xlink:to="loc_us-gaap_StatementGeographicalAxis_087A7875F95319C9361EB27BE53148C7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_98500BDA9DD627FB7FCBB27BE531737E_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementGeographicalAxis_087A7875F95319C9361EB27BE53148C7" xlink:to="loc_us-gaap_SegmentGeographicalDomain_98500BDA9DD627FB7FCBB27BE531737E_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_98500BDA9DD627FB7FCBB27BE531737E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementGeographicalAxis_087A7875F95319C9361EB27BE53148C7" xlink:to="loc_us-gaap_SegmentGeographicalDomain_98500BDA9DD627FB7FCBB27BE531737E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/country/2013/country-2013-01-31.xsd#country_US" xlink:label="loc_country_US_7676995AA67313B5149CB27BE5310308" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_98500BDA9DD627FB7FCBB27BE531737E" xlink:to="loc_country_US_7676995AA67313B5149CB27BE5310308" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EuropeMember" xlink:label="loc_us-gaap_EuropeMember_16C27BC0E1101964E6BAB27BE5326AFF" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_98500BDA9DD627FB7FCBB27BE531737E" xlink:to="loc_us-gaap_EuropeMember_16C27BC0E1101964E6BAB27BE5326AFF" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_GreaterChinaMember" xlink:label="loc_cgnx_GreaterChinaMember_5329732FDDCDBBB41B37B27BE532897E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_98500BDA9DD627FB7FCBB27BE531737E" xlink:to="loc_cgnx_GreaterChinaMember_5329732FDDCDBBB41B37B27BE532897E" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_OtherGeographicAreaMember" xlink:label="loc_cgnx_OtherGeographicAreaMember_442573306689C2340029B27BE532FDB1" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_98500BDA9DD627FB7FCBB27BE531737E" xlink:to="loc_cgnx_OtherGeographicAreaMember_442573306689C2340029B27BE532FDB1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SalesRevenueGoodsNet" xlink:label="loc_us-gaap_SalesRevenueGoodsNet_CD988F22D21068AFAC83B27BE532BF31" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_1DC4DC61C7210804FDFCB27BE532B4D6" xlink:to="loc_us-gaap_SalesRevenueGoodsNet_CD988F22D21068AFAC83B27BE532BF31" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_NoncurrentAssets" xlink:label="loc_us-gaap_NoncurrentAssets_196ACCA2C165E6EF7737B27BE532B094" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_1DC4DC61C7210804FDFCB27BE532B4D6" xlink:to="loc_us-gaap_NoncurrentAssets_196ACCA2C165E6EF7737B27BE532B094" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/SegmentAndGeographicInformationTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ShareholdersEquity" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/ShareholdersEquityAdditionalInformationDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_F6768CE4DA5ED0183F5DAD33F6842C54" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_F6768CE4DA5ED0183F5DAD33F6842C54" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_0BE0CE3951198D4EAE8BAD33F684DBBD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_F6768CE4DA5ED0183F5DAD33F6842C54" xlink:to="loc_us-gaap_StatementClassOfStockAxis_0BE0CE3951198D4EAE8BAD33F684DBBD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_7B419E192011D9C1EC1AAD33F684B63E_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0BE0CE3951198D4EAE8BAD33F684DBBD" xlink:to="loc_us-gaap_ClassOfStockDomain_7B419E192011D9C1EC1AAD33F684B63E_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_7B419E192011D9C1EC1AAD33F684B63E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0BE0CE3951198D4EAE8BAD33F684DBBD" xlink:to="loc_us-gaap_ClassOfStockDomain_7B419E192011D9C1EC1AAD33F684B63E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_584437CF61DE812AD10DAD33F684DFC5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_7B419E192011D9C1EC1AAD33F684B63E" xlink:to="loc_us-gaap_CommonStockMember_584437CF61DE812AD10DAD33F684DFC5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_991C1E49B1B0541AB70EAD33F684AA8A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_F6768CE4DA5ED0183F5DAD33F6842C54" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_991C1E49B1B0541AB70EAD33F684AA8A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_430AA55B0D5E2DB33EEDAD33F6857DAC_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_991C1E49B1B0541AB70EAD33F684AA8A" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_430AA55B0D5E2DB33EEDAD33F6857DAC_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_430AA55B0D5E2DB33EEDAD33F6857DAC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_991C1E49B1B0541AB70EAD33F684AA8A" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_430AA55B0D5E2DB33EEDAD33F6857DAC" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_RepurchaseProgram2014Member" xlink:label="loc_cgnx_RepurchaseProgram2014Member_9BEB31DF8253F182303DAD33F6851172" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_430AA55B0D5E2DB33EEDAD33F6857DAC" xlink:to="loc_cgnx_RepurchaseProgram2014Member_9BEB31DF8253F182303DAD33F6851172" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_RepurchaseProgramTwentyFifteenMember" xlink:label="loc_cgnx_RepurchaseProgramTwentyFifteenMember_A997E7F7DAAA647B709DAD33F68577DB" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_430AA55B0D5E2DB33EEDAD33F6857DAC" xlink:to="loc_cgnx_RepurchaseProgramTwentyFifteenMember_A997E7F7DAAA647B709DAD33F68577DB" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_RepurchaseProgramNovember2015Member" xlink:label="loc_cgnx_RepurchaseProgramNovember2015Member_0F7DF625F833D9508570AD33F685E714" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_430AA55B0D5E2DB33EEDAD33F6857DAC" xlink:to="loc_cgnx_RepurchaseProgramNovember2015Member_0F7DF625F833D9508570AD33F685E714" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_DFC6F9649A7F0EF9B096AD33F6853368" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_DFC6F9649A7F0EF9B096AD33F6853368" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_20BA5340DECB438C1BF3AD33F6854148" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_20BA5340DECB438C1BF3AD33F6854148" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_VoteEntitledForEachCommonShareOutstanding" xlink:label="loc_cgnx_VoteEntitledForEachCommonShareOutstanding_8419740A5263E2900277AD33F685BF0E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_cgnx_VoteEntitledForEachCommonShareOutstanding_8419740A5263E2900277AD33F685BF0E" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_NumberOfPreferredStockPurchaseRightForDividendDistribution" xlink:label="loc_cgnx_NumberOfPreferredStockPurchaseRightForDividendDistribution_0C0558B43FF9D89A02E7AD33F685447C" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_cgnx_NumberOfPreferredStockPurchaseRightForDividendDistribution_0C0558B43FF9D89A02E7AD33F685447C" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_CommonSharesToBeOwnedToBecomeAcquiringPerson" xlink:label="loc_cgnx_CommonSharesToBeOwnedToBecomeAcquiringPerson_86D7701FD73547949704AD33F685B714" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_cgnx_CommonSharesToBeOwnedToBecomeAcquiringPerson_86D7701FD73547949704AD33F685B714" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_379A265FA758F89CC79AAD33F685FFA4" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_379A265FA758F89CC79AAD33F685FFA4" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_Totalsharesrepurchased" xlink:label="loc_cgnx_Totalsharesrepurchased_D1A3B798ACBDC46B8307AD33F6853A59" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_cgnx_Totalsharesrepurchased_D1A3B798ACBDC46B8307AD33F6853A59" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_Repurchasedsharestotalcost" xlink:label="loc_cgnx_Repurchasedsharestotalcost_0CAF526B068A6A4717D1AD33F6855254" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_cgnx_Repurchasedsharestotalcost_0CAF526B068A6A4717D1AD33F6855254" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_8625166156E27C28492CAD33F68530ED" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_8625166156E27C28492CAD33F68530ED" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_6C658C51A921A44704C7AD33F68597A0" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_6C658C51A921A44704C7AD33F68597A0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CommonStockDividendsPerShareDeclared" xlink:label="loc_us-gaap_CommonStockDividendsPerShareDeclared_AA1865ACBBACCC11953CAD33F685E9D4" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_AA1865ACBBACCC11953CAD33F685E9D4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PaymentsOfDividends" xlink:label="loc_us-gaap_PaymentsOfDividends_F0F3090C589301D277D4AD33F68628C6" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B2AB4FF95F487E8BC4F6AD33F685F137" xlink:to="loc_us-gaap_PaymentsOfDividends_F0F3090C589301D277D4AD33F68628C6" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/StockBasedCompensation" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/StockBasedCompensationExpenseAdditionalInformationDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CCCAE02691EBB7CA8FC0A3A02FAAD385" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CCCAE02691EBB7CA8FC0A3A02FAAD385" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_411A54A05E1A7C258750A3D69A4182C1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CCCAE02691EBB7CA8FC0A3A02FAAD385" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_411A54A05E1A7C258750A3D69A4182C1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_711721FEFEF74353579BA3D69A468F5E_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_411A54A05E1A7C258750A3D69A4182C1" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_711721FEFEF74353579BA3D69A468F5E_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_711721FEFEF74353579BA3D69A468F5E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_411A54A05E1A7C258750A3D69A4182C1" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_711721FEFEF74353579BA3D69A468F5E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationsDisposedOfBySaleMember" xlink:label="loc_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_9F4790A0E8FFB690A704A3D69A9DD10A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupClassificationDomain_711721FEFEF74353579BA3D69A468F5E" xlink:to="loc_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_9F4790A0E8FFB690A704A3D69A9DD10A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_C816EC03883697AF8C65A3A02FAAC32E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_CCCAE02691EBB7CA8FC0A3A02FAAD385" xlink:to="loc_us-gaap_AwardTypeAxis_C816EC03883697AF8C65A3A02FAAC32E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_38E6C763940F2241CF3FA3A02FAAB84F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_C816EC03883697AF8C65A3A02FAAC32E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_38E6C763940F2241CF3FA3A02FAAB84F_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_38E6C763940F2241CF3FA3A02FAAB84F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_C816EC03883697AF8C65A3A02FAAC32E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_38E6C763940F2241CF3FA3A02FAAB84F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_3D46850505B980DD0379A3A02FAAF985" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_38E6C763940F2241CF3FA3A02FAAB84F" xlink:to="loc_us-gaap_EmployeeStockOptionMember_3D46850505B980DD0379A3A02FAAF985" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_10415D4613DFAB2BDF10A3A02FAADDBE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_10415D4613DFAB2BDF10A3A02FAADDBE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_4651016000A07BE9385CA3A02FAA9C63" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_4651016000A07BE9385CA3A02FAA9C63" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_ExpirationPeriodOfStockOptionPlan" xlink:label="loc_cgnx_ExpirationPeriodOfStockOptionPlan_41EB69BB22E3362FC82EA3A02FAA7BEF" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_cgnx_ExpirationPeriodOfStockOptionPlan_41EB69BB22E3362FC82EA3A02FAA7BEF" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedDividendRateYearTwo" xlink:label="loc_cgnx_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedDividendRateYearTwo_B0A5E70161B671922B7AA3A02FAB3103" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_cgnx_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedDividendRateYearTwo_B0A5E70161B671922B7AA3A02FAB3103" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_NumberOfGroupsWithinEmployeePopulation" xlink:label="loc_cgnx_NumberOfGroupsWithinEmployeePopulation_541D25AF0F89D4A11998A3A02FABA6D8" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_cgnx_NumberOfGroupsWithinEmployeePopulation_541D25AF0F89D4A11998A3A02FABA6D8" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_PercentageOfStockOptionsGrantedToAllOtherEmployeesExpectedToVest" xlink:label="loc_cgnx_PercentageOfStockOptionsGrantedToAllOtherEmployeesExpectedToVest_8E15AFA2206BFDD6BB91A3A02FABF543" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_cgnx_PercentageOfStockOptionsGrantedToAllOtherEmployeesExpectedToVest_8E15AFA2206BFDD6BB91A3A02FABF543" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_PercentageOfStockOptionsGrantedToSeniorManagementExpectedToVest" xlink:label="loc_cgnx_PercentageOfStockOptionsGrantedToSeniorManagementExpectedToVest_ECFBBFD8C25520531FB0A3A02FAB03D7" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_cgnx_PercentageOfStockOptionsGrantedToSeniorManagementExpectedToVest_ECFBBFD8C25520531FB0A3A02FAB03D7" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_EstimatedForfeitureRateForUnvestedOptionsForSeniorManagement" xlink:label="loc_cgnx_EstimatedForfeitureRateForUnvestedOptionsForSeniorManagement_6F75814BF8E860F21DC5A3A02FAB442B" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_cgnx_EstimatedForfeitureRateForUnvestedOptionsForSeniorManagement_6F75814BF8E860F21DC5A3A02FAB442B" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_EstimatedForfeitureRateForUnvestedOptionsForAllNonSeniorManagement" xlink:label="loc_cgnx_EstimatedForfeitureRateForUnvestedOptionsForAllNonSeniorManagement_44572FE733614B595760A3A02FABC8C6" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_cgnx_EstimatedForfeitureRateForUnvestedOptionsForAllNonSeniorManagement_44572FE733614B595760A3A02FABC8C6" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_IncreaseInCompensationExpenseDueToRevisedEstimatedForfeitureRates" xlink:label="loc_cgnx_IncreaseInCompensationExpenseDueToRevisedEstimatedForfeitureRates_FC8E22697AD2F30ADC0FA3A02FABC330" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_cgnx_IncreaseInCompensationExpenseDueToRevisedEstimatedForfeitureRates_FC8E22697AD2F30ADC0FA3A02FABC330" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_F1347E7C58ECB1F826C9A3A02FAB9C32" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_F1347E7C58ECB1F826C9A3A02FAB9C32" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_SharesBasedCompensationArrangementBySharesBasedPaymentAwardOptionsExercisableIntrinsicValue" xlink:label="loc_cgnx_SharesBasedCompensationArrangementBySharesBasedPaymentAwardOptionsExercisableIntrinsicValue_6E0D9D4BEF20EF3D7F15A3A02FAB3423" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_cgnx_SharesBasedCompensationArrangementBySharesBasedPaymentAwardOptionsExercisableIntrinsicValue_6E0D9D4BEF20EF3D7F15A3A02FAB3423" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedFairValue" xlink:label="loc_cgnx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedFairValue_4106110F63232C87D3E2A3A02FABD115" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_cgnx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedFairValue_4106110F63232C87D3E2A3A02FABD115" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_60ECFFE60FE60E068CACA3A02FB039C1" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_60ECFFE60FE60E068CACA3A02FB039C1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_1E7F96EAB1AC71FC231CA3A02FB08C9E" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_1E7F96EAB1AC71FC231CA3A02FB08C9E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_272119E116224FD95229A3A02FB0B0E6" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_272119E116224FD95229A3A02FB0B0E6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_B81571CF20E8CDD4C68EA3A02FB10296" xlink:type="locator" />
    <definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_B81571CF20E8CDD4C68EA3A02FB10296" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_EmployeeServiceShareBasedCompensationRecognizedPeriodCostsCapitalizedAmount" xlink:label="loc_cgnx_EmployeeServiceShareBasedCompensationRecognizedPeriodCostsCapitalizedAmount_C4E0698D04E002B98066A3A02FB1281F" xlink:type="locator" />
    <definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_cgnx_EmployeeServiceShareBasedCompensationRecognizedPeriodCostsCapitalizedAmount_C4E0698D04E002B98066A3A02FB1281F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_E4BE04709ED43F7A0F42A3D69A13550C" xlink:type="locator" />
    <definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE77842764D96A560AD8A3A02FAA7DA6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_E4BE04709ED43F7A0F42A3D69A13550C" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_785AD5F7821042CE2458A3A02F654DE7" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_83091E4B506BED56CEC8A3A02F5F4ADD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_785AD5F7821042CE2458A3A02F654DE7" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_83091E4B506BED56CEC8A3A02F5F4ADD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_60C8074F5BE76B9A3BEAA3A02F5FE11F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_83091E4B506BED56CEC8A3A02F5F4ADD" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_60C8074F5BE76B9A3BEAA3A02F5FE11F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_27BAC230432086829460A3A02F603CC9_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_60C8074F5BE76B9A3BEAA3A02F5FE11F" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_27BAC230432086829460A3A02F603CC9_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_27BAC230432086829460A3A02F603CC9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_60C8074F5BE76B9A3BEAA3A02F5FE11F" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_27BAC230432086829460A3A02F603CC9" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_ProductCostOfRevenueMember" xlink:label="loc_cgnx_ProductCostOfRevenueMember_CB3914D51787E6A88B00A3A02F607EC3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_27BAC230432086829460A3A02F603CC9" xlink:to="loc_cgnx_ProductCostOfRevenueMember_CB3914D51787E6A88B00A3A02F607EC3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_C4FB460C4E92F95D9228A3A02F601872" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_27BAC230432086829460A3A02F603CC9" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_C4FB460C4E92F95D9228A3A02F601872" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_SellingGeneralAndAdministrativeMember" xlink:label="loc_cgnx_SellingGeneralAndAdministrativeMember_3AA0CA2D9C4EBAF9E43AA3A02F609B43" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_27BAC230432086829460A3A02F603CC9" xlink:to="loc_cgnx_SellingGeneralAndAdministrativeMember_3AA0CA2D9C4EBAF9E43AA3A02F609B43" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_01863CDDE91BC748CD90A3A02F65D495" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_785AD5F7821042CE2458A3A02F654DE7" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_01863CDDE91BC748CD90A3A02F65D495" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_Stockbasedcompensationdiscontinuedoperation" xlink:label="loc_cgnx_Stockbasedcompensationdiscontinuedoperation_993CB016663D172A5ED6A3A02F65DBED" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_785AD5F7821042CE2458A3A02F654DE7" xlink:to="loc_cgnx_Stockbasedcompensationdiscontinuedoperation_993CB016663D172A5ED6A3A02F65DBED" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_75F0690B27D55AD68C09A3A02F65022A" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_785AD5F7821042CE2458A3A02F654DE7" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_75F0690B27D55AD68C09A3A02F65022A" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_EmployeeServiceShareBasedCompensationRecognizedPeriodCostsCapitalizedAmount" xlink:label="loc_cgnx_EmployeeServiceShareBasedCompensationRecognizedPeriodCostsCapitalizedAmount_8155F5F58527F7D1D95BA3A02F655759" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_785AD5F7821042CE2458A3A02F654DE7" xlink:to="loc_cgnx_EmployeeServiceShareBasedCompensationRecognizedPeriodCostsCapitalizedAmount_8155F5F58527F7D1D95BA3A02F655759" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/StockBasedCompensationExpenseSummaryOfStockOptionActivityDetail" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/StockBasedCompensationExpenseWeightedAverageAssumptionsUsedInEstimatingFairValuesOfStockOptionsGrantedDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_0ED9FD233C0E27F61631B807437C4887" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_14732F907747EFCBD456B807437C9706" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_0ED9FD233C0E27F61631B807437C4887" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_14732F907747EFCBD456B807437C9706" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_22CD49264E79AD2449D8B807437C26CE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_14732F907747EFCBD456B807437C9706" xlink:to="loc_us-gaap_AwardTypeAxis_22CD49264E79AD2449D8B807437C26CE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E78B9C53BCECA409AFB7B807437CBB37_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_22CD49264E79AD2449D8B807437C26CE" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E78B9C53BCECA409AFB7B807437CBB37_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E78B9C53BCECA409AFB7B807437CBB37" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_22CD49264E79AD2449D8B807437C26CE" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E78B9C53BCECA409AFB7B807437CBB37" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_BE33C28F7FC22A8B7AE6B807437CF21F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E78B9C53BCECA409AFB7B807437CBB37" xlink:to="loc_us-gaap_EmployeeStockOptionMember_BE33C28F7FC22A8B7AE6B807437CF21F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_AE5DA7A1BD2D6FD174C7B807437C268A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_0ED9FD233C0E27F61631B807437C4887" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_AE5DA7A1BD2D6FD174C7B807437C268A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_8F5FD1097625FB27A066B807437CC617" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_0ED9FD233C0E27F61631B807437C4887" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_8F5FD1097625FB27A066B807437CC617" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_4B400255756DDD8F09EEB807437CBDD6" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_0ED9FD233C0E27F61631B807437C4887" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_4B400255756DDD8F09EEB807437CBDD6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_F784D94C35FBF97B6322B807437C71DD" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_0ED9FD233C0E27F61631B807437C4887" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_F784D94C35FBF97B6322B807437C71DD" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedDividendRateYearTwo" xlink:label="loc_cgnx_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedDividendRateYearTwo_3CEFF4DFD3D80407B3A0B807437CF7FF" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_0ED9FD233C0E27F61631B807437C4887" xlink:to="loc_cgnx_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedDividendRateYearTwo_3CEFF4DFD3D80407B3A0B807437CF7FF" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/StockBasedCompensationStockBasedCompensationExpenseSummaryOfRestrictedStockOptionActivityDetailDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_B325298FCEBFE0977069B807439BE51C" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_5E8805D40C9B5B27B55DB807439B7EB3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_B325298FCEBFE0977069B807439BE51C" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_5E8805D40C9B5B27B55DB807439B7EB3" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_E76B4E889DF26FCFA95EB807439B4C99" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_5E8805D40C9B5B27B55DB807439B7EB3" xlink:to="loc_us-gaap_AwardTypeAxis_E76B4E889DF26FCFA95EB807439B4C99" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BEF3B5121DD73DD8CD56B807439B7026_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_E76B4E889DF26FCFA95EB807439B4C99" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BEF3B5121DD73DD8CD56B807439B7026_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BEF3B5121DD73DD8CD56B807439B7026" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_E76B4E889DF26FCFA95EB807439B4C99" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BEF3B5121DD73DD8CD56B807439B7026" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_4DBD24DE7109474C66F0B807439B2A10" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BEF3B5121DD73DD8CD56B807439B7026" xlink:to="loc_us-gaap_RestrictedStockMember_4DBD24DE7109474C66F0B807439B2A10" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_B01D135DD5B83144E020B807439B40CA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_B325298FCEBFE0977069B807439BE51C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_B01D135DD5B83144E020B807439B40CA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_18034554B73D9F9C8B26B807439BA0E9" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_B325298FCEBFE0977069B807439BE51C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_18034554B73D9F9C8B26B807439BA0E9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_7ADB58B21751CCE45E4EB807439BA2EC" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_B325298FCEBFE0977069B807439BE51C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_7ADB58B21751CCE45E4EB807439BA2EC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_BA17054E7385E018082EB807439BBF5F" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_B325298FCEBFE0977069B807439BE51C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_BA17054E7385E018082EB807439BBF5F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_9923724328F6877BE8E3B807439B08A7" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_B325298FCEBFE0977069B807439BE51C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_9923724328F6877BE8E3B807439B08A7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_87017E82AE3ED4741208B807439BCDCB" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_B325298FCEBFE0977069B807439BE51C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_87017E82AE3ED4741208B807439BCDCB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_4120B4A9BD8D93B3BBD3B807439B50BE" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_B325298FCEBFE0977069B807439BE51C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_4120B4A9BD8D93B3BBD3B807439B50BE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_61F4B5462BF792E184A4B807439BD366" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_B325298FCEBFE0977069B807439BE51C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_61F4B5462BF792E184A4B807439BD366" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueNonvested" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueNonvested_E0A15930D46A5683A67CB807439BA331" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_B325298FCEBFE0977069B807439BE51C" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueNonvested_E0A15930D46A5683A67CB807439BA331" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/StockBasedCompensationTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/SubsequentEventsSubsequentEventsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SubsequentEventLineItems" xlink:label="loc_us-gaap_SubsequentEventLineItems_6CEB1EB553793AE54F52AD33B34A9802" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SubsequentEventTable" xlink:label="loc_us-gaap_SubsequentEventTable_A0A50E792D214C5078DDAD33B34AC8F4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_6CEB1EB553793AE54F52AD33B34A9802" xlink:to="loc_us-gaap_SubsequentEventTable_A0A50E792D214C5078DDAD33B34AC8F4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_36A7FDA620857DF8098AAD33B34AA3C3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_A0A50E792D214C5078DDAD33B34AC8F4" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_36A7FDA620857DF8098AAD33B34AA3C3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_C0D53312E2905418909AAD33B34A869D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_36A7FDA620857DF8098AAD33B34AA3C3" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_C0D53312E2905418909AAD33B34A869D_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_C0D53312E2905418909AAD33B34A869D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_36A7FDA620857DF8098AAD33B34AA3C3" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_C0D53312E2905418909AAD33B34A869D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_FF99FA7708A608118E6CAD33B34A3840" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_C0D53312E2905418909AAD33B34A869D" xlink:to="loc_us-gaap_SubsequentEventMember_FF99FA7708A608118E6CAD33B34A3840" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DividendsPayableAmountPerShare" xlink:label="loc_us-gaap_DividendsPayableAmountPerShare_217017E715A6744D25DFAD33B34B0A0D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_6CEB1EB553793AE54F52AD33B34A9802" xlink:to="loc_us-gaap_DividendsPayableAmountPerShare_217017E715A6744D25DFAD33B34B0A0D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DividendsPayableDateDeclaredDayMonthAndYear" xlink:label="loc_us-gaap_DividendsPayableDateDeclaredDayMonthAndYear_A5E32E66502EEBB7EE59AD33C13DFA53" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_6CEB1EB553793AE54F52AD33B34A9802" xlink:to="loc_us-gaap_DividendsPayableDateDeclaredDayMonthAndYear_A5E32E66502EEBB7EE59AD33C13DFA53" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DividendsPayableDateOfRecordDayMonthAndYear" xlink:label="loc_us-gaap_DividendsPayableDateOfRecordDayMonthAndYear_0789C1E3FCC258FAE431AD33C1A57503" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_6CEB1EB553793AE54F52AD33B34A9802" xlink:to="loc_us-gaap_DividendsPayableDateOfRecordDayMonthAndYear_0789C1E3FCC258FAE431AD33C1A57503" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/SubsequentEventsSubsequentEventsNotes" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_BA9EDF88C4F28DA999ACA388BDEE0BAC" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_568614A626D97B86EB39A388BDED6C30" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_BA9EDF88C4F28DA999ACA388BDEE0BAC" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_568614A626D97B86EB39A388BDED6C30" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_2E27DEC1A75E308B8A6DA388BDED6C16" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_568614A626D97B86EB39A388BDED6C30" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_2E27DEC1A75E308B8A6DA388BDED6C16" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DB71C853D2298B2EF562A388BDED6E24_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_2E27DEC1A75E308B8A6DA388BDED6C16" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DB71C853D2298B2EF562A388BDED6E24_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DB71C853D2298B2EF562A388BDED6E24" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_2E27DEC1A75E308B8A6DA388BDED6C16" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DB71C853D2298B2EF562A388BDED6E24" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_BuildingMember" xlink:label="loc_us-gaap_BuildingMember_E2A4003C1D1F842339E7A388BDED09E9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DB71C853D2298B2EF562A388BDED6E24" xlink:to="loc_us-gaap_BuildingMember_E2A4003C1D1F842339E7A388BDED09E9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_BuildingImprovementsMember" xlink:label="loc_us-gaap_BuildingImprovementsMember_F00E61A85568E8A18A0DA388BDED1672" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DB71C853D2298B2EF562A388BDED6E24" xlink:to="loc_us-gaap_BuildingImprovementsMember_F00E61A85568E8A18A0DA388BDED1672" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_ComputerHardwareAndSoftwareMember" xlink:label="loc_cgnx_ComputerHardwareAndSoftwareMember_13CCB6F1FC96FA0565D5A388BDED22D9" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DB71C853D2298B2EF562A388BDED6E24" xlink:to="loc_cgnx_ComputerHardwareAndSoftwareMember_13CCB6F1FC96FA0565D5A388BDED22D9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EquipmentMember" xlink:label="loc_us-gaap_EquipmentMember_5AF5FDC342EAD5A30900A388BDEEA0FF" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DB71C853D2298B2EF562A388BDED6E24" xlink:to="loc_us-gaap_EquipmentMember_5AF5FDC342EAD5A30900A388BDEEA0FF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_D22258D67DFD8054C9A6A388BDEE6230" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_DB71C853D2298B2EF562A388BDED6E24" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_D22258D67DFD8054C9A6A388BDEE6230" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_C5B559ED8892BF822496A388BDEE6B2E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_568614A626D97B86EB39A388BDED6C30" xlink:to="loc_us-gaap_RangeAxis_C5B559ED8892BF822496A388BDEE6B2E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_95ECD15F1CF36860814AA388BDEE0937_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_C5B559ED8892BF822496A388BDEE6B2E" xlink:to="loc_us-gaap_RangeMember_95ECD15F1CF36860814AA388BDEE0937_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_95ECD15F1CF36860814AA388BDEE0937" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_C5B559ED8892BF822496A388BDEE6B2E" xlink:to="loc_us-gaap_RangeMember_95ECD15F1CF36860814AA388BDEE0937" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_1FA668E8A66B47B6C817A388BDEEF8CA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_95ECD15F1CF36860814AA388BDEE0937" xlink:to="loc_us-gaap_MinimumMember_1FA668E8A66B47B6C817A388BDEEF8CA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_220C8C55B36963122AB0A388BDEEF890" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_95ECD15F1CF36860814AA388BDEE0937" xlink:to="loc_us-gaap_MaximumMember_220C8C55B36963122AB0A388BDEEF890" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_45BEE5C6ECF924A79F64A388BDEE2DCE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_BA9EDF88C4F28DA999ACA388BDEE0BAC" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_45BEE5C6ECF924A79F64A388BDEE2DCE" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesAdvertisingCostsDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesComprehensiveIncomeLossDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0F6D15E62AABC92D4B06A38B8F620DC3" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_106C15315ECCBC36E962A38B8F61AACD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0F6D15E62AABC92D4B06A38B8F620DC3" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_106C15315ECCBC36E962A38B8F61AACD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_B756A50368310761800CA38B8F61E94B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_106C15315ECCBC36E962A38B8F61AACD" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_B756A50368310761800CA38B8F61E94B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_655CADAAB9103A93B02EA38B8F61F53D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B756A50368310761800CA38B8F61E94B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_655CADAAB9103A93B02EA38B8F61F53D_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_655CADAAB9103A93B02EA38B8F61F53D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B756A50368310761800CA38B8F61E94B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_655CADAAB9103A93B02EA38B8F61F53D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_69C7D220A4A85AD5A3B8A38B8F618AF4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_655CADAAB9103A93B02EA38B8F61F53D" xlink:to="loc_us-gaap_CashFlowHedgingMember_69C7D220A4A85AD5A3B8A38B8F618AF4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_F8928FF0299861526386A38B8F611C20" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_106C15315ECCBC36E962A38B8F61AACD" xlink:to="loc_us-gaap_HedgingDesignationAxis_F8928FF0299861526386A38B8F611C20" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_44DB5D1C2E893C501781A38B8F612BC9_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_F8928FF0299861526386A38B8F611C20" xlink:to="loc_us-gaap_HedgingDesignationDomain_44DB5D1C2E893C501781A38B8F612BC9_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_44DB5D1C2E893C501781A38B8F612BC9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_F8928FF0299861526386A38B8F611C20" xlink:to="loc_us-gaap_HedgingDesignationDomain_44DB5D1C2E893C501781A38B8F612BC9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_FF9EAC31727218EA4CAAA38B8F61B2F5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_44DB5D1C2E893C501781A38B8F612BC9" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_FF9EAC31727218EA4CAAA38B8F61B2F5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_6BCC6F9C49C7D21BEEB4A38B8F617500" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_106C15315ECCBC36E962A38B8F61AACD" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_6BCC6F9C49C7D21BEEB4A38B8F617500" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_00D8CEC0E153F5E2FF4BA38B8F62C5BD_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_6BCC6F9C49C7D21BEEB4A38B8F617500" xlink:to="loc_us-gaap_EquityComponentDomain_00D8CEC0E153F5E2FF4BA38B8F62C5BD_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_00D8CEC0E153F5E2FF4BA38B8F62C5BD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_6BCC6F9C49C7D21BEEB4A38B8F617500" xlink:to="loc_us-gaap_EquityComponentDomain_00D8CEC0E153F5E2FF4BA38B8F62C5BD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_F369FCAF93DAD60CE176A38B8F628981" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_00D8CEC0E153F5E2FF4BA38B8F62C5BD" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_F369FCAF93DAD60CE176A38B8F628981" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_0CF29942AE56F167CD2BA38B8F62C80F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0F6D15E62AABC92D4B06A38B8F620DC3" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentNetOfTax_0CF29942AE56F167CD2BA38B8F62C80F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_80090B9FE99197D41EF2A38B8F623C65" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0F6D15E62AABC92D4B06A38B8F620DC3" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_80090B9FE99197D41EF2A38B8F623C65" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeEffectivePortionNet" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeEffectivePortionNet_F13EB7157320D75BB866A38B8F621AFA" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0F6D15E62AABC92D4B06A38B8F620DC3" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeEffectivePortionNet_F13EB7157320D75BB866A38B8F621AFA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_AdjustmentForLongTermIntercompanyTransactionsNetOfTax" xlink:label="loc_us-gaap_AdjustmentForLongTermIntercompanyTransactionsNetOfTax_D22096F4662782AA27AFA38B8F628680" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0F6D15E62AABC92D4B06A38B8F620DC3" xlink:to="loc_us-gaap_AdjustmentForLongTermIntercompanyTransactionsNetOfTax_D22096F4662782AA27AFA38B8F628680" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_B60D49813F21F6B46509A38B8F620AC5" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0F6D15E62AABC92D4B06A38B8F620DC3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_B60D49813F21F6B46509A38B8F620AC5" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesIntangibleAssetsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_95DC7AAC0D49DBA0253AB80744272C5A" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DCA9BD8C3F8ACEF94B31B80744277C8E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_95DC7AAC0D49DBA0253AB80744272C5A" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DCA9BD8C3F8ACEF94B31B80744277C8E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_D3260792E18EBC3406FBB8074427BCD9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DCA9BD8C3F8ACEF94B31B80744277C8E" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_D3260792E18EBC3406FBB8074427BCD9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_952D442BA87A721E0618B807442711D5_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_D3260792E18EBC3406FBB8074427BCD9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_952D442BA87A721E0618B807442711D5_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_952D442BA87A721E0618B807442711D5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_D3260792E18EBC3406FBB8074427BCD9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_952D442BA87A721E0618B807442711D5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DistributionRightsMember" xlink:label="loc_us-gaap_DistributionRightsMember_4D5D148A955CA60E37DCB8074427D753" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_952D442BA87A721E0618B807442711D5" xlink:to="loc_us-gaap_DistributionRightsMember_4D5D148A955CA60E37DCB8074427D753" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_CustomerContractsAndRelationshipsMember" xlink:label="loc_cgnx_CustomerContractsAndRelationshipsMember_1F6264E130D0FFE7918EB8074427A66D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_952D442BA87A721E0618B807442711D5" xlink:to="loc_cgnx_CustomerContractsAndRelationshipsMember_1F6264E130D0FFE7918EB8074427A66D" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_CompletedTechnologiesAndOtherIntangibleAssetsMember" xlink:label="loc_cgnx_CompletedTechnologiesAndOtherIntangibleAssetsMember_83BB6C8B8DDDE63E90F7B80744275C12" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_952D442BA87A721E0618B807442711D5" xlink:to="loc_cgnx_CompletedTechnologiesAndOtherIntangibleAssetsMember_83BB6C8B8DDDE63E90F7B80744275C12" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_8D0B7BA351A0A9E2B234B80744276963" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_DCA9BD8C3F8ACEF94B31B80744277C8E" xlink:to="loc_us-gaap_RangeAxis_8D0B7BA351A0A9E2B234B80744276963" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_3DD8C425FC14FF009DF3B807442763AB_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_8D0B7BA351A0A9E2B234B80744276963" xlink:to="loc_us-gaap_RangeMember_3DD8C425FC14FF009DF3B807442763AB_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_3DD8C425FC14FF009DF3B807442763AB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_8D0B7BA351A0A9E2B234B80744276963" xlink:to="loc_us-gaap_RangeMember_3DD8C425FC14FF009DF3B807442763AB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_1F0306DA0197A26A342DB8074427CA46" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_3DD8C425FC14FF009DF3B807442763AB" xlink:to="loc_us-gaap_MinimumMember_1F0306DA0197A26A342DB8074427CA46" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_595AFCBDD09BCF8666F8B8074427549B" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_3DD8C425FC14FF009DF3B807442763AB" xlink:to="loc_us-gaap_MaximumMember_595AFCBDD09BCF8666F8B8074427549B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_92EEF0BEFBFC746E53E7B8074427F460" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_95DC7AAC0D49DBA0253AB80744272C5A" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_92EEF0BEFBFC746E53E7B8074427F460" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfSignificantAccountingPoliciesGoodwillDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/SummaryOfSignificantAccountingPoliciesWarrantyDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ProductLiabilityContingencyLineItems" xlink:label="loc_us-gaap_ProductLiabilityContingencyLineItems_31B4C9A514077961D464B80742D00A81" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ProductLiabilityContingencyTable" xlink:label="loc_us-gaap_ProductLiabilityContingencyTable_0FD5805037489ECDEF86B80742D0BE56" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ProductLiabilityContingencyLineItems_31B4C9A514077961D464B80742D00A81" xlink:to="loc_us-gaap_ProductLiabilityContingencyTable_0FD5805037489ECDEF86B80742D0BE56" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_64CEA5F2D5BEA1B83F41B80742D02C0A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ProductLiabilityContingencyTable_0FD5805037489ECDEF86B80742D0BE56" xlink:to="loc_us-gaap_RangeAxis_64CEA5F2D5BEA1B83F41B80742D02C0A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_EE45F639BE0356AE69E0B80742D0CC40_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_64CEA5F2D5BEA1B83F41B80742D02C0A" xlink:to="loc_us-gaap_RangeMember_EE45F639BE0356AE69E0B80742D0CC40_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_EE45F639BE0356AE69E0B80742D0CC40" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_64CEA5F2D5BEA1B83F41B80742D02C0A" xlink:to="loc_us-gaap_RangeMember_EE45F639BE0356AE69E0B80742D0CC40" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_7D3B33CDDC10B718B828B80742D05C25" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_EE45F639BE0356AE69E0B80742D0CC40" xlink:to="loc_us-gaap_MinimumMember_7D3B33CDDC10B718B828B80742D05C25" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_048B11A3A37FCE37ED5CB80742D0BD30" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_EE45F639BE0356AE69E0B80742D0CC40" xlink:to="loc_us-gaap_MaximumMember_048B11A3A37FCE37ED5CB80742D0BD30" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_ProductWarrantyPeriod" xlink:label="loc_cgnx_ProductWarrantyPeriod_C7901FED7D4CEB158CDDB80742D0C865" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProductLiabilityContingencyLineItems_31B4C9A514077961D464B80742D00A81" xlink:to="loc_cgnx_ProductWarrantyPeriod_C7901FED7D4CEB158CDDB80742D0C865" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/Taxes" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/TaxesAdditionalInformationDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_TaxCreditCarryforwardLineItems" xlink:label="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_TaxCreditCarryforwardTable" xlink:label="loc_us-gaap_TaxCreditCarryforwardTable_E16C6A51AA48BAA90717C7A18A26E4E0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_TaxCreditCarryforwardTable_E16C6A51AA48BAA90717C7A18A26E4E0" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_16F48D70F3A268E65F32C7A18A2601CE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_E16C6A51AA48BAA90717C7A18A26E4E0" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_16F48D70F3A268E65F32C7A18A2601CE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_557D529EA1AC591F378CC7A18A26CA5B_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_16F48D70F3A268E65F32C7A18A2601CE" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_557D529EA1AC591F378CC7A18A26CA5B_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_557D529EA1AC591F378CC7A18A26CA5B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_16F48D70F3A268E65F32C7A18A2601CE" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_557D529EA1AC591F378CC7A18A26CA5B" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_SisdMember" xlink:label="loc_cgnx_SisdMember_8E93671D67114973E839C7A18A268FE6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_557D529EA1AC591F378CC7A18A26CA5B" xlink:to="loc_cgnx_SisdMember_8E93671D67114973E839C7A18A268FE6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_43226D6AA1C2EB46B978C7A18A2649BE" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_E16C6A51AA48BAA90717C7A18A26E4E0" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_43226D6AA1C2EB46B978C7A18A2649BE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_4A21A332EEF926D60850C7A18A268515_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_43226D6AA1C2EB46B978C7A18A2649BE" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_4A21A332EEF926D60850C7A18A268515_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_4A21A332EEF926D60850C7A18A268515" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_43226D6AA1C2EB46B978C7A18A2649BE" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_4A21A332EEF926D60850C7A18A268515" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationsDisposedOfBySaleMember" xlink:label="loc_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_EEC1C0BC7D3547A0678FC7A18A26B9C9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupClassificationDomain_4A21A332EEF926D60850C7A18A268515" xlink:to="loc_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_EEC1C0BC7D3547A0678FC7A18A26B9C9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_TaxCreditCarryforwardAxis" xlink:label="loc_us-gaap_TaxCreditCarryforwardAxis_41AE2731996409E26ABFC7A18A2690E3" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_E16C6A51AA48BAA90717C7A18A26E4E0" xlink:to="loc_us-gaap_TaxCreditCarryforwardAxis_41AE2731996409E26ABFC7A18A2690E3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_TaxCreditCarryforwardNameDomain" xlink:label="loc_us-gaap_TaxCreditCarryforwardNameDomain_87AAB6575A9CA4615C4FC7A18A269EE9_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxCreditCarryforwardAxis_41AE2731996409E26ABFC7A18A2690E3" xlink:to="loc_us-gaap_TaxCreditCarryforwardNameDomain_87AAB6575A9CA4615C4FC7A18A269EE9_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_TaxCreditCarryforwardNameDomain" xlink:label="loc_us-gaap_TaxCreditCarryforwardNameDomain_87AAB6575A9CA4615C4FC7A18A269EE9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxCreditCarryforwardAxis_41AE2731996409E26ABFC7A18A2690E3" xlink:to="loc_us-gaap_TaxCreditCarryforwardNameDomain_87AAB6575A9CA4615C4FC7A18A269EE9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ResearchMember" xlink:label="loc_us-gaap_ResearchMember_C73BD0C227305662D576C7A18A267873" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardNameDomain_87AAB6575A9CA4615C4FC7A18A269EE9" xlink:to="loc_us-gaap_ResearchMember_C73BD0C227305662D576C7A18A267873" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_StateResearchAndExperimentationMember" xlink:label="loc_cgnx_StateResearchAndExperimentationMember_5D3D874A869416F05DB6C7A18A263BF6" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardNameDomain_87AAB6575A9CA4615C4FC7A18A269EE9" xlink:to="loc_cgnx_StateResearchAndExperimentationMember_5D3D874A869416F05DB6C7A18A263BF6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_87E99A030739645F192EC7A18A26BD31" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_87E99A030739645F192EC7A18A26BD31" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_751394CC8C2A38B6EF73C7A18A273085" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_751394CC8C2A38B6EF73C7A18A273085" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeTaxReconciliationPriorYearIncomeTaxes" xlink:label="loc_us-gaap_IncomeTaxReconciliationPriorYearIncomeTaxes_AFC2CB14CF826F329E4CC7A18A276479" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_IncomeTaxReconciliationPriorYearIncomeTaxes_AFC2CB14CF826F329E4CC7A18A276479" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_IncomeTaxReconciliationReductionsResultingFromLapseOfApplicableStatuteOfLimitations" xlink:label="loc_cgnx_IncomeTaxReconciliationReductionsResultingFromLapseOfApplicableStatuteOfLimitations_E0B595E43AE6AF9AEA05C7A18A27047C" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_IncomeTaxReconciliationReductionsResultingFromLapseOfApplicableStatuteOfLimitations_E0B595E43AE6AF9AEA05C7A18A27047C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsResearch" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_0C4DD02EA5ABD29817A8C7A18A27153E" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_0C4DD02EA5ABD29817A8C7A18A27153E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeTaxExaminationIncreaseDecreaseInLiabilityFromPriorYear" xlink:label="loc_us-gaap_IncomeTaxExaminationIncreaseDecreaseInLiabilityFromPriorYear_2A935DB227132894E6D6C7A18A27DBB8" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_IncomeTaxExaminationIncreaseDecreaseInLiabilityFromPriorYear_2A935DB227132894E6D6C7A18A27DBB8" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_IncreaseDecreaseInterestAndPenalties" xlink:label="loc_cgnx_IncreaseDecreaseInterestAndPenalties_F7423E3E6BCAEF70F546C7A18A27B5D0" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_IncreaseDecreaseInterestAndPenalties_F7423E3E6BCAEF70F546C7A18A27B5D0" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_Unrecognizedtaxbenefitshownasareductiontononcurrentdeferredtaxassets" xlink:label="loc_cgnx_Unrecognizedtaxbenefitshownasareductiontononcurrentdeferredtaxassets_E9CBA406CC4E95D07EB8C7A18A27C1A5" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_Unrecognizedtaxbenefitshownasareductiontononcurrentdeferredtaxassets_E9CBA406CC4E95D07EB8C7A18A27C1A5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_LiabilityForUncertainTaxPositionsNoncurrent" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_A4ED8F8D4DAF5EDD70BDC7A18A27F021" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_A4ED8F8D4DAF5EDD70BDC7A18A27F021" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DeferredTaxLiabilitiesGrossNoncurrent" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGrossNoncurrent_4A5D694A1E8245ECAAA3C7A18A278DA2" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGrossNoncurrent_4A5D694A1E8245ECAAA3C7A18A278DA2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_A35CC29952FAB078DA03C7A18A276271" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_A35CC29952FAB078DA03C7A18A276271" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_42553D3FCE64D33AB792C7A18A275E84" xlink:type="locator" />
    <definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_42553D3FCE64D33AB792C7A18A275E84" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_MinimumDecreaseInIncomeTaxExpenseDueToReleaseInReserves" xlink:label="loc_cgnx_MinimumDecreaseInIncomeTaxExpenseDueToReleaseInReserves_309E5A4332B79235477BC7A18A275500" xlink:type="locator" />
    <definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_MinimumDecreaseInIncomeTaxExpenseDueToReleaseInReserves_309E5A4332B79235477BC7A18A275500" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_MaximumDecreaseInIncomeTaxExpenseDueToReleaseInReserves" xlink:label="loc_cgnx_MaximumDecreaseInIncomeTaxExpenseDueToReleaseInReserves_5A068487658942E224E1C7A18A2760A3" xlink:type="locator" />
    <definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_MaximumDecreaseInIncomeTaxExpenseDueToReleaseInReserves_5A068487658942E224E1C7A18A2760A3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_425D0A021120A48565DBC7A18A27D490" xlink:type="locator" />
    <definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_425D0A021120A48565DBC7A18A27D490" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_BD948D58A3EC46D69297C7A18A27ED1A" xlink:type="locator" />
    <definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_BD948D58A3EC46D69297C7A18A27ED1A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_FD68DAFB5BB033BCA79DC7A18A273EB2" xlink:type="locator" />
    <definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_FD68DAFB5BB033BCA79DC7A18A273EB2" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_IncomeTaxHolidayTerminationOfApplicableStatute" xlink:label="loc_cgnx_IncomeTaxHolidayTerminationOfApplicableStatute_20B25941DD628A7598E4C7A18A27CC50" xlink:type="locator" />
    <definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_IncomeTaxHolidayTerminationOfApplicableStatute_20B25941DD628A7598E4C7A18A27CC50" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_IncomeTaxesPaidNet" xlink:label="loc_us-gaap_IncomeTaxesPaidNet_4252CFE35D752EFB77B8C7A18A270696" xlink:type="locator" />
    <definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_IncomeTaxesPaidNet_4252CFE35D752EFB77B8C7A18A270696" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_OpenTaxYearStateAuthorities" xlink:label="loc_cgnx_OpenTaxYearStateAuthorities_090A8E2E02AFDE18D72FC7A18A276209" xlink:type="locator" />
    <definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_OpenTaxYearStateAuthorities_090A8E2E02AFDE18D72FC7A18A276209" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_OpentaxyearUnitedStatesInternalRevenueService" xlink:label="loc_cgnx_OpentaxyearUnitedStatesInternalRevenueService_BD12D5BD3EC5CC113DBEC7A18A2708E3" xlink:type="locator" />
    <definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_OpentaxyearUnitedStatesInternalRevenueService_BD12D5BD3EC5CC113DBEC7A18A2708E3" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_Opentaxyearvarioustaxingauthorities" xlink:label="loc_cgnx_Opentaxyearvarioustaxingauthorities_543AB3B9DA1536C7D9C4C7A18A276B6D" xlink:type="locator" />
    <definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_Opentaxyearvarioustaxingauthorities_543AB3B9DA1536C7D9C4C7A18A276B6D" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_TaxYearsCoveredThroughAdvancedPricingAgreement" xlink:label="loc_cgnx_TaxYearsCoveredThroughAdvancedPricingAgreement_CDC3A7DC71E7C875A253C7A18A286C73" xlink:type="locator" />
    <definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_TaxYearsCoveredThroughAdvancedPricingAgreement_CDC3A7DC71E7C875A253C7A18A286C73" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_TaxyearsforAPAagreement" xlink:label="loc_cgnx_TaxyearsforAPAagreement_DE71009DD8156452E4F7C7A18A28EB85" xlink:type="locator" />
    <definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_TaxyearsforAPAagreement_DE71009DD8156452E4F7C7A18A28EB85" xlink:type="arc" />
    <loc xlink:href="cgnx-20151231.xsd#cgnx_Stateresearchandexperimentationtaxcarryforwards" xlink:label="loc_cgnx_Stateresearchandexperimentationtaxcarryforwards_5DA19E4E71BE23B7B905C7A18A285ED3" xlink:type="locator" />
    <definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_cgnx_Stateresearchandexperimentationtaxcarryforwards_5DA19E4E71BE23B7B905C7A18A285ED3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationGainLossFromDisposalOfDiscontinuedOperationBeforeIncomeTax" xlink:label="loc_us-gaap_DiscontinuedOperationGainLossFromDisposalOfDiscontinuedOperationBeforeIncomeTax_913DDC6ACEBB972960BDC7A18A28276B" xlink:type="locator" />
    <definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_DiscontinuedOperationGainLossFromDisposalOfDiscontinuedOperationBeforeIncomeTax_913DDC6ACEBB972960BDC7A18A28276B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation" xlink:label="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_1C6C06733A3EE2BDA6B1C7A18A28EC46" xlink:type="locator" />
    <definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_B721487F56657D626EC4C7A18A2649B1" xlink:to="loc_us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation_1C6C06733A3EE2BDA6B1C7A18A28EC46" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/TaxesChangesInReserveForIncomeTaxesExcludingInterestAndPenaltiesDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/TaxesConstituentsOfDeferredTaxAssetsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_TaxCreditCarryforwardLineItems" xlink:label="loc_us-gaap_TaxCreditCarryforwardLineItems_317C9A4BC1E9F30AE582A84F3548AB6D" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_TaxCreditCarryforwardTable" xlink:label="loc_us-gaap_TaxCreditCarryforwardTable_3B20BDA4B317CAC7D603A84F3548D490" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_317C9A4BC1E9F30AE582A84F3548AB6D" xlink:to="loc_us-gaap_TaxCreditCarryforwardTable_3B20BDA4B317CAC7D603A84F3548D490" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAllowanceByDeferredTaxAssetAxis" xlink:label="loc_us-gaap_ValuationAllowanceByDeferredTaxAssetAxis_EB306714611714AD44B2A84F3548D115" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_3B20BDA4B317CAC7D603A84F3548D490" xlink:to="loc_us-gaap_ValuationAllowanceByDeferredTaxAssetAxis_EB306714611714AD44B2A84F3548D115" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DeferredTaxAssetDomain" xlink:label="loc_us-gaap_DeferredTaxAssetDomain_568EC8508E9D27363FAAA84F354807D6_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationAllowanceByDeferredTaxAssetAxis_EB306714611714AD44B2A84F3548D115" xlink:to="loc_us-gaap_DeferredTaxAssetDomain_568EC8508E9D27363FAAA84F354807D6_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DeferredTaxAssetDomain" xlink:label="loc_us-gaap_DeferredTaxAssetDomain_568EC8508E9D27363FAAA84F354807D6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationAllowanceByDeferredTaxAssetAxis_EB306714611714AD44B2A84F3548D115" xlink:to="loc_us-gaap_DeferredTaxAssetDomain_568EC8508E9D27363FAAA84F354807D6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember" xlink:label="loc_us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember_998B0BA2AF3728F9983FA84F354815D9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetDomain_568EC8508E9D27363FAAA84F354807D6" xlink:to="loc_us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember_998B0BA2AF3728F9983FA84F354815D9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_01B8A5B91673BA5C85FFA84F3548D1B5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_317C9A4BC1E9F30AE582A84F3548AB6D" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_01B8A5B91673BA5C85FFA84F3548D1B5" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/TaxesConstituentsOfProvisionForIncomeTaxesDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/TaxesReconciliationOfUnitedStatesFederalStatutoryCorporateTaxRateToCompanysEffectiveTaxRateOrIncomeTaxProvisionDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/TaxesTables" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/WeightedAverageShares" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/WeightedAverageSharesAdditionalInformationDetail" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_14EAAC8CCEFA46DFA60EC411B5F1D819" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_B2AE14C66076A9A0222DC411B5F117E5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_14EAAC8CCEFA46DFA60EC411B5F1D819" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_B2AE14C66076A9A0222DC411B5F117E5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_204CDDC3225BCF372749C411B5F1E495" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_B2AE14C66076A9A0222DC411B5F117E5" xlink:to="loc_us-gaap_StatementClassOfStockAxis_204CDDC3225BCF372749C411B5F1E495" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_B38C691748CBA199E5EBC411B5F13BB0_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_204CDDC3225BCF372749C411B5F1E495" xlink:to="loc_us-gaap_ClassOfStockDomain_B38C691748CBA199E5EBC411B5F13BB0_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_B38C691748CBA199E5EBC411B5F13BB0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_204CDDC3225BCF372749C411B5F1E495" xlink:to="loc_us-gaap_ClassOfStockDomain_B38C691748CBA199E5EBC411B5F13BB0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2015/elts/us-gaap-2015-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_4A17F85DD464FCF86C16C411B5F13D90" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_B38C691748CBA199E5EBC411B5F13BB0" xlink:to="loc_us-gaap_CommonStockMember_4A17F85DD464FCF86C16C411B5F13D90" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://cognex.com/role/WeightedAverageSharesCalculationOfWeightedAverageSharesDetail" xlink:type="extended" />
  <definitionLink xlink:role="http://cognex.com/role/WeightedAverageSharesTables" xlink:type="extended" />
</linkbase>


