NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Specify default values for parameters with Expression Browser?

Hi,

I have defined some complex custom data types as station globals and i want to use their values as default in some custom step types (parameter definition). An index as first parameter of these step types decides normally which element of these complex arrays has to be used by the steptype.
TestStand offers to open the expression browser when specifying a sequence call but this feature isn't available to specify the default values of parameters within a sequence.

If there is now way to do this what about this option:
Is there any way to recognize in the steptype sequence that the user has selected 'use default' within the steptype call to set the parameter with a statement in the steptype sequence?


Regards
Sunny
0 Kudos
Message 1 of 2
(3,211 Views)
Sunny -
The expression browser dialog box is for defining expressions. The default value for sequences are not expression, but instead just literal values.

The only way to specify the value for a parameter at run-time using an expression is by the calling sequence. So, the calling sequence could use an expression like this for a parameter:
"StationGlobals.MyComplexContainer"

Another option would be to just copy and paste the complex container under the station globals to the parameter tab. This is a one time operation, but unfortunately if the default values of the complex container in the station globals change, the sequence will not get the latest changes.

Scott Richardson (NI)
Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 2
(3,211 Views)