LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

About Event Handling

Hii

 

  I am having around 40 Controls with same data type (Boolean). I have created the same event operation for all in a single event case, like value change.Now in event structure, how do i know the control  which generates the event..plz post your ideas....

 

Thanks in advance..

0 Kudos
Message 1 of 4
(2,655 Views)

It is not such a good idea to have 40 individual buttons. It would be much easier to e.g. have a single array of 40 booleans, for example.

 

Still, if you want ot have 40 booleans, you could do one of the following:

 

  • Sometimes you don't even need to know, for example if the case simply needs be recalculated based on all the booleans, and all the boolean inputs are wired inside the case.
  • Yoo could create a sorted array of references of all the controls, then search the array for the match (see image) via the event terminal.
  • ...

 

Message Edited by altenbach on 02-16-2009 11:32 PM
0 Kudos
Message 2 of 4
(2,652 Views)
Thx i have implemented ur Idea............
0 Kudos
Message 3 of 4
(2,649 Views)

You can also use the control reference with a property node and get e.g. the label or any other interesting property.

 

Message Edited by altenbach on 02-16-2009 11:39 PM
0 Kudos
Message 4 of 4
(2,647 Views)