Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

External trigger to stop counter output on USB 6251.

I am using a USB-6251 to control a small motor using PWM on counter 1 of the device. Does anyone know if it is possible to use a signal on one of the digital input lines to stop the counter output. I am currently looking at a limit switch condition in a while loop, and stopping the counter when the switch goes high. Unfortunately with all of the win2K overhead the response is pretty sluggish.
0 Kudos
Message 1 of 2
(4,005 Views)

Hi,

I believe that you can use a pause trigger in your application and monitor the digital line so that when it goes high or low the counter output will pause. A great example of this can be found by going to Help in LabVIEW>> Find Examples>>Hardware Input and Output>>DAQmx>>Generating Digital Pulses>>Gen Dig pulse train-Continuous-Pause trigger.vi. You can also use a case structure and place a stop task inside of the appropriate case. If you do not need to restart the generation you can use a stop trigger which is further explained in this Knowledgebase entry. I hope this helps!

JaceD
Signal Sources Product Support Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,995 Views)