Sign in to follow this  
NHL

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?

 

Thanks

Share this post


Link to post
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

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this