NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to define parameter variables to be passed by value by default

When defining a new parameter for a sequence, it is set by reference by default. Obviously sometimes when passing a parameter we dont want the sequence receiving those values to be able to modify it by mistake and corrupting the value from the calling sequence. Is it possible to have the parameter variables created with passed by value by default?

Thanks!

Louis
0 Kudos
Message 1 of 3
(3,214 Views)

Louis -
The default setting is by ref and we do not expose a way to customize this.  One of the reasons we chose by ref instead of by value for the default, is that when you specify by value for a container, the entire container must be cloned and this adds overhead to a sequence call that users may not want.

Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 3
(3,204 Views)
I agree that for big containers using by ref will be much faster than using by val. I guess once all the sub modules for the project will be written we won't need to add any parameters to the sequences. 😉

Thanks anyways,

Louis
0 Kudos
Message 3 of 3
(3,195 Views)