NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Default value of sequence context of a VI

I have a HAL library which I am using in conjunction with teststand. There are specific driver classes for instruments and also corresponding simulation classes. within the simulation class method, I use the sequence context of a test step to read the type of test and limit values set(should they exist), to simulate a pass/fail condition.

 

The sequence context input of the VI has to be changed to "ThisContext" as it is "Nothing" by default. SInce there are 100's of such measurement steps, I was wondering if there was a way to change the default value to be "ThisContext" if it's possible at all. Or If I choose to simulate, can the default-checkbox be unchecked programmatically

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

Hi StewieRupert,

 

It's not exactly ideal, but TestStand does have find/replace functionality you might be able to use here. You can launch it with Ctrl+F. You have to run the search before you can replace. After searching, you'll see results listed at the bottom of the environment where you typically find step settings and you can iterate through and auto-replace Nothing with ThisContext.

 

To enable the ability to switch easily, I would create an object reference variable to use in all places you want to switch, use find/replace to insert that variable and then you can control all of the step inputs just by changing the value of the variable they share.

Regards,
0 Kudos
Message 2 of 2
(2,126 Views)