...
GetPenStatus | Returns the state of the pen. | |
Function | OperationCommand | GetPenStatus("Object Name ", Pen Number) |
Script | n = GetPenStatus("Object Name ", Pen Number) | |
Description | When the specified pen is visible, the function returns 1. If the pen is invisible, the function returns 0. The Pen Number starts from 0. | |
Example | Returns the state of the first pen in ‘YTTrend’ Trend. GetPenStatus(“YTTrend”, 0) = n |
...
GetTrendMode | Returns the current Trend mode. | |
Function | OperationCommand | GetTrendMode("Object Name”) |
Script | n = GetTrendMode("Object Name”) | |
Description | When the specified Trend is in real-time Trend mode, the function returns 0. If the Trend is Historical Trend, the function returns 1. | |
Example | Returns the current mode of the ‘YTTrend’ Trend. GetPenStatus(“YTTrend”) = n |
...
TrendGetPenVal | Returns the pen related data to the Trend. | |
Function | OperationCommand | TrendGetPenVal("Object Name ,Pen Number,Value Type) |
Script | n = TrendGetPenVal("Object Name",Pen Number,Value Type) | |
Description | Returns the pen data according to the Value Type. Pen Number 100 represents the first pen of X-axis in XY Trend. | |
Value Type | Description | |
0 | Name of the pen (String) | |
1 | Comment of the pen (String) | |
2 | Minimum value of the pen | |
3 | Maximum value of the pen | |
4 | Line style of the pen (0: None, 1: Line, 2: Step) | |
5 | Current value of the pen in real-time Trend. | |
6 | Current time value of the pen in real-time Trend. | |
7 | Current value of the pen in Historical Trend. | |
8 | Current rime value of the pen in Historical Trend. | |
9 | Minimum value in the current display of Historical Trend. | |
10 | Time value of the minimum value in the current display of Historical Trend. | |
11 | Maximum value in the current display of Historical Trend. | |
12 | Time value of the maximum value in the current display of Historical Trend. | |
13 | Average value in the current display of Historical Trend. | |
Example | Returns the maximum value of X-axis in ‘XY’ Trend. TrendGetPenVal("XY", 100, 3) = n |
...