ptGetTrendType() function
- Last UpdatedJun 17, 2024
- 1 minute read
The ptGetTrendType() function can be used in a script to return a value that indicates whether the current mode of a 16-Pen Trend shows historical or real-time data.
Category
Pen trend
Syntax
ptGetTrendType(TrendName);
Argument
TrendName
Name of the trend. TrendName must be either a string constant or message tag.
Return Value
Returns the trend type:
0 = Historical trend
1 = Real-time noscroll
2 = Real-time trend
Example
The following example returns a value that indicates whether the PumpPress trend shows historical or real-time data.
ptGetTrendType("PumpPress");