EndOfTransfer - method of the PmaData object
After calling the method, the onEndOfTransfer
event is triggered with parameters: pEvent.Source
= 0 (i.e. local source) pEvent.Error
= 0 (i.e. without error).
Calling this method is suitable, for example, if you want to process the data of the object on one place. If the data are received from the communication or if the data are set locally and then the EndOfTransfer
method is called, then the data can be processed in the onEndOfTransfer
Calling this method is synchronous
, it means that the algorithm in the onEndOfTransfer
event it performed first and then the statements after calling the method, are performed.
At first the data of the object are set first, and then the EndOfTransfer
method is called as a flag that everything is ready and the data can be processed in the onEndOfTransfer
var oData = pMe.Pm("/Data");
oData.Item("d1").Value = 3.14;
oData.Item("d2").Value = 56;
oData.Item("d33").Value = 34.2;