LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Make current value default programatically

Hello,
Could someone please help me?
I'd like make current value default in my VI programatically. I could do it. But I need that my program work inside while loop and I haven't getting it.
See my vi attached.
Thanks, J.

Note: My Labview is 7.0

0 Kudos
Message 1 of 4
(3,106 Views)
I don't think you can do that programatically.  What you can do is write the value to a file whenever it changes and you want to make the new value default.  Then at the beginning of your code, read the value from the file and put it into your control by using a local variable or property node.  Anytime you want to revert to default in your program, you would have to read the file to get the default value.
As an alternative to using a file, you can use a global variable to store the default value.

Message Edited by tbob on 10-18-2005 01:14 PM

- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 4
(3,101 Views)

Jota,

Please see the following link for some helpful additional information explaining a workaround for this issue and has an attached example code.

http://digital.ni.com/public.nsf/websearch/03FC177242ED0DC0862564FA004B56D8?OpenDocument

-jeff

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

Check on the "property saver" offered freely by Konstantin on his web-site found here

http://www.kshif.com/lv/index.html

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(3,073 Views)