07-12-2017 01:21 AM
Hello,
I'm working on a project that I am sending analog output, sawtooth pattern with 1024 samples @ 7 usec steps. And I need to send digital pulse on each rising edge of that step (need to send 1024 pulses for each sawtooth pattern). I am using USB-6211 which maybe not a good choice but I'm stuck with this one. I'm trying to use counter output but I'm having a hard time syncing the pulse with rising edge of each step in the sawtooth pattern. Is there a way to sync the counter to rising edge of each sawtooth step?
Any suggesting is really appreciated. Thank you in advance.
Solved! Go to Solution.
07-12-2017 09:42 AM
You probably don't even need the counter task. You can probably use DAQmx Export Signal to route the AO Sample Clock directly out to a PFI pin that can be physically wired wherever. The clock signal causing the D/A conversion for the next AO sample will be passed through to that PFI line.
-Kevin P
07-12-2017 12:20 PM
Hi Kevin,
Thanks for the reply. I wasn't sure if 6211 is capable of doing HW trigger (sort of). I added the export signal function in the code. I don't have access to 6211 right now but will definitely try it out tonight.
Thank you!
07-12-2017 02:20 PM
It's not clear to me how most of the upper half of your block diagram relates to your stated problem / goal. All you should need is the one Export Signal call which is fed from below by the AO task ref anyway. That alone will put the AO sample clock signal onto PFI4, there's no need of any further DO or CTR tasks.
-Kevin P
07-24-2017 12:08 PM
Hello Kevin,
Using Export Signal is working great so far. Thank you so much.