NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Event trigger in Teststand

Hi,

I am new to Teststand, thus bear with the question...

I am trying to jump to a specify set of code whenever an event (such as a switch is activiated). I have tied this switch to one of the DAQ DIO pin.

I need to continue with the other routines till this switch is detected. Currently, i check for the switch before branching to different routine, but if the switch is activated after this check, i have no way to detect the switch status.

In assembly, this is usually execute via the interrupt routine (instead of polling as what i have used above).

 

SW used:

Labview 8.5

Teststand 4.1

DAQmx 8.7

 

Regards,

LC

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

Hi,

 

You could try using either the Pre or Post Step callback so that you can do you check at each step execution.

 

Regards

Ray Farmer

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

Since TestStand is not a programming language, there is really no way to get 'interrrupt' behavior in your sequences.  The best way to find the status of your switch would be to do some sort of polling operation.

 

What Ray suggested in the above post is equivalent to polling after (or before) every step.  This will probably be the most effective way for you to make sure you know the status of the switch at all times, as long as your step execution times are not very long.

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 3 of 3
(2,984 Views)