From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-10-2017 08:24 AM
Hi there,
does someone has a good idea to overcome the permanent LabView fault window which comes up, while using a running VI, but with a not connected device?
I would like to get a one time info window like "device not connected".
Does it looks like a loop issue?
Thanks for some good hints.
Ralph
01-10-2017 09:10 AM
You could stop the loop when you get an error.
You could store the error in a shift register and wire that to the VIs that access the device (assuming they do nothing when an input error is present).
You could change to an NI DAQ and use DAQmx where you can have a simulated device.
01-10-2017 10:00 AM
Sounds like the correct way of doing it.
How do I program to stop the loop, once the VI recognises that the device is not connected? Can you give me a code example?
Thanks,
Ralph
01-10-2017 10:27 AM
What you need is a State Machine. You could have Idle, Initialize Hardware, Handle error, etc. states. Search for this term and you will find lots of examples.
01-10-2017 10:28 AM
Use the error wire. Often OR the error wire with your normal stop condition and the output goes to the loop conditional terminal.