NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupt from DAQ

Hi

 

I'm currently looking at how to operate an emergency stop. 

 

We were thinking that the e-stop would connect to a relay which cuts off the mains.  The e-stop would also route a 5V signal to an input on the 6010 DAQ.

 

I was wondering if there is any facility in testStand to specify a DAQ input as an interrupt for the sequence program.  This would mean that no matter where the program sequence was in test if the 5V line dropped to zero the program would stop and run an interrupt sequence similar to a celanup sequence.

 

In this case it would do something like the following.

 

Display a screen saying "Press the reset button"

 

Once pressed the sequence would continue and return equipment to the home position.

 

Is there any simple way of doing this or do I need to do something like run a parallel sequence which constantly polls the 6010 to check the status of the input?

0 Kudos
Message 1 of 3
(3,074 Views)

Hi,

 

The only place I can think of is using one of the PostStep callback (SequenceFilePostStep). This gets called at the end of each step.

 

 

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

In addition to using Ray's suggestion you could have an asynchronous VI that launches at the beginning of execution and looks at the state of the 5V line. When it goes low, you could post a UIMessage and have your UI pause the sequence and light an indicator. More convoluted and more work but more fun at the same time! Right!?

CTA, CLA, MTFBWY
0 Kudos
Message 3 of 3
(3,039 Views)