<ARTICLE> 5 <LEGEND> THIS SCHEDULE CONTAINS SUMMARY FINANCIAL INFORMATION EXTRACTED FROM THE CONSOLIDATED FINANCIAL STATEMENTS OF COGNEX CORPORATION FOR THE QUARTER ENDED APRIL 5, 1998 AND IS QUALIFIED IN ITS ENTIRETY BY REFERENCE TO SUCH CONSOLIDATED FINANCIAL STATEMENTS. </LEGEND> <CURRENCY> US DOLLARS <PERIOD-TYPE> 3-MOS <FISCAL-YEAR-END> DEC-31-1998 <PERIOD-START> JAN-01-1998 <PERIOD-END> APR-05-1998 <EXCHANGE-RATE> 1 <CASH> 36,750,000 <SECURITIES> 144,464,000 <RECEIVABLES> 35,425,000 <ALLOWANCES> 2,031,000 <INVENTORY> 9,129,000 <CURRENT-ASSETS> 237,503,000 <PP&E> 47,740,000 <DEPRECIATION> 14,495,000 <TOTAL-ASSETS> 276,269,000 <CURRENT-LIABILITIES> 27,523,000 <BONDS> 0 <PREFERRED-MANDATORY> 0 <PREFERRED> 0 <COMMON> 84,000 <OTHER-SE> 247,401,000 <TOTAL-LIABILITY-AND-EQUITY> 276,269,000 <SALES> 40,056,000 <TOTAL-REVENUES> 40,056,000 <CGS> 10,927,000 <TOTAL-COSTS> 10,927,000 <OTHER-EXPENSES> 0 <LOSS-PROVISION> 0 <INTEREST-EXPENSE> 0 <INCOME-PRETAX> 14,848,000 <INCOME-TAX> 4,306,000 <INCOME-CONTINUING> 10,542,000 <DISCONTINUED> 0 <EXTRAORDINARY> 0 <CHANGES> 0 <NET-INCOME> 10,542,000 <EPS-PRIMARY> .25 <EPS-DILUTED> .24