Applies To:
  • CitectSCADA v7

Summary:
I am using IODeviceStats() in a multiprocess environment and the function does not work properly. Some parameters are not display properly on the form (Always show '0'). See screen shot below:

]

 

Solution:
This function can only be called from the IOServer process. When calling this function from a graphic element (for example a button) the calling process will be the Client.

In order to use this function from a graphic object, the Client process can call the function IODeviceStats() remotely by using the MsgRPC() function. See example below:

FUNCTION IOTEST(STRING sIOServer, STRING sCluster = "")

INT hMsgIO;

     hMsgIO = MsgOpen(sIOServer,0,0,sCluster)

     IF hMsgIO <> -1 THEN

          MsgRPC(hMsgIO,"IODeviceStats","",0)

     END

END


Keywords:
 

Attachments