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

"data" - Element array

Specifies the data for the bar trend in the element array display mode.

Synopsis

setValue (string shape, "data", dyn_float avg, dyn_float max, dyn_float min, dyn_float s);

getValue (string shape, "data", dyn_float &avg, dyn_float &max, dyn_float &min, dyn_float &s);

shape.data (dyn_float avg, dyn_float max, dyn_float min, dyn_float s);

Parameters

Description

This attribute is used to define the values for the element array, with four arrays being passed.

IconExample

In this example, in addition to the data, all relevant attributes for a user-defined output are also aplied here. For detailed descriptions of the different attributes, refer to the relevant sections .

main()

{

shape bt=getShape("BarTrend1");

dyn_float davg, dmax, dmin, ds;

...

// Values

davg=makeDynFloat(20, 30);

dmax=makeDynFloat(50, 80);

dmin=makeDynFloat(10, 20);

ds=makeDynFloat(30, 90);

// Setting the values

setValue(bt, "data", davg, dmax, dmin, ds);

// Start point for the bars on the X-axis

bt.xStart=10;

// Width of the bars

bt.xWidth=20;

// Displays all values

bt.showRange=BAR_MINMAX;

// Height of the average value bar

bt.heightCenter=5;

// Width of the ranges

bt.widthCenter=5;

bt.widthTop=15;

bt.widthBottom=8;

// Colors of the ranges

bt.colorTop="Yellow";

bt.colorBottom="Yellow";

bt.colorCenter="Blue";

// 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