../pvss.htm menu.gif basics.gif

"data" - Curve

Data for the bar trend in the curve display mode.

Synopsis

setValue (string shape, "data", dyn_float DataX, dyn_float DataY);

getValue (string shape, "data", dyn_float &DataX, dyn_float &DataY);

shape.data (dyn_float DataX, dyn_float DataY);

Parameters

Description

This attribute specifies the data for the curve whereby the coordinates of the individual points are specified in the dyn_float arrays DataX (x-coordinates) and DataY (y-coordinates).

IconExample

main()

{

shape bt=getShape("BarTrend1");

dyn_float dx, dy;

...

// Points on the curve

dx=makeDynFloat(10, 20, 30, 40, 50);

dy=makeDynFloat(40, 70, 50, 10, 30);

// Setting the values

setValue(bt, "data", dx, dy);

// Linear curve

bt.connection=BAR_LINEAR;

// Fill the area

bt.fill=TRUE;

// Update bar trend

bt.flush();

...

}

Relates to

Bar trend

See also

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved