02-14-2013 10:45 AM
I have a vi with five unconnected while loops. On front panel I have five control buttons to run these while loops. All these loops control single instrument, therefore as a safety feature I want to keep other four while loops inactive when one of them is running. They should become enabled once the running while loop gets over. I am sure there should be a way to do this. Thank you in advance.
02-14-2013 11:40 AM
So only 1 loop should be running at a time? I think it would easier to have 1 loop and use a case structure to control which set of code to run.
02-14-2013 02:52 PM
Thanks for the reply.
Do you mean that I should use one while loop and inside all the five sets of code kept in individual case structure? I have tried that but the problem is if me or someone accidently click another command the set of code starts running above the one which was running. This is because everything in one while loop is potentially ready to run on click.
however, even if i put each set separately in a while loop, still two sets can run together on accidental click!
02-14-2013 03:25 PM
Lock the front panel when you start one. Unlock it when you're done.