ExportData

ExportData automatically exports data in a spreadsheet cell to a Cell Data (.cxd) file according to a predetermined event in the spreadsheet. It allows you to export the data within a single cell on a vision system to one of the following locations:

  • Flash memory of a local device
  • FTP server
  • SFTP server

When you export a .cxd file using the ExportData function, the data becomes a part of the ExportData function and cannot be edited. When you click on an exported .cxd file, the ExportData property sheet opens up, not the property sheet for the type of data that was exported. You can export the following data types:

CAUTION:  
  • Writing data from the ExportData function is a potential job blocking function. Jobs can be slowed down and a vision system can queue or miss a trigger if the job takes longer to process than the trigger period.

ExportData exports the .cxd file when one of the following occurs:

  • You press the OK button on the ExportData property sheet.

  • The tool receives an Event.

  • The Event parameter is ON (or points to a non-zero numeric value), and one of the ExportData input parameters is updated.

    Note: ExportData works in Offline mode as well.

ExportData Example

ExportData(A8,"FTPServer1","operator1","","PartXPattern",H7)

Whenever the spreadsheet updates after an event is triggered in cell A8, the function writes the data in cell H7, as a file named PartXPattern.cxd, to the server named FTPServer1. The user name is specified as operator1, and the password is left blank.