<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154944</link>
    <title>MATLAB Central Newsreader - outputting data with NI USB-6008 in MATLAB</title>
    <description>Feed for thread: outputting data with NI USB-6008 in MATLAB</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 22 Aug 2007 14:53:54 -0400</pubDate>
      <title>outputting data with NI USB-6008 in MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154944#388763</link>
      <author>Yeelin Chong</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I am trying to outputting data with NI USB-6008 analog &lt;br&gt;
output channel, however I am facing problem everytime i &lt;br&gt;
run the program.&lt;br&gt;
&lt;br&gt;
my program is as below:&lt;br&gt;
&lt;br&gt;
ao = analogoutput('nidaq','Dev1');&lt;br&gt;
addchannel(ao,1)&lt;br&gt;
set(ao,'SampleRate',150);&lt;br&gt;
set(ao,'TriggerType','Immediate');&lt;br&gt;
putdata(ao,3.5)&lt;br&gt;
start(ao)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
???analog output subsystem of this device does not support &lt;br&gt;
clocked generation, must use PUTSAMPLE to output data.&lt;br&gt;
&lt;br&gt;
while I change the PUTDATA to PUTSAMPLE command, another &lt;br&gt;
error will shown&lt;br&gt;
&lt;br&gt;
???only 1 sample per channel can be output&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I am wondering how to settle the above problems, however I &lt;br&gt;
couldn't find out a solution. Could any one help on this? &lt;br&gt;
Besides that, i would like to have a simple program that &lt;br&gt;
can be used to output data to analog output channel.&lt;br&gt;
&lt;br&gt;
Thank a lot...&lt;br&gt;
&lt;br&gt;
regards,&lt;br&gt;
yeelin</description>
    </item>
    <item>
      <pubDate>Tue, 25 Sep 2007 14:13:58 -0400</pubDate>
      <title>Re: outputting data with NI USB-6008 in MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154944#393855</link>
      <author>Sherryl Radbil</author>
      <description>Hi Yeelin,&lt;br&gt;
The USB-6008 does not have an onboard clock, therefore you&lt;br&gt;
cannot use PUTDATA/START. You must use PUTSAMPLE, just as&lt;br&gt;
the error message states.&lt;br&gt;
&lt;br&gt;
When I change the code use PUTSAMPLE and start I do not see&lt;br&gt;
the error you are seeing.&lt;br&gt;
&lt;br&gt;
If this is still an issue please post the exact code for the&lt;br&gt;
putsample example and I will try it here.&lt;br&gt;
Include everything from the &quot;ao = analogoutput...&quot;&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Sherryl&lt;br&gt;
&lt;br&gt;
&quot;Yeelin Chong&quot; &amp;lt;yeelin_e0@hotmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fahim1$dt2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am trying to outputting data with NI USB-6008 analog &lt;br&gt;
&amp;gt; output channel, however I am facing problem everytime i &lt;br&gt;
&amp;gt; run the program.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; my program is as below:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ao = analogoutput('nidaq','Dev1');&lt;br&gt;
&amp;gt; addchannel(ao,1)&lt;br&gt;
&amp;gt; set(ao,'SampleRate',150);&lt;br&gt;
&amp;gt; set(ao,'TriggerType','Immediate');&lt;br&gt;
&amp;gt; putdata(ao,3.5)&lt;br&gt;
&amp;gt; start(ao)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ???analog output subsystem of this device does not support &lt;br&gt;
&amp;gt; clocked generation, must use PUTSAMPLE to output data.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; while I change the PUTDATA to PUTSAMPLE command, another &lt;br&gt;
&amp;gt; error will shown&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ???only 1 sample per channel can be output&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am wondering how to settle the above problems, however I &lt;br&gt;
&amp;gt; couldn't find out a solution. Could any one help on this? &lt;br&gt;
&amp;gt; Besides that, i would like to have a simple program that &lt;br&gt;
&amp;gt; can be used to output data to analog output channel.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank a lot...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; regards,&lt;br&gt;
&amp;gt; yeelin</description>
    </item>
    <item>
      <pubDate>Tue, 09 Oct 2007 20:35:13 -0400</pubDate>
      <title>Re: outputting data with NI USB-6008 in MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154944#395867</link>
      <author>Jacob </author>
      <description>I am having the same trouble, but once I change over to&lt;br&gt;
&quot;PUTSAMPLE&quot; start, I receive the following error:&lt;br&gt;
&amp;gt; ??? Data must be queued using PUTDATA before starting.&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; annewave at 49&lt;br&gt;
start(ao)&lt;br&gt;
&lt;br&gt;
Help?!&lt;br&gt;
Thanks!&lt;br&gt;
Jake&lt;br&gt;
&lt;br&gt;
&quot;Sherryl Radbil&quot; &amp;lt;sherryl.radbil.dontspamme@mathworks.com&amp;gt;&lt;br&gt;
wrote in message &amp;lt;fdb536$lci$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi Yeelin,&lt;br&gt;
&amp;gt; The USB-6008 does not have an onboard clock, therefore you&lt;br&gt;
&amp;gt; cannot use PUTDATA/START. You must use PUTSAMPLE, just as&lt;br&gt;
&amp;gt; the error message states.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; When I change the code use PUTSAMPLE and start I do not see&lt;br&gt;
&amp;gt; the error you are seeing.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If this is still an issue please post the exact code for the&lt;br&gt;
&amp;gt; putsample example and I will try it here.&lt;br&gt;
&amp;gt; Include everything from the &quot;ao = analogoutput...&quot;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; Sherryl&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Yeelin Chong&quot; &amp;lt;yeelin_e0@hotmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;fahim1$dt2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hi,&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I am trying to outputting data with NI USB-6008 analog &lt;br&gt;
&amp;gt; &amp;gt; output channel, however I am facing problem everytime i &lt;br&gt;
&amp;gt; &amp;gt; run the program.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; my program is as below:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ao = analogoutput('nidaq','Dev1');&lt;br&gt;
&amp;gt; &amp;gt; addchannel(ao,1)&lt;br&gt;
&amp;gt; &amp;gt; set(ao,'SampleRate',150);&lt;br&gt;
&amp;gt; &amp;gt; set(ao,'TriggerType','Immediate');&lt;br&gt;
&amp;gt; &amp;gt; putdata(ao,3.5)&lt;br&gt;
&amp;gt; &amp;gt; start(ao)&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ???analog output subsystem of this device does not support &lt;br&gt;
&amp;gt; &amp;gt; clocked generation, must use PUTSAMPLE to output data.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; while I change the PUTDATA to PUTSAMPLE command, another &lt;br&gt;
&amp;gt; &amp;gt; error will shown&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ???only 1 sample per channel can be output&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I am wondering how to settle the above problems, however I &lt;br&gt;
&amp;gt; &amp;gt; couldn't find out a solution. Could any one help on this? &lt;br&gt;
&amp;gt; &amp;gt; Besides that, i would like to have a simple program that &lt;br&gt;
&amp;gt; &amp;gt; can be used to output data to analog output channel.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Thank a lot...&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; regards,&lt;br&gt;
&amp;gt; &amp;gt; yeelin&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Wed, 10 Oct 2007 14:33:52 -0400</pubDate>
      <title>Re: outputting data with NI USB-6008 in MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154944#396002</link>
      <author>Sherryl Radbil</author>
      <description>Jacob,&lt;br&gt;
It is hard to know exactly what is wrong with your code&lt;br&gt;
without seeing it.&lt;br&gt;
&lt;br&gt;
Note that PUTSAMPLE stands on its own.&lt;br&gt;
PUTDATA/START are a pair.&lt;br&gt;
You can read about these 3 commands in the online documentation.&lt;br&gt;
This page also mentions devices with no onboard clock so you&lt;br&gt;
may want to start here.&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/daq/f6-6809.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/daq/f6-6809.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Also, this solution may interest you as it describes the&lt;br&gt;
behavior of a device without an onboard clock for analog output.&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-1DQAPW.html?product=DA&amp;solution=1-1DQAPW&quot;&gt;http://www.mathworks.com/support/solutions/data/1-1DQAPW.html?product=DA&amp;solution=1-1DQAPW&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Sherryl</description>
    </item>
    <item>
      <pubDate>Fri, 31 Oct 2008 18:54:02 -0400</pubDate>
      <title>Re: outputting data with NI USB-6008 in MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154944#608410</link>
      <author>ida jia</author>
      <description>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.&lt;br&gt;
&lt;br&gt;
Thank you so much.&lt;br&gt;
&lt;br&gt;
&quot;Yeelin Chong&quot; &amp;lt;yeelin_e0@hotmail.com&amp;gt; wrote in message &amp;lt;fahim1$dt2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am trying to outputting data with NI USB-6008 analog &lt;br&gt;
&amp;gt; output channel, however I am facing problem everytime i &lt;br&gt;
&amp;gt; run the program.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; my program is as below:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ao = analogoutput('nidaq','Dev1');&lt;br&gt;
&amp;gt; addchannel(ao,1)&lt;br&gt;
&amp;gt; set(ao,'SampleRate',150);&lt;br&gt;
&amp;gt; set(ao,'TriggerType','Immediate');&lt;br&gt;
&amp;gt; putdata(ao,3.5)&lt;br&gt;
&amp;gt; start(ao)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ???analog output subsystem of this device does not support &lt;br&gt;
&amp;gt; clocked generation, must use PUTSAMPLE to output data.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; while I change the PUTDATA to PUTSAMPLE command, another &lt;br&gt;
&amp;gt; error will shown&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ???only 1 sample per channel can be output&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am wondering how to settle the above problems, however I &lt;br&gt;
&amp;gt; couldn't find out a solution. Could any one help on this? &lt;br&gt;
&amp;gt; Besides that, i would like to have a simple program that &lt;br&gt;
&amp;gt; can be used to output data to analog output channel.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank a lot...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; regards,&lt;br&gt;
&amp;gt; yeelin</description>
    </item>
    <item>
      <pubDate>Fri, 31 Oct 2008 20:20:18 -0400</pubDate>
      <title>Re: outputting data with NI USB-6008 in MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154944#608429</link>
      <author>ida jia</author>
      <description>I try it again using PUTSAMPLE instead of putsat and start, it works then&lt;br&gt;
&quot;ida jia&quot; &amp;lt;ruting.jia@utsa.edu&amp;gt; wrote in message &amp;lt;gefk8a$lcc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; 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.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank you so much.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Yeelin Chong&quot; &amp;lt;yeelin_e0@hotmail.com&amp;gt; wrote in message &amp;lt;fahim1$dt2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hi,&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I am trying to outputting data with NI USB-6008 analog &lt;br&gt;
&amp;gt; &amp;gt; output channel, however I am facing problem everytime i &lt;br&gt;
&amp;gt; &amp;gt; run the program.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; my program is as below:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ao = analogoutput('nidaq','Dev1');&lt;br&gt;
&amp;gt; &amp;gt; addchannel(ao,1)&lt;br&gt;
&amp;gt; &amp;gt; set(ao,'SampleRate',150);&lt;br&gt;
&amp;gt; &amp;gt; set(ao,'TriggerType','Immediate');&lt;br&gt;
&amp;gt; &amp;gt; putdata(ao,3.5)&lt;br&gt;
&amp;gt; &amp;gt; start(ao)&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ???analog output subsystem of this device does not support &lt;br&gt;
&amp;gt; &amp;gt; clocked generation, must use PUTSAMPLE to output data.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; while I change the PUTDATA to PUTSAMPLE command, another &lt;br&gt;
&amp;gt; &amp;gt; error will shown&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ???only 1 sample per channel can be output&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I am wondering how to settle the above problems, however I &lt;br&gt;
&amp;gt; &amp;gt; couldn't find out a solution. Could any one help on this? &lt;br&gt;
&amp;gt; &amp;gt; Besides that, i would like to have a simple program that &lt;br&gt;
&amp;gt; &amp;gt; can be used to output data to analog output channel.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Thank a lot...&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; regards,&lt;br&gt;
&amp;gt; &amp;gt; yeelin</description>
    </item>
  </channel>
</rss>

