DAQ Connect Status Monitoring


NHL

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?

 

Thanks

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
while(1)
   if (getTime(remote.mydata[0]) == lastTime)
      connectionFail = 1
   else
      connectionFail = 0
      lastTime = getTime(remote.myData[0])
   endif
   delay(15)
endwhile

 

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.

Guest
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.