LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Boolean controls trigger the same event

I have a problem that there are multiple Boolean controls that trigger the same event, but it would be very troublesome to handle them one by one through event branches. Is there a good way?Thanks.

0 Kudos
Message 1 of 3
(1,915 Views)

Assuming you mean you're using an Event Structure, you can have one case handle multiple events.  After placing the structure on the block diagram, right-click on the frame and select "Edit Events Handled By This Case...".  The Event Specifiers are shown in the list on the left side of the window.

 

If you have multiple Boolean controls handled by the same case, you can identify which was clicked by comparing the CtlRef event data node to the references of the controls.

 

PsyenceFact

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

@bhyy wrote:

I have a problem that there are multiple Boolean controls that trigger the same event, but it would be very troublesome to handle them one by one through event branches. Is there a good way?Thanks.


Your question makes no sense. In what way is it troublesome? What are "event branches"? (This is not a well-known term in LabVIEW programming)

 

Please show us a simplified version of your code to illustrate what you are trying to do. Of course a single event can handle an unlimited amount of controls (within reason)l in any mix of types.

0 Kudos
Message 3 of 3
(1,874 Views)