04-02-2009 03:08 AM
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.
04-03-2009 05:38 AM
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.
05-30-2015 02:50 PM
@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.
05-30-2015 03:50 PM
06-01-2015 02:18 PM
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...