From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Test termination when a bit state changes?

Hello,

 

I am planning to do a test which must know the state of the security bit all the time. If this bit changes it's state to alarm state the currently running test must either abort testing immediately or goto cleanup (this part is still open).  My question is how to do that? Should I do a parallel test process which constantly reads the state of the sequrity bit? I am using TS 2012.

 

BR,

Jick

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

One of the methods :

 

Main sequence()

Call new sub sequence in a seperate thread

other tests

 

 

new sub sequence()

Check for shutdown bit

if yes - run a statement step for terminate - ThisContext.RunState.Execution.Terminate()

wait - small delay

go to check for shut down bit

 

 

Refer API for either terminating ( which also calls cleanup) or abort ( no cleanup - not preferred).

 

0 Kudos
Message 2 of 2
(2,995 Views)