09-09-2013 04:39 PM
Hi,
I am new at labview and wanted to find an example of changing a string value on the top level by using a Sub-VI to make the change.
Thanks
09-09-2013 04:51 PM
Pass a reference to the string control to the subVI. Then use a property node with the reference to write back to the control.
09-09-2013 04:55 PM
Actually that is one way. There are multiple ways to accomplish it. Another is to generate your string data and pass it back thru the connector pane.
09-09-2013 04:58 PM
not sure how to use a connector pane but if there many strings, not sure if this works easily?
09-09-2013 05:00 PM - edited 09-09-2013 05:02 PM
Sub VI
Top level VI
I dont recommend references for beginners because they break the data flow paradigm.
09-09-2013 05:04 PM
If you don't know how to use connector panes, then I suggest learning the basics. Watch some videos. Get acquainted with LabView before building an app. It will make your life easier in the long run.
http://www.ni.com/gettingstarted/labviewbasics/
09-09-2013 05:29 PM
@Roadrunna wrote:
not sure how to use a connector pane but if there many strings, not sure if this works easily?
Don't be afraid of arrays and clusters to make passing data around easier. But passing the value out of the subVI is definately the easiest way to go.
09-09-2013 05:47 PM
ok, since i am new, is it possible to get an example on passing the data and reference from a sub-vi?