06-03-2010 08:35 AM
I am trying to make a vi that will allow for editing of values stored in an XML file. I am able to store and retreive the XML data, however I do not have a good way to allow the user to edit the data. For example in other languages I can set the value of an text box input programatically when a file is opened and retreive it when the file is saved, is there a way to do this in LabView?
Thanks,
John
Solved! Go to Solution.
06-03-2010 08:40 AM
Users can only manipulate Controls when a VI is running.
The value of a control can be set using a variety of methods.
1) pop-up create local change to write. Make sure your code carefully limits when the writting is happening. Race conditons can result.
2) Property node Value Similar to loca but uses Ui thread to make changes and is less efficient.
3) Porperty node value Signaling same as #2 but will fire an event if one is registered.
4) Set Control value similar to #3 but you have to know the name.
Ben
06-03-2010 08:42 AM - edited 06-03-2010 08:43 AM
Hi John,
ofcourse there is!
Use a local variable or a property node, depending on your actual needs... Both are easy to create by right-clicking the terminal of the control.
Ah, Ben was faster with even better descriptions...
06-03-2010 09:01 AM
Thanks for the quick responses.
John
06-03-2010 09:06 AM
Ah, Ben was faster with even better descriptions...
What else is new !