NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Single Pass

Problem: I have a Testprogram with Sub Sequence A, B and C. There is also a Setup for the Main Sequence. When I highlight some steps, I have the option to run them interactively using the Single Pass entry point of my process model by selecting Execute»Run Selected Steps Using»Single Pass or Execute»Loop on Selected Steps Using»Single Pass. Only if I select Sub Sequence C, the steps in Setup should run. When the Sub Sequence A and B is chosen the Setup shall not run. How do I do that. Can I use the The CallStackDepth?
0 Kudos
Message 1 of 3
(2,848 Views)

Hi Jens,

Are you sure the steps in the Setup Step Group are not executing? (Try putting a Message Popup in the Setup Step Group). 
Do you have and preconditions set for the setup steps?


If you've verified this, could you post a copy of the sequence file here?

Thanks!

Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 2 of 3
(2,833 Views)

Hi,

 

 

Use a pre-condition in you Setup and test if NameOf(RunState.Caller) is the same ae the name of Sequence C

 

You may have to use a Goto is you have more than one step in your Setup so that if the condition is met then the Setup steps are run and if not then the steps are jumped over or skipped.

 

Hope this helps

 

I'll try and send an example

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 3 of 3
(2,828 Views)