04-25-2006 06:26 PM
04-26-2006 12:48 PM
DAQmx has introduced some new terminology for counter operations, but has also provided greater flexibility and simplicity in routing the timing signals.
In your case, "gated event counting" would now be known as "Edge counting with a digital Pause Trigger." I'm not near a LV machine to check, but there may be a shipping example to illustrate.
Roughly, here's how you'd approach it: With Ctr0 as the edge-counter, you would put a DAQmx Trigger Property node in the config chain. If you dig through the options, you'll find properties that help you define a "Pause Trigger." You'd be wanting to define things like trigger type = Pause trigger, trigger source / terminal = Dev1/Ctr1InternalOutput, pause when = low (or high). Sorry, I don't recall the exact names...
I think the 2 key points are that "gated" operations are configured as "pause-triggered" operations, and that you can easily specify the use of an internal board signal like Ctr1InternalOutput to be the trigger without concerning yourself with PFI pin #'s.
-Kevin P.
04-27-2006 07:46 PM
05-02-2006 05:33 PM
Below is the code that I generated, can you please point out my mistake? In the code, I first generated a continuous pulse and then try to gate that output with counter 1. I tried to follow the example you mentioned as close as I can. However, still no luck gating the output of counter 0 and counter 1.
Please help
Thanks,
Waymon
05-03-2006 07:01 PM
05-03-2006 07:08 PM
Hi Thaison,
Thanks for your help, I finally figure it out. The reason it didn't work is because I was using refrence Trig Type instead of Pause. Trig Type. 🙂
Thanks for your help again.
Waymon