Adds a pen to the current Temporary Plot definition.
Informal Syntax:
PlotAddPenEx( Source, Label, Color, LineWidth )
Formal Syntax:
PlotAddPenEx( Source:=Expression, Label:=Expression, Color:=Expression, LineWidth:=Expression )
Parameter | Type | Description |
---|---|---|
Source | ANY_STRING |
The data source of the pen.
Use one of the following:
|
Label | ANY_STRING | The label displayed in the trend key. If this parameter is an empty string, the Source parameter is displayed in the trend key. |
Color | ANY_STRING or DWORD |
The color used for the pen. You can use a string value, or a DWORD value, for this parameter:
|
LineWidth | ANY_INT | The width of the pen. The valid range of this parameter is 1 to 5. A value less than 1 is rounded up to 1. A value more than 5 is rounded down to 5. |
None.
Use this function to add a pen to the current Temporary Plot definition.
If the Label parameter is an empty string, the Source parameter is displayed in the trend key.
Plots a limited to 8 pens. If an Operator Action tries to add more than 8 pens to a trend, a runtime error will be reported.
PlotAddPenEx( 'Measurements.Flow Rate', 'Flow Rate', 'Red', 1 );
To learn where you can use this function.
To learn about the different types of expression to use as function parameters.
For the meaning of terms used in Fernhill SCADA.