Applies To:
  • CitectSCADA 3.xx, 4.xx, 5.xx

When using the "Copy to File" button on an Event Trend page at runtime, it seems only the field headings are saved to the file. Why is this? 

It is caused by a coding error in the ExportFileButton() cicode function within the include file.  For versions of Citect prior to 5.30, the fix can be made manually by changing the line:

nSamples = _TrendZoomGetSamples(hAn, nEnd, nStart, fPeriod);


nSamples = _TrendZoomGetSamples(hAn, nEnd, nStart, fPeriod, -1, 1);

in the cicode function ExportFileButton() in the file, within the default Citect include project.

CIT has confirmed this to be a problem in Citect for Windows versions 3.xx, 4.xx and 5.xx.  This problem has been fixed in Citect version 5.30.