LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update a front panel indicator from a loop inside a called vi. Without exiting

I am looking for the best way to update some indicators from within loop within a called .vi.

I need to update the front panle without exiting the loop.

 

I am able to use functional global vi to update the values of front panel indicators from within my nested loops, but I am looking for the best way that these values can be read to update my indicators.

 

Thanks

 

0 Kudos
Message 1 of 4
(3,558 Views)

I think this LabVIEW wiki might be helpful.

http://labviewwiki.org/Control_References

0 Kudos
Message 2 of 4
(3,543 Views)

 

 

This is what I am doing now but I was hoping that there might be some other way that I don't know about.

It's OK when I am only updating a couple of indcators, but if there are many... I am trying to limit the amount of inputs to my vi.

I supose I could create an array of references? That might get ugly to keep track of.

 

Thanks

 

 

0 Kudos
Message 3 of 4
(3,527 Views)

Or a cluster of references, that way each reference can be named, and can be different types to match the respective indicator.

 

There are also methods where you can just send in a VI reference, and in the subVI traverse all the controls and search for the appropriate references by name.

 

Take a look at this long nugget.

0 Kudos
Message 4 of 4
(3,517 Views)