NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

interrupts in teststand

Solved!
Go to solution
hi,
 
Is interrupts kind of thing can be implemented in teststand.
what i mean is a step is being made to run and if one of the boolean variable status is taken from that step and of that boolean output is true then i should go to another step in the same sequence and execute that step and come back to the place from where it has jumped.
 
thanks & regards
 
praveen
0 Kudos
Message 1 of 4
(4,692 Views)
 

Hi Praveen,

The functionality you are looking for can be implemented using the Goto Step Type as well as other Flow Control Step Types. These steps modify the flow of execution and are used to logically organize the order of execution within your sequences. The RunState.NextStepIndex and RunState.StepGroup properties can also be used directly to precisely control what step will be next in the flow of execution.

While it is true that you can use these methods to implement the functionality of an interrupt, I would highly recommend using a subsequence with a precondition that evaluates the boolean values from the step you mentioned. This option is more modular and abstract, is easier to visually inspect, increases the flexibility of your code, and is much easier to debug. After the execution of a called subsequence, execution returns to the calling sequenced and continues where it left off.

If there is a particular reason that this preferred solution doesn't satisfy your application, please post back more information about your application as well as what functionality you are needing that is not met using a subsequence.

Thanks!



Evan Prothro
RF Systems Engineer | NI

Message 2 of 4
(4,677 Views)
Solution
Accepted by topic author Sury@
thanks this was what i exactly needed.
0 Kudos
Message 3 of 4
(4,673 Views)
My pleasure.

Happy Developing!



Evan Prothro
RF Systems Engineer | NI

0 Kudos
Message 4 of 4
(4,666 Views)