Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

can NI 6008 support clock generation?

hi, i am trying to outputting data with a NI USB-6008 using Matlab example. However, there is an error exist every time i run the .mfile.
 
****************************************************************************************************************
AO = analogoutput('nidaq','Dev1');
addchannel(AO,0)
duration = 4;
set(AO,'SampleRate',10000)
set(AO,'TriggerType','Manual')
ActualRate = get(AO,'SampleRate');
len = ActualRate*duration;
data = sin(linspace(0,2*pi*500,len))';
start(AO)
trigger(AO)
wait(AO,5)
delete(AO)
clear AO
 
??? error:analog output subsystem of this device does not support clocked generation.
**********************************************************************************************************
 
Is NI USB 6008 series does not support clocked generation?
 
Can anybody help me on this?
 
Thanks 
 
0 Kudos
Message 1 of 7
(4,082 Views)
Hi cat_e0,

The USB-6008 only supports analog output generation upto 150Hz, you have set it to 10,000. Can you try reducing the rate to 150Hz?


Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
Message 2 of 7
(4,080 Views)
I had tried out that but the error still can't be solved.
 
Besides that, i try to outputting analog data through NI 6008 analog output port AO0 using PUTDATA command in Matlab, an error will shown:
 
??? analog output subsystem of this device does not support clocked generation, must use PUTSAMPLE to output data.
 
 while I try out PUTSAMPLE command, another will shown:
 
???only 1 sample per channel can be output 
0 Kudos
Message 3 of 7
(4,064 Views)
Hi,

The USB-6008 does not support hardware clocked operations, which are required for START/STOP/GETDATA/PUTDATA operations.  You are limited by the hardware to single point acquisition and generation using PUTSAMPLE and GETSAMPLE.  At this time, Data Acquisition Toolbox does not support software clocking on NI-DAQmx devices.

All the best,
-Rob

-----
Rob Purser
Manager, Test and Measurement
MathWorks
rob.purser@mathworks.com
0 Kudos
Message 4 of 7
(4,056 Views)

hello,

If the USB 6008 cannot support hardware clock generation,  then is there any means to do the real time data acquisition?

I wish to read in real time EMG sensor signal and then display it in MATLAB via the USB 6008 hardware,  I manage to display real time input signal in MATLAB however facing problem displaying the analog output signal.

0 Kudos
Message 5 of 7
(4,022 Views)

hi Rob,

Thanks for your advise.

I had tried out some examples, the USB-6008 can do START/STOP/GETDATA operations, but it is having problems with the PUTDATA/PUTSAMPLE operations. Does this mean that i have to use other DAQ hardware in order to carry out those operations?

 

 

Regards,

yeelin

Message Edited by cat_e0 on 08-21-2007 09:33 PM

0 Kudos
Message 6 of 7
(4,005 Views)

Hello Yeelin,

The USB-6008 is a low cost solution and only supports software timed generation. (USB-6008 Manual pg.16)  Abbinav is correct; the maximum sampling rate is 150S/s.  You currently have the sampling rate set to 10,000S/s.  Are you able to get your USB-6008 to work correctly in Measurement & Automation Explorer (MAX)? 

Any of our M-Series boards will be able to provide hardware timed generation.  Here is a great forum post that describes using DAQmx and M-Series DAQ with MATLAB®.

Respectfully,

Rob F
Test Engineer
Condition Measurements
National Instruments
0 Kudos
Message 7 of 7
(3,982 Views)