Applies To:
  • CitectSCADA 5.xx, 6.xx
  • CitectHMI 5.xx, 6.xx

Summary:
I have used the following cicode to assign trend tags to my trend pens and then display my trend page in runtime

FUNCTION TrendAssign()

TrnSelect(-3, "TrendPage", 30);
TrnSetPen(-2,1,"tt1");
TrnSetPen(-2,2,"tt2");
TrnSetPen(-2,3,"tt3");
TrnSetPen(-2,4,"tt4");
TrnSetPen(-2,5,"tt5");

PageDisplay("TrendPage");

END

This function works as expected when it is first run.

When the trend page is opened, if I call then cicode function TrnSetPen() (say through a keyboard command or the Kernel) and assign a different trend tag to one or more of the above assigned trend pens.

If I then leave this trend page and later call my cicode function TrendAssign() again, when my trend page is opened it does not update to show the assignments in TrendAssign() but instead shows the pen assignments made whilst on page previously.
 

Solution:
By default we do not override the changes made on the trend page. If you want to change these you need to do so on the trend page again.
 

Keywords:
 

Attachments