LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update Main.vi Frontpanel from NESTED subvi

Hi guys ,

 

The nested SubVI  is 4-5 VIs  deep

 

Main.vi >a>b>c>d>e.vi

 

I have to send some info from e.vi to Main.vi 

 

1.  without   normal referencing method i.e.  send reference for the controls down the order

 

2.  I dont want to make any call (aschyncronous ) etc from my sub vi "e.vi "  just passively update  the controls on the main.vi

 

regards

akshay

0 Kudos
Message 1 of 5
(3,205 Views)

You can hold the Control reference in a global variable or LV2G and you can update the controls from anywhere. If you are updating the value of a control check this thread.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 5
(3,198 Views)

thanks,

 

but I dont want to use global variables

 

prefer references

0 Kudos
Message 3 of 5
(3,190 Views)

Do you have any other VIs communicating with each other? I usually use something like User Events to update a User Interface from within SubVIs...my SubVIs are passed the User Event reference and then I have an event structure on the User Interface that receives the events and updates the front panel.

 

The data type of your user event could be something flexible like string/variant for command/data where command is the name of the control to update and data is the value to update it to (and use variant to data to convert back to the type for the control/indicator).

 

Like others have said, you can also store the references to the controls in a Functional Global/Action Engine (a SubVI that contains an uninitialised shift register) so that you can access them from anywhere in your application.

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 5
(3,181 Views)

I am trying to do it  for the Teststand User iNTERFACE

 

I read the  UI Message in the callback event & want to display it on the  Operator Interfac front panel

 

may be I try the event structure in it

 

0 Kudos
Message 5 of 5
(3,172 Views)