Applies To: |
|
Summary: |
How do I detect which IO server is the Active one for a particular I/O Device (or devices) at runtime. |
Solution: |
Some customers need to
detect the active IO server at runtime to perform some activities
such like data logging. With the introduction of ServerInfoEx () in
6.1, it is not hard to do so:
FUNCTION
active_ioserver_detection_v2() NOTE: THE ARGUMENTS FOR ServerInfoEx ARE CASE SENSITIVE AT THE TIME OF WRITING. Prior V6.1, some hard coding is needed: FUNCTION
active_ioserver_detection() IF(IODeviceInfo("mydev",
17)
=
sLocalServerName) THEN |
Keywords: |
Related Links