LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Default Value

Hello...

 

 

         Can we change the default value of any control in run-time??

         Say, i'm having a numeric control,where the default value set as 103. Now in run time I will change it to 150 and next time when I run my VI the numeric control should have value 150,and not 103.

 

 

Thanking you,

sushmith

Thanking you,
Sushmith
0 Kudos
Message 1 of 12
(4,012 Views)

No its not possible. You can set Default value only in edit mode.

---
Silver_Shaper | CLD
0 Kudos
Message 2 of 12
(4,011 Views)

Hello,

 

         Oh then it is a long procedure to change the value, we will have to store it in a file and reload everytime when i run my VI. 

 

Thanking you,

sushmith 

Thanking you,
Sushmith
0 Kudos
Message 3 of 12
(4,009 Views)

Exactly..

---
Silver_Shaper | CLD
0 Kudos
Message 4 of 12
(3,998 Views)

Why cant you use property node to change the value in run time. As soon as program loads pass the wanting value.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 12
(3,996 Views)

@Ranjeet_Singh wrote:

Why cant you use property node to change the value in run time. As soon as program loads pass the wanting value.


Read the question more carefully.  They want to retain a value between runs.  The OP asked if you could just change the default value in the run-time so that the value will be retained.  This can't happen.  You have to save the value to a file.  You can then use a property node or local variable to set the value after reading the value from the file.

GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 12
(3,968 Views)

Hello crossrulz,

 

 

           Yes, that is wat I wanted. I wanted to change DEFAULT value of a control during run-time. I wanted to know if any alternative method is there instead of saving it into a file and accessing it.

Thanking you,
Sushmith
0 Kudos
Message 7 of 12
(3,947 Views)

..

0 Kudos
Message 8 of 12
(3,905 Views)

Sir 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 9 of 12
(3,888 Views)

You can do something like this to save & retrieve values without using a file.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 10 of 12
(3,871 Views)