Trend's curve library

<< Click to Display Table of Contents >>

Navigation:  Project > Scripts > ST language > Embedded functions >

Trend's curve library

Previous pageReturn to chapter overviewNext page

addcurve(Input1, Input2, Input3, Input4, Input5, Input6, Input7, Input8) - used to add curve in the trend. Input1 contains name of the trend; Input2 contains name of the curve; Input3 contains name of the tag; Input4 contains line width of the curve; Input5 red part of the curve’s color (0-255); Input6 green part of the curve’s color (0-255); Input7 blue part of the curve’s color (0-255); Input8 contain curve’s type (0-3).

 

Example:

addcurve("Trend", “curve”, “tagname”, 2, 255, 255, 0, 1);

 


removecurve(Input1, Input2) - used to remove curve from the trend. Input1 contains name of the trend; Input2 contains name of the curve;

 

Example:

removecurve("Trend", “curve”);

 


hidecurve(Input1, Input2, Input3) - used to hide or show curve on the trend. Input1 contains name of the trend; Input2 contains name of the curve; Input3 contains information about hide or not the curve in the trend.

 

Example:

hidecurve("Trend", “curve”, true);

 


copyarraytohistorytag(Input1, Input2, Input3, Intput4) - used to copy array to tag's history. Input1 contains name of the array; Input2 contains name of the history tag; Input3 contains time period of the curve's values, Input4 contains the order of recording historical data (true from the beginning).

 

Example:

copyarraytohistorytag(Tags.Array, “History”, 1000, true);