Porovnávané verzie
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
SETDT_LINEOBJ action
Blok kódu | ||||
---|---|---|---|---|
| ||||
], [axisNr], |
Blok kódu | ||||
---|---|---|---|---|
| ||||
bSilent |
Blok kódu | ||||
---|---|---|---|---|
| ||||
HI_SETDT_LINEOBJ graph_RefId, lineNr, newObj, [axisNr], [bSilent] |
graph | in | Reference to object of the Graphtype. |
graph_RefId | in | Value of a reference variable associated to graphic object of |
the Graph type. | ||
lineNr | in | Identifier of the Int type. |
newObj | in | Reference to an object or reference to one value of a historical value. |
axisNr | in | Int type - number of axis associated to a given process. If number is not specified (or its value is -1), number of axis will not be changed in graph configuration. |
retCode | out | Optional identifier of the Int type - return code. |
bSilent | in | Optional identifier of the Bool type. SETDT_LINEOBJ action: HI_SETDT_LINEOBJ: |
If the parameter retCode is not used, the action generates only the request for a change and does not wait for its real execution. If it is used, it is possible to test the action success (_ERR_NO_ERROR).
The action can be of two versions:
- SETDT_LINEOBJ - the graph change in configuration of application. The changes are saved into the configuration database and they are lasting. The action can be used in object of the Event type and in script of picture.
- HI_SETDT_LINEOBJ - the change of opened graph which is displayed in displayer of the Graph type in picture. In this case, it is determined by the value of the first parameter. The changes are temporary and they will be taken off when the graph (picture) is closed.
Warning:
The configuration change by SETDT_LINEOBJ without waiting on result of the operation can collide with following script commands for graph.
For example:
|
can caused that time is set before coming the configuration change which sets time according to graph definition.
Blok kódu | ||||
---|---|---|---|---|
| ||||
INT _retCode |
Blok kódu | ||||
---|---|---|---|---|
| ||||
SETDT_LINEOBJ D.Graph, 2, Sec, _retCode ; Action success test IF _retCode = _ERR_NO_ERROR THEN ; Change executed ELSE ; Error ENDIF |
Blok kódu | ||||
---|---|---|---|---|
| ||||
Blok kódu | ||||
---|---|---|---|---|
| ||||
; Disconnecting the object ALIAS _empty SETDT_LINEOBJ D.Graph, 2, _empty |
Blok kódu | ||||
---|---|---|---|---|
| ||||
Blok kódu | ||||
---|---|---|---|---|
| ||||
; Connecting of object Sec on the third process in graph T.Graf, where the number of axis is 5 ; The action do not wait on its real executing SETDT_LINEOBJ T.Graf, 3, Sec,, 5 ; The action waits on its real executing, configuration change is made inconspicuously SETDT_LINEOBJ T.Graf, 3, Sec, _retCode, 5, @TRUE |