GetPenValAtX2
- Last UpdatedDec 08, 2015
- 1 minute read
The GetPenValAtX2 method gets the value of the expression associated with the specified pen at the point at which its curve intersects the axis cursor the second time.
Example
double val = Trend2.GetPenValAtX2("MyPen01");
Syntax
[Result=] Trend2.GetPenValAtX2(string PenName);
Parameters
PenName
The pen you want to check the value of.
Return Value
Returns a double if the point is analog or discrete; returns the fixed position of the point if the point is message or other type. If the specified pen is shown in the chart multiple times, then the method uses the first instance that was added.