キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/12
4,678件の閲覧回数

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

---
Silver_Shaper | CLD
0 件の賞賛
メッセージ2/12
4,677件の閲覧回数

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 件の賞賛
メッセージ3/12
4,675件の閲覧回数

Exactly..

---
Silver_Shaper | CLD
0 件の賞賛
メッセージ4/12
4,664件の閲覧回数

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 件の賞賛
メッセージ5/12
4,662件の閲覧回数

@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.


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 件の賞賛
メッセージ6/12
4,634件の閲覧回数

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 件の賞賛
メッセージ7/12
4,613件の閲覧回数

..

0 件の賞賛
メッセージ8/12
4,571件の閲覧回数

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 件の賞賛
メッセージ9/12
4,554件の閲覧回数

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 件の賞賛
メッセージ10/12
4,537件の閲覧回数