06-18-2010 12:55 PM
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
06-18-2010 01:57 PM
I think this LabVIEW wiki might be helpful.
06-18-2010 03:33 PM
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
06-18-2010 08:33 PM
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.