NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any chance to change default value (0 now) for numeric data type?

Hi,

 

Exacltly as in subject.

 

Is there any chance to change default value (0 now) for numeric data type?

 

K

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

Hi

 

i am not able to anwer it generally because i had no task for it.
but if your numeric data type is inside a custom data type (or it is a custom-datatype) then it is possible to set a "default" value for it.

 

Just set the default-value in the Type-Editor.

 

Regards

Juergen

 

 

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 3
(3,554 Views)

MimiKLM,

 

I don't know of a way to modify the default value of built-in primitives as you create them (so, making a numeric Local variable default to a value other than 0). As Juergen mentioned, if you create a custom data type, you can set a default in the Type Editor.

 

Are you instead referring to setting a default value for a specific variable in your sequence? You can easily do this by simply setting a value in the Variables pane. For example, if I have a numeric Local variable called MyVar in my MainSequence, I can click on it in the Variables pane and set the value to any number I want, such as 3. This will change the default value of that variable.

 

0 Kudos
Message 3 of 3
(3,514 Views)