LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controls[]

I am simply trying to use the main menu vi  front panel controls property as a reference to pass to a subVI which shal execute a motion control move using an event structure.  When in the subVI, I want to determine which control has changed on the main menu front panel so that I can code it in the event structure. 
 
I know the front panel controls array is in the tab order on the main menu but how do I extract which button has been pushed so that I can do a changevalue event registration on the control?  It appears that I have to register each of these buttons as individual events rather than the entire menu cluster with post processing in the event structure case.  What am I doing wrong?
0 Kudos
Message 1 of 2
(2,450 Views)

Why don't you pass references to just those controls that you are interested in? Alternately, you could put all the controls into a single cluster and pass a reference to that cluster to the subvi. You would then create a value change event on the cluster and compare the NewVal and OldVal event data to determine which control in the cluster changed.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 2
(2,433 Views)