ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Access Teststand Run Mode Programmatically

Hello,

 

I would like to access a Sequence Run Mode programmatically during my test.  I would like to check if the test is selected to be skipped in the pre-expression and set a local flag based the result.

 

I will use this flag to run a later step or a sub sequence.

 

Is there a way of doing that?

 

Thanks,

 

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

Run Mode is at the step level:

 

Locals.MyFlag = Step.GetRunModeEx() == "Skip"

 

https://www.ni.com/docs/en-US/bundle/teststand/page/tsapiref/reftopics/step_getrunmodeex_m.htm

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 2
(1,356 Views)