Using the CSV_Include Project > CSV_Include Reference > CSV_Include Functions > CSV_Trend_GetCursorValueStr

CSV_Trend_GetCursorValueStr

Gets the value of a trend pen at the cursor position, or the current value of the trend pen if the cursor is disabled. The value is returned as a string, optionally followed by the engineering units of the tag.

Syntax

CSV_Trend_GetCursorValueStr(hTrendAN, iPen, iEngUnits)

#hTrendAN:

Animation point number of the trend.

#iPen:

Number of the trend pen.

#iEngUnits:

Append the engineering units to the cursor value returned.

Return Value

Value of the trend pen at the cursor position, or its current value if the cursor is not displayed.