LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use Booleans as Top-Down controls inside event cases

I'm currently writing a program that is using a tree control to launch an event(double-click method), which executes a lower level monitoring utility. Here is the snipit of the block diagram. The two waveform references are working perfectly, and I would like to add a boolean, but have been unable to implement because I don't seem to retain user interface control of the boolean with an event case. Does anyone know if this is possible to do?

 

LabVIEW 2012 DS2 is my development system.

 

 

0 Kudos
Message 1 of 8
(2,892 Views)

Boolean control or boolean indicator?  I'm not exactly sure what you're doing, but if you want to have a boolean control, then you may have to handle the value change event to get the correct funtionality.

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 8
(2,874 Views)

Boolean control.

 

I tried adding that boolean value change event to the same event case, still no control. I think it's because LabVIEW can't do simultaneous event executions, which makes sense to me, but I was hoping maybe since the waveform references are displaying correctly, that maybe a a boolean control reference would as work as well, but it appears as if the control transfers down to the lower level vi because it is being executed as an event.

 

 

0 Kudos
Message 3 of 8
(2,867 Views)

Show us your code with the boolean.

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 4 of 8
(2,824 Views)

Look at the PNG I posted earlier in this post, I've since re-written my program, but the original problem had to do with the event case that is shown. I originally had a boolean control on my FP, that I wanted to use to stop execution of the sub vi shown in the pic, but I could not get the reference to work while this sub vi was being executed in the event case.

 

My solution was to move this sub vi out into its own while loop, and used a case structure control by a seperate event to start/stop its execution, and the boolean control worked just fine.

0 Kudos
Message 5 of 8
(2,815 Views)

@ATE_Dude_22 wrote:

Look at the PNG I posted earlier in this post, I've since re-written my program, but the original problem had to do with the event case that is shown. I originally had a boolean control on my FP, that I wanted to use to stop execution of the sub vi shown in the pic, but I could not get the reference to work while this sub vi was being executed in the event case.

 

My solution was to move this sub vi out into its own while loop, and used a case structure control by a seperate event to start/stop its execution, and the boolean control worked just fine.


Simple screen shots rarely provide enough detail for us to give good advice.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 8
(2,808 Views)

Understand

0 Kudos
Message 7 of 8
(2,792 Views)

You're stuck in that event case until it's finished. If you want a boolean control to stop the sub-vi, you can use the reference inside the sub-vi, among other solutions.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 8
(2,783 Views)