05-20-2014 05:10 AM
Hello All,
I came across a situation where I need to check in RT VI that wheather my HOST VI is running or not? I have no Idea how to implement this.
I would appreciate your help for implementing this condition.
Solved! Go to Solution.
05-20-2014 07:18 AM
What communications are you using between the RT and Host?
05-20-2014 04:23 PM
Let the host VI send timestamp to RT every second - heart beat.
If not receiveing heart beatfrom host, then it's down.
In addtion, RT can sync to the timestamp at the begining.
05-20-2014 10:08 PM
I use ethernet (shared variable) for communication between RT and HOST.
@crossrulz wrote:
What communications are you using between the RT and Host?
05-20-2014 10:10 PM
@zou wrote:
Let the host VI send timestamp to RT every second - heart beat.
If not receiveing heart beatfrom host, then it's down.
In addtion, RT can sync to the timestamp at the begining.
So do I need to compare time stamp sent from host with time stamp of RT? Or there is something direct indication I would get ?
05-20-2014 10:24 PM
> So do I need to compare time stamp sent from host with time stamp of RT? Or there is something direct indication I would get ?
That's optional. If the host is down, you won't get anything.
05-20-2014 10:51 PM
No, you'd compare the timestamp you got from the last timestamp before that. They should be different. If they are the same, then it didn't update it.
05-21-2014 06:54 AM
I agree with the others that a simple timestamp shared variable would be the easiest. Just create a loop that iterates about once a second and see if the value changed. If it does, then your host is active.