LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Check host VI is running?

Solved!
Go to solution

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. 

CLAD
Passionate for LabVIEW
0 Kudos
Message 1 of 8
(3,219 Views)

What communications are you using between the RT and Host?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 8
(3,199 Views)

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.

 

 

George Zou
0 Kudos
Message 3 of 8
(3,170 Views)

I use ethernet (shared variable) for communication between RT and HOST. 


@crossrulz wrote:

What communications are you using between the RT and Host?


 

CLAD
Passionate for LabVIEW
0 Kudos
Message 4 of 8
(3,156 Views)

@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 ? 

CLAD
Passionate for LabVIEW
0 Kudos
Message 5 of 8
(3,154 Views)

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

 

 

George Zou
Message 6 of 8
(3,152 Views)
Solution
Accepted by topic author jatinpatel1489@gmail.com

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.

Message 7 of 8
(3,143 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 8
(3,122 Views)