TrnExportCSVMulti Cicode Function

Exports data from Citect trends to CSV files

Version
1.24

Requirements
CitectSCADA/PlantSCADA v5.31 and above, v6.xx, v7.xx, v8.xx

Description

This Cicode file includes the TrnExportCSVMulti() function for exporting data from Citect trends to CSV files. The PaTrnExportCSV() function exports the set of pens and time period that is currently displayed in Process Analyst, to make exporting simpler.

TrnExportCSVMulti() is similar to the built-in TrnExportCSV() function, but the number of trends has been increased from 8 to 32. It also adds an optional status form, can skip NA or Gated samples, and exports faster because it doesn't add spaces to align the columns in the CSV file, and buffers file writes.

 

Updates

1.24

Fixed error exporting with non-trend pens in PA. They are now skipped. 
PaTrnExportCSV() now uses pen names (from the Object View) in the export file header.
PaTrnExportCSV() now ignores unchecked (hidden) pens.

1.23

Added missing pen names in PaTrnExportCSV()

1.22

Fixed garbled output on 7.40 because of increased string length.

Author
Eric Black

Submitter
Eric Black

Download the latest version for Citect v7.20 and above, or v1.10 for Citect v5.31 to v6.xx.