"curveHistoryX"
Assigns history X values from a database to a curve.
Synopsis
setValue(string shape, "curveHistoryX", string Name, dyn_string
dps);
shape.curveHistoryX(string Name, dyn_string dps);
Parameters
Parameter | Description |
---|---|
shape | Name of the object |
Name | Name of curve |
dps | Label field of the Dp variables used for the X values of a curve |
Description
This attribute is used to assign history (database) X values and values currently displayed for scrolling back in the trend display. It should be placed before the related dpConnect() in the main() function.
Example
The following example inserts the values of DP "Value_1." as history X values and the values of DP "Value_2." as history Y values into "curve1".
main()
{
shape tr=getShape("trend1");
dyn_string ds, dt;
...
ds=makeDynString("Value_1.:_original.._value");
dt=makeDynString("Value_2.:_original.._value");
tr.curveHistoryX("curve1", ds);
tr.curveHistory("curve1", dt);
...
}
Assignment
Trend