Save Images to an FTP Server Using WriteImageFTP

What is Needed?

An FTP server that is accessible from the In-Sight vision system through the network.

How are the Images Saved?

  • Writes an image to an FTP server when an event is triggered.
  • Additionally, SVG files containing graphic overlay data can be saved in to the same directory for the images.

Where are the Images Saved?

An FTP server specified in the WriteImageFTP function's Host Name parameter. For more information, see WriteImageFTP.

How to Set Up

  1. Configure your FTP server so that it can be accessed from the vision system.
  2. Follow the steps described in the Configure the Write ImageFTP Function.

    Note:
    • The In-Sight Explorer FTP server cannot create directories. The existing directory must be specified in the File Name parameter.
    • When using the In-Sight emulator as an FTP Server, by default, files are written to the Emulator folder (C:\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 Emulator directory and the Authorized FTP directory, see Emulation Panel.
    • When writing files to the Authorized FTP Directory, the File Name path must precisely match the specified Authorized FTP Directory path in the Options dialog. Images can also be written to any sub-directories within the Authorized FTP Directory (the sub-directory must exist). For example, if the Authorized FTP Directory is C:\temp and the name of the file is "Failed", the File Name must be specified as "c:\temp\Failed". If writing to a sub-directory "Images", the File Name will be "C:\temp\Images\Failed". If only specified as "Failed", the file will be written to the default Emulator directory.
    • In general, it is faster to save images in the bitmap format (BMP). Although the bitmap format images are larger, they do not take time to compress.
    • EasyBuilder can also write images to an FTP server. For more information, refer to the Exporting Data and Images via FTP topic in the EasyBuilder Help (Communication > Exporting Images via FTP).