Path: news.mathworks.com!not-for-mail
From: "Yeelin Chong" <yeelin_e0@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: outputting data with NI USB-6008 in MATLAB
Date: Wed, 22 Aug 2007 14:53:54 +0000 (UTC)
Organization: UniMAP
Lines: 34
Message-ID: <fahim1$dt2$1@fred.mathworks.com>
Reply-To: "Yeelin Chong" <yeelin_e0@hotmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1187794434 14242 172.30.248.37 (22 Aug 2007 14:53:54 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 22 Aug 2007 14:53:54 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1086617
Xref: news.mathworks.com comp.soft-sys.matlab:424963



Hi,

I am trying to outputting data with NI USB-6008 analog 
output channel, however I am facing problem everytime i 
run the program.

my program is as below:

ao = analogoutput('nidaq','Dev1');
addchannel(ao,1)
set(ao,'SampleRate',150);
set(ao,'TriggerType','Immediate');
putdata(ao,3.5)
start(ao)


???analog output subsystem of this device does not support 
clocked generation, must use PUTSAMPLE to output data.

while I change the PUTDATA to PUTSAMPLE command, another 
error will shown

???only 1 sample per channel can be output


I am wondering how to settle the above problems, however I 
couldn't find out a solution. Could any one help on this? 
Besides that, i would like to have a simple program that 
can be used to output data to analog output channel.

Thank a lot...

regards,
yeelin