Path: news.mathworks.com!not-for-mail
From: "ida jia" <ruting.jia@utsa.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: outputting data with NI USB-6008 in MATLAB
Date: Fri, 31 Oct 2008 18:54:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 40
Message-ID: <gefk8a$lcc$1@fred.mathworks.com>
References: <fahim1$dt2$1@fred.mathworks.com>
Reply-To: "ida jia" <ruting.jia@utsa.edu>
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 1225479242 21900 172.30.248.37 (31 Oct 2008 18:54:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 31 Oct 2008 18:54:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1580768
Xref: news.mathworks.com comp.soft-sys.matlab:498332


Hi,Yeelin, I got exactly same problem as you got here. Have you figured it out?  When I try to use PUTSAMPLE I also got the same error.

Thank you so much.

"Yeelin Chong" <yeelin_e0@hotmail.com> wrote in message <fahim1$dt2$1@fred.mathworks.com>...
> 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