Embedded Trend Controls can be configured using VBA script to give the operator the ability to add or remove pens at run time. This is done using the AddTags, RemoveAllTags and RefreshChart methods.
Dim sTags as string sTags = "PID_LOOP_1\PID1\OUT.CV, PID_LOOP_2\PID1\OUT.CV" 'Comma separated tags you want to add in the chart’ EmbeddedTrendControl1.AddTags (sTags) 'Adds the tags to the chart EmbeddedTrendControl1.RefreshChart 'Updates chart
EmbeddedTrendControl1.RemoveAllTags 'Removes all tags from the chart EmbeddedTrendControl1.RefreshChart 'Updates chart
For more information on the Embedded Trend Control, refer to The Embedded Trend object. For more information on the methods, see the iFIX Automation Help.