LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean Control locked on Front Pannel - any suggestions

Solved!
Go to solution

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.

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 1 of 6
(3,629 Views)

 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.

Regards
Aks

(Appreciate answers by giving KUDOS)
Hit the stars.............. sky is not the limit.
0 Kudos
Message 2 of 6
(3,622 Views)

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

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 3 of 6
(3,619 Views)
Solution
Accepted by James_W

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.

Regards
Aks

(Appreciate answers by giving KUDOS)
Hit the stars.............. sky is not the limit.
0 Kudos
Message 4 of 6
(3,612 Views)
Found it - being silly and tired. thanks
CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 5 of 6
(3,611 Views)
IMy suggestion is always its better to uncheck that option unless its an timing related event.Like it the event is going to be completed in a certain period of time and after that if it is going to time out. Then checking the option will not create any problem.
Regards
Aks

(Appreciate answers by giving KUDOS)
Hit the stars.............. sky is not the limit.
0 Kudos
Message 6 of 6
(3,608 Views)