10-23-2008 06:27 AM
I have an Event Structure inside a While loop. Inside one of the Event Cases I have a SubVI that acquires data from a DAQ card and displays it on a graph on the front panel (update by reference). I want to give the user the option of stopping the acquisition when it is running, but my attempts are not working 100% of the time.
I have a dedicated Boolean (Switch when pressed) with a reference wired into the subVI.
Before the SubVI runs, the boolean is set to Value = False, Disabled = 0.
After the SubVI has run, the boolean is set to Value = False, Disabled = 2.
in all other cases and on program initialisation the sewttings are:
Value = False, Disabled = 2.
When the SubVI is running, the Button is enabled, (it is the only one which is enabled), but I can't press it. The code is too big to attach.
Any ideas please, currently thr program is only stopping after acquiring for a certain durartion.
Solved! Go to Solution.
10-23-2008 06:48 AM
HI,
You just have to disable the "Lock front panel untill the event case for this event completes" for the event where the boolean is there.
This should slove your confusion. Let me know if not sloved.
10-23-2008 06:52 AM
From reading other posts I suspected that this might be the case. Unfortunately, there's no help in knowing what you have described until you know how to solve the problem.
Cheers
10-23-2008 06:57 AM
Hi,
Right Click on the Boolean event and select Edit Events Handled by this case then at the bottom of this window there is an option for this. So you can uncheck and it should work fine.
10-23-2008 06:58 AM
10-23-2008 07:02 AM