DAQ Connect Status Monitoring


Recommended Posts

Hi Is their a way to monitor the connection status without viewing the workspace to see the icon? we've got a system sat on a VPN so when the connection is dropped all values pause until re-connected, it would be good to have a popup to indicate a loss of connection to the main DAQ server?



Link to comment
Share on other sites

Not directly.  But you can write a script that looks to see if the data is updating.  Just don't compare the data's time stamp with your system time as the clocks may drift.  The data will have the time of the remote.  Instead you need to write something to see if the time stamp has changed over some period of time.  Something like:

private lastTime = 0
   if (getTime(remote.mydata[0]) == lastTime)
      connectionFail = 1
      connectionFail = 0
      lastTime = getTime(remote.myData[0])


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.