LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect pulse with USB 6009 DAQ and trigger shutters

I would ideally like the rising edge to trigger an event. I have however got a solution that's working, i'm now using a stacked sequence. In the first sequence the pulse it counted and when it's value (count value) is 1 the sequence is ended and then next sequence begins. This next sequence contains the shutter commands which automatically start. When i run this in the continually running mode the pulse count is reset so now each count pulse triggers the shutters.

 

So i think i'm happy with it. So thanks for all your help.

0 Kudos
Message 11 of 15
(1,019 Views)

Well, if you want to do it on a rising edge, then why not connect the signal to a digital line? And, then use the rising edge event on the digital line to throw an event.

 

Whoa, don't use the Run Continuously Mode at all! Try to use loops and always run the application just once. Post your code here so we can help you out.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 12 of 15
(1,006 Views)

@AdnanZ wrote:

Well, if you want to do it on a rising edge, then why not connect the signal to a digital line? And, then use the rising edge event on the digital line to throw an event.



Why? Because USB-6009 does not support rising edge detection! This is what I'm struggling with right now. I wish NI did a better job of explaining which DAQ devices support which timing and triggering modes before people buy wrong equipment and find out the hard way.

0 Kudos
Message 13 of 15
(578 Views)
The 6009 does in fact support an external, rising edge, digital trigger. This is mentioned in you other post.
0 Kudos
Message 14 of 15
(564 Views)

What I meant to say was, as far as I understand, USB-6009 does not support "Change Detection (Digital Income)" mode of DAQmx Timing.vi .So, while one can detect a falling edge and do a single measurement, performing rapid externally triggered data acquisition is not possible with 6009. By rapid I mean at higher frequencies than the software clock. Now, rereading the thread, I realize that rapid sampling may not have been OP's intent...

0 Kudos
Message 15 of 15
(515 Views)