NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get TS present Run Mode

Solved!
Go to solution

Hi, everyone,

I have some cleanup procedures to be done in my sequences but I would not let them go if I'm debugging the relevant sequence. You know, sometimes we can keep the handles or resources open or connected especially with LabVIEW.

Is there a API to know TS' present Run Mode? Please forgive me use this TS term.

Thanks.

0 Kudos
Message 1 of 3
(2,963 Views)
Solution
Accepted by topic author labc

TestStand is no programming language. As a result, there is no "debug version" or "release version" of a sequence.

The option to break/step/resume for debugging purposes is a feature of the TestStand engine which applies to executions. The execution however does not know if it will break or not.

Breaking is a feature which requires user rights (debugging section).

 

You can, however, create your own terms for such requirements. Two options come in mind:

- Add a configuration file and appropriate modules to determine a "run mode"

- Use custom UI(s) and query the UI for the "run mode"

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 3
(2,946 Views)

Norbert, Got it, thank you.

0 Kudos
Message 3 of 3
(2,929 Views)