The following DAQtags allow users to change the run-time Real Time Trend definition in View/ViewDAQ using Keymacros and scripts. Please use SETVAL to the following DaqTags to make changes to Real Time Trend Displays.
%TRTRDCGN: Realtime Trend Group Number.
%TRTRDCGD was added to allow users to change the description of a Realtime Trend Group which is defined by %TRTRDCGN. Please note that the change is local to ViewDAQ/View client and will not be written back to Database.
%ARTRDH: Realtime Trend Tag Highlighted, range is 0 to 11
%ARTRDXP: Realtime Trend X Tag Pos for XYPLOT, range is 0 to 11
%DRTRDON(: Realtime Trend Group Tag On/Off, 1 is on and 0 is off
%TRTRD1(: Realtime Trend Tagname
%TRTRD4(: Realtime Trend Display Low
%TRTRD5(: Realtime Trend Display High
For example:
To change the run-time definition of trend group 111,
<SETVAL>%TRTRDCGN=111
To set the initial highlighted position to the 2nd tag for trend group 111,
<SETVAL>%ARTRDH=1
To set the X tag position of XYPLOT to the 6th tag for trend group 111,
<SETVAL>%ARTRDXP=5
To turn off trend display for the 1st tag for trend group 111,
<SETVAL>%DRTRDON(0)=0
To add/replace tag name as abc for the 3rd tag for trend group 111,
<SETVAL>%TRTRD1(2)=abc
To set display low to -1000.0 for the 12th tag for trend group 111,
<SETVAL>%TRTRD4(11)=-1000.0
To set display high to 1000.0 for the 9th tag for trend group 111,
<SETVAL>%TRTRD5(8)=1000.0
The following examples illustrate the syntax used in scripts.
To change the run-time definition of trend group 234,
TCL Script:
SETVAL %TRTRDCGN=234
VB Script:
SETVAL “%TRTRDCGN=234”
JAVA Script:
SETVAL(“%TRTRDCGN=234”);
Please note that the value of %TRTRDCGN is always set to the current trend group number when Realtime TREND/XYPLOT is displayed. Any SETVAL to %TRTRDCGN will be ignored. That means the change of the run-time definition can only be made to current trend group if it is performed inside Realtime TREND/XYPLOT display.