LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making Boolean Selections

I have a program where the operator currently has to select which, if any, of 9 items to do further analysis.  I'm using the System Checkbox next to each item.  What I would like to do is add an "All System Checkbox" so if the user decides to work on all 9 items they will all be checkmarked and processed by selecting that one box.  Any suggestions on how to achieve this?
 
Thanks in advance.
 
Bobby
LabVIEW 2016 - Windows 7

CLAD
0 Kudos
Message 1 of 4
(2,942 Views)

1. add an all checkbox and on value change event you can write true to all checkboxes.

2.  When deciding to do items or the logic with the all checkbox.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 4
(2,934 Views)
Are you using event structures?  Doing so will probably help give you cleaner code.  You can have an event run on value change for a boolean button.  Or on a value change for the "The all system checkbox".
 
However, you want to code it, you basically just need to have a structure that when this event occurs, it writes a true value to the local variable for value property node for all of the other check boxes.  Try something like this  (LV 8.2)
Message 3 of 4
(2,931 Views)
Sweet!!!....That's exactly what I was looking for.  Something new to study!  Thanks.
LabVIEW 2016 - Windows 7

CLAD
0 Kudos
Message 4 of 4
(2,928 Views)