07-13-2010 07:17 PM
We have just purchased the Pcie-6343 and want to output two different signals simultaneously on two different AO channels. Has anyone accomplished this with the x-series cards or know if it is that possible?
07-14-2010 11:51 AM
You certainly can!
The DAQmx driver has a write VI on it that allows you to feed in multiple waveforms with the idea of them being output on different channels. Because they are a part of the same DAQmx task they will start at the same time and use the same timing engine, which is how you synchronize signals on our cards. I have built an example below that generates a sine wave at 10 Hz and a triangle wave at 5 Hz and then outputs them on AO0 and AO1.
07-14-2010 12:16 PM
Thank you for your reply Doug, Looks like I asked you the wrong question. What I really want to know is if I can have two different signals that start at different times and use different timing engines? For example; lets say I want to send out a continuous signal on AO0 and then alow the user to specify when to send out a different signal on AO1?
07-14-2010 12:38 PM
Unfortunately there is only a single AO timing engine which all of the channels share, so you cannot trigger or clock multiple channels independently. The requirement is that only one task can be hardware-timed, but you can have multiple static (on-demand) tasks in parallel if desired.
What you'll probably want to do is run a continuous hw-timed task for all desired cahnnels and just update your waveforms on-the-fly. That way the user can select when to enable a channel (just write 0s to the channel when it is disabled). Here's a link to an example that should help get you started:
Update Multiple Channels of AO On-The-Fly
I hope that helps, let us know if you have any questions!
Best Regards,