04-27-2012 06:58 PM
Hi guys,
Can I use <Control Value Set invoke method> to pass some control references to a sub VI, then use the <Run VI invoke method> to run the sub VI with the previously passed data? The control refnums are for some frontpanel controls in the Main VI.
I was able to pass other data but the refnum didn’t work.
Thanks
04-30-2012 01:41 PM
Hi there, There are a couple examples that use the same method. Check them here:
- Set Control Values and Trigger UI Events in Another VI
- Set Values and Properties of Controls in a SubVI
- Save and retrieve front panel control values
04-30-2012 01:52 PM
THe code included in this Nugget uses the method you are attempting but rather than a ref to a clontrol it uses a ref to an occurnece. THe ideas should be the same.
Ben
04-30-2012 03:32 PM
In later versions of LabVIEW (2011 and later) passing the values directly to the con pane with an Asynchronous Call by reference node is prefered to the control val set / Run VI method. If you have 2011 look for the ACBR examples under New for 2011