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,964 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,960 Views)