From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to set the default value during run time ?

Dear all,

i want to know how can i set the default value of a numeric control during run time ?

 

Thanks,

Ritesh

0 Kudos
Message 1 of 3
(3,689 Views)

Enter the number you like in the control. Then right click the control and choose "Make current value default".

 

Mathan

0 Kudos
Message 2 of 3
(3,685 Views)

You can't set default values during run-time. These values stored in executable, and you can't modify executable.
You can only reinitialize control to default value.

So, you need to store your "default" values somewhere outside of executable - in ini file, or in registry. OpenG tools also very helpful.

 

Andrey.

Message 3 of 3
(3,675 Views)