The function %HI_AddGraphData adds data into a specific graphic flow.
%HI_SetGraphData( INT in refId, INT in index, in refToCol, INT in step, INT in bStart ) |
%HI_AddGraphData( INT in refId, INT in index, in refToCol[, INT in step := 0] ) |
refId | Reference to graphic object
(reference variable). |
index | Serial number of the graphic flow. |
refToCol | Reference to column of local variable of RECORD type. |
step | Optional parameter. |
bStart | Unused parameter. |
Data fulfilment can be used only for the graphic flows with defined alternate object - "*".
The function %HI_SetGraphData (unlike the %HI_AddGraphData function) deletes all the values of the flow first and then inserts the new ones.
ENTRY sendData_OnClick INT _retCode TIME _BT TIME _ET RECORD (SD.ArchVal) _data _ET := SysTime _BT := %SubTime(_ET, 10*60) GETARCHARR H.Sec, _data^Value, _data^Flags, _BT, _ET, 0, 1000, _retCode %HI_SetGraphData(_graf, 2, _data^Value) %HI_SetGraphInfo(_graf, 2, "Number of values = " + %IToStr(_data\DIM)) END sendData_OnClick |