Applies To:
  • CitectSCADA 5.50 Service Pack B, 5.50 Service Pack C, 6.XX
  • CitectHMI 5.50 Service Pack B, 5.50 Service Pack C, 6.XX

I have a project based on CSV_Include. When I build trend groups during run time an entry is made to the trendgrp.dbf file. Inspecting this file there is a Name field that is filled with a system generated value. I don't yet see a pattern to the value in this Name field.

Can I make entries to this dbf file using the save_dbf.xls macro or can I only add groups through the graphic user interface in runtime?

The Name field in trendgrp.dbf is actually generated by the following cicode function:

sName = "T" + IntToStr(SysTime()) + "~"; ! create unique name

This is done so that a unique key is used as there could be multiple instances of the same group description.

To see this you can have a look at the CSV_Trend_GroupConfig() function within the in the CSV_Include project. You do not need to follow this format, i.e. T<time>~, when manually adding in your own values just make sure each row has a unique value.