08-07-2008 09:56 AM
08-07-2008 11:42 AM
Hi Robert,
I'm afraid it does not. Your card runs all of the analogue outputs off of the same clock which gets configured per task. This is why you are getting this error. You must group all similar processes into a single task e.g. all analogue outputs/inputs.
This does not mean you cannot do this but what it does mean is that both outputs must be done from the same sample clock and so at the same rate. Therefore if you ensure you generate the signals correctly programmatically e.g. so the conform to the equation signal frequency = (no. cycles x rate)/size of buffer.
I hope this helps.
Regards,
08-07-2008 04:57 PM
Thanks for the response. I now understand why my code does not work. Is there any DAQ card with two clocks which can generate two different waveforms simultaneously?
Robert
08-08-2008 07:37 AM
Hi Robert,
Unfortunately our standard multifunction DAQ cards all work on the same principal. I wondered why it was that you wanted to use a hardware solution to this rather than a software solution? If it really must be done in seperate tasks then the best solution would probably be to fit an additional analogue output card and have a dedicated card for each.
Just to demonstrate the software approach though I have produced some example code which I have attached demonstrating how your application could work under a single task using your current hardware set up.
Let me know what you think.
08-11-2008 10:20 AM
Hello James Mc,
The DAQmx Example.zip that you provided is actually an example of using the DMM to take measurement. The question I was asking is generating two different analog waveforms simultaneously at DAQ Ao0 and Ao1. Your help would still be appreciated. Thank you.
Robert
08-11-2008 11:51 AM