NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using "Default Value" for a sub-sequence parameter passed by reference

NI TestStand allows to configure an output parameter of a sub-sequence (passed by reference) as "Default Value" :

 

DefaultValuebyRef.png

We have observed a very strange behaviour in this case. I feel that there can be a memory corruption.

If so, why does TestStand allow that ?

Jean-Louis SCHRICKE
CTA - Certified TestStand Architect (2008 - 2022)
CTD - Certified TestStand Developer (2004 & 2007)
CLD - Certified LabVIEW Developer (2003 & 2005)

0 Kudos
Message 1 of 2
(2,021 Views)

The behavior should be that the value passed to the sequence is a copy/clone of the default value that the sequence specifies for the parameter. Since there is no caller to value to return to, the cloned value is released when no longer referenced by the calling step. I am not aware of any issues with this sub-feature of sequence calling, including no known memory corruption concerns.

Scott Richardson
0 Kudos
Message 2 of 2
(1,992 Views)