02-15-2009 08:49 PM
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
02-16-2009 12:45 AM
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
02-17-2009 12:26 PM
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.