Exporting a Data File or Appending a Data String to a File via FTP

You can configure your In-Sight vision system to export a data file or append a data string to a file on an FTP server on the network. Use this feature to log data results that you view in a file.

To configure an FTP connection:

  1. From the Communications group box, select FTP.
  2. Select the File tab.
  3. Press the Add button to add an entry and configure the export parameters.

    Note: You can add more than one file export operation to a job.
  4. Select the Settings tab and configure the FTP server settings.
  5. Place the In-Sight vision system Online. The vision system must be Online to execute; otherwise, no data will be exported.
  6. Trigger the vision system. For each trigger, a data file is exported or a data string is appended to a file, and stored on the FTP server specified in the Settings tab.
Note:
  • When Transfer Condition is set to None (default), a data file is exported or a data string is appended to a file every time a new image is acquired. When Transfer Condition is set to other than None, a data file is exported or a data string is appended to a file every time the specified event occurs. For example, when Transfer Condition is set to Job.Fail, a data file is exported or a data string is appended to a file, and stored on the FTP server every time the job fails.
  •  When using the In-Sight emulator as an FTP server, by default, files are written to the Emulator folder ([ProgramData]\Cognex\In-Sight\Emulators\x.x.x). In addition to this directory, files can be written to a user-defined location (Authorized FTP directory). For more information on the Authorized FTP directory, see Emulation Panel.

File Tab

Provides parameters for defining the exported data, its format, when the data is exported and where the data is exported.

Settings Tab

The Settings Tab provides parameters for defining two target devices. The target device can be an In-Sight emulator, or any other host acting as an FTP server on the network.