From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to know vi stuck with controlling HW?

Solved!
Go to solution

I have a VI which controls a few HW by calling their own SW to do measurement every hour all the time. SW (from the HW) sometimes freeze and doesn't give error message. Then the vi freezes there. How to make setting in vi to detect the freeze? I am thinking to add a timer, if time exceed a given limit, it could know vi stuck. But problem is: when vi stuck with the HW, it couldn't run to the timer part.

I am new to Labview. Thanks a lot in advance!

0 Kudos
Message 1 of 4
(2,111 Views)

How exactly are you calling their software?  Is it a DLL call?  An ActiveX call?  Something else?

 

Can you tell us the name of the software and maybe link to any public documents explaining how you control it using LabVIEW?

 

Even better would be if you could post the code with the problem...

0 Kudos
Message 2 of 4
(2,106 Views)
Solution
Accepted by topic author wglamanda

You could easily do this with a second parallel loop that "monitors" the hardware loop.  Then use occurrences, queues, or notifiers to monitor.

 

hw heartbeat monitor.png

 

Message 3 of 4
(2,104 Views)

Great! Thank you so much! 🙂

0 Kudos
Message 4 of 4
(2,096 Views)