LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing default control values in LV application?

Can anyone help me?
Is it possible to change default control values in LV program
programmatically?

--
Sergey Yakovlev, Berlin,
yakovlev@evologics.de
0 Kudos
Message 1 of 3
(2,780 Views)
Yes, one way you can set the (default) value of a control is by using a property node.

To do so, right click on your control and select Create/Property node. Then right-click on the property node and set it to All write. Finally, left-click on the text "Visible" and select value. If now you wire e.g. 5 to this property node in the beginning of your program, the control will display the value 5 when the users see it for the first time.


Hope this helps. /Mikael
0 Kudos
Message 2 of 3
(2,780 Views)
Its quite complex (in my opinion) to do so programically , but using a set of invoke nodes, you can get it done ('Make this value default'). Look at the attached for info (its a large link name, so you may have to copy and paste in your browser).

http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&2C14132F826F839F8625683A000B0B99&cat=DB5863CD70417B07862567930070A058

I've been simply using config.txt files of read and write to set values.
0 Kudos
Message 3 of 3
(2,780 Views)