LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you create a user event checkbox

Hello All,

I'm very new to Labview.  I'm trying to figure out how to create a user event checkbox.  What I want is something that checks which boxes have been marked off and then procedes with a function/loop according to the corresponding checked box or boxes.  Any help on this would be much appreciated.

Thanks!
0 Kudos
Message 1 of 3
(3,938 Views)
I'm not completely sure of what you are trying to do.  I'm thinking you have a series of checkboxes, and depending on what combination are checked/unchecked, you want it to run some unique case of a case structure.  I would recommend putting the check boxes into a possibly a cluster you convert to an array.  Set the checkboxes so they can only be true or false and not mixed.  Due a != 0 on the array to convert the values to a boolean array number (boolean array to number won't work directly becuase of the potential for a 2 for a mixed checkbox.)  So if boxes 0, 1, and 3 are checked, you come up with value of 11.  Then the case structure has an event 11 that does whatever you want for those 3 checkboxes being checked to mean.  See attached.

The trickiest part of all this would be determining what is the significance of all the possible combinations of checkboxes and what you want them to do as they will grow with the 2^N.

Message Edited by Ravens Fan on 11-26-2007 09:05 PM
0 Kudos
Message 2 of 3
(3,904 Views)

kima111,

It sounds like you should look at the event structure.  The event struction can be used to handle events for the front panel and controls.  I attached an example that watches for change events on checkboxes (8.2.1).

-cb

Download All
0 Kudos
Message 3 of 3
(3,889 Views)