12-20-2013 05:14 AM
Hello,
After following the document Signal Generation Using NI-DAQmx for generating an analog signal of variable voltage and duty cycle. I wanted to send a simulated signal of ni express through ni usb 6008 daq card.
But unfortunately its not working. the Error i am having is in timming daqmx vi.
i therefore need guidence how to solve this issue.
i shall be very thankful to you.
12-20-2013 06:07 AM - edited 12-20-2013 06:09 AM
Hi Abuzar,
the error description is pretty clear: you try to setup the AO to use the waveclock sample frequency, while it only supports "on demand"...
Please read the manual of the USB6008 (page 16 and 21)! It only supports "on demand" access of the AOs, which means: DAQmxWrite set to "1 Sample" and no additional DAQmxTiming...
12-30-2013 03:47 AM
Thanks GredW
Its still unclear how to change the selection to on demand as it is not available in the properties.
Regards
12-30-2013 09:05 AM
As Gerd said, you do not use a DAQmx Timing function. You don't use DAQmx Write set to anything except 1Samp. The DAQmx Write has to be in a loop where you index the waveform array one sample at a time.
12-30-2013 02:59 PM
In particular, note that this limits the speed at which you can output points to something on the order of 100 Hz (as you need to do a USB "write" for every point). The 6008 has a clock that can drive the input of analog samples (giving you the data "all at once"), but no similar clock for analog output. For that, you need more sophisticated hardware (MyDAQ can do this, but it has an on-board Digital Signal Processor ...).
12-30-2013 11:31 PM
Thanks to all of you.
Can you pls specify the Hardware suitable to output an analog waveform of the given frequency.
Regards
12-31-2013 12:03 AM