08-19-2015 05:11 PM
I'm running Labview 15 and am attempting a very basic VI to impliment into my full program. I will basically have four stations running data acquisition and don't want the program to close if one of them is running. So I have 4 booleans wired to OR terminals so they should set discard to true if one of them is on, or false if they are all off. The problem is when I have one or more on and attempt to close the VI it doesn't close (hooray! that part works) but when I want to continue testing and turning them all back off again to see if I am allowed to close if they are not "running" I cannot switch anything and my VI is frozen until I stop it.
I am just learning this program so bare with me if the solution is very simple.
Thanks
Solved! Go to Solution.
08-19-2015 05:58 PM
Yes.... The solution is very simple....
The problem is dataflow.
The panel close event registers as soon as the VI starts running. Unfortunately the event structure is outside the loop so it is never checked. Consiquently, when the event does occur LabVIEW locks the user interface until it can be serviced. However, it can't service it because the event structure can't run until the loop stops and you can't stop the loop because LabVIEW is waiting for the event to be serviced...
To fix this particular problem, move the buttons inside the event structure and put the event structure inside the loop.
Mike...
PS: You should really check out the online tutorials. They will help a lot.
08-20-2015 11:52 AM
Obligitory free training links (at the bottom)
https://decibel.ni.com/content/docs/DOC-40451
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-20-2015 02:39 PM
Thank you both for speedy replies. I am currently running through the turoials, but also working on the vital support updates for our product simultaneously and thoguht this would be a simple one to complete before finishing training.
I will finish the training and implement the fix! Thanks!