<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Advanced MATLAB: Data acquisition in MATLAB</title>
	<link>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/</link>
	<description>&#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=969735&#38;objectType=author"&#62;Bob&#60;/a&#62;, &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author"&#62;Brett&#60;/a&#62; &#38; &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author"&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<pubDate>Sun, 22 Nov 2009 23:56:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12947</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Fri, 21 Nov 2008 17:17:07 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12947</guid>
		<description>Surbhi,

check out

&gt;&gt;UIPUTFILE

-Doug</description>
		<content:encoded><![CDATA[<p>Surbhi,</p>
<p>check out</p>
<p>>>UIPUTFILE</p>
<p>-Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Surbhi</title>
		<link>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12946</link>
		<dc:creator>Surbhi</dc:creator>
		<pubDate>Fri, 21 Nov 2008 10:44:22 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12946</guid>
		<description>Hi Doug,

I am saving the data that i obtain from my NI DAQ card in a .daq file. This is the code snippet for it.
================================
ai.LogToDiskMode = 'index';
ai.LoggingMode = 'Disk&#38;Memory';
ai.LogFileName = 'data.daq';
ai.logging;
================================

And this stores the file by default in the working directory. I was wondering if there is a way where the user can specify the location of the file he would like to store it in via a GUI.

Thanks for all your help Doug !
Appreciate it.</description>
		<content:encoded><![CDATA[<p>Hi Doug,</p>
<p>I am saving the data that i obtain from my NI DAQ card in a .daq file. This is the code snippet for it.<br />
================================<br />
ai.LogToDiskMode = &#8216;index&#8217;;<br />
ai.LoggingMode = &#8216;Disk&amp;Memory&#8217;;<br />
ai.LogFileName = &#8216;data.daq&#8217;;<br />
ai.logging;<br />
================================</p>
<p>And this stores the file by default in the working directory. I was wondering if there is a way where the user can specify the location of the file he would like to store it in via a GUI.</p>
<p>Thanks for all your help Doug !<br />
Appreciate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Surbhi</title>
		<link>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12934</link>
		<dc:creator>Surbhi</dc:creator>
		<pubDate>Fri, 14 Nov 2008 00:04:54 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12934</guid>
		<description>Thank you Doug ! :)</description>
		<content:encoded><![CDATA[<p>Thank you Doug ! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12933</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 12 Nov 2008 16:20:26 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12933</guid>
		<description>Surbhi,

The term "real time" means a lot of things to a lot of people.  I am going to assume you mean "soft real time", basically Windows is doing its best to keep up, but it might not be every clock cycle.  If you are looking for hard real time, then you would want xPC.

Anyways, you could use a timer object to go through the above process every tenth of a second, query the data and so on.  If you combine the ideas in this video with the ideas here:

http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/

You should be doing well.

-Doug</description>
		<content:encoded><![CDATA[<p>Surbhi,</p>
<p>The term &#8220;real time&#8221; means a lot of things to a lot of people.  I am going to assume you mean &#8220;soft real time&#8221;, basically Windows is doing its best to keep up, but it might not be every clock cycle.  If you are looking for hard real time, then you would want xPC.</p>
<p>Anyways, you could use a timer object to go through the above process every tenth of a second, query the data and so on.  If you combine the ideas in this video with the ideas here:</p>
<p><a href="http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/" rel="nofollow">http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/</a></p>
<p>You should be doing well.</p>
<p>-Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Surbhi</title>
		<link>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12930</link>
		<dc:creator>Surbhi</dc:creator>
		<pubDate>Wed, 12 Nov 2008 02:41:20 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12930</guid>
		<description>Hi Doug !!

Firstly thanks so much for this great effort on your part for creating these videos. They are *VERY* helpful :).

I have a question, i am using a DAQ and i need to plot the data in real time and not after the data has been collected.
Is there a way to do this ?

Thanks for your help !</description>
		<content:encoded><![CDATA[<p>Hi Doug !!</p>
<p>Firstly thanks so much for this great effort on your part for creating these videos. They are *VERY* helpful :).</p>
<p>I have a question, i am using a DAQ and i need to plot the data in real time and not after the data has been collected.<br />
Is there a way to do this ?</p>
<p>Thanks for your help !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gamal</title>
		<link>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12901</link>
		<dc:creator>Gamal</dc:creator>
		<pubDate>Fri, 10 Oct 2008 19:12:15 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12901</guid>
		<description>Thank u Doug for ur fast reply. yes I have an NI-DAQ USB 6008. and I have an Analogue voltage sinusoidal signal that have a maximum frequency of 500KHz which means i want a minimum sampling of 1 Mhz. I want to analyze this signal using matlab( getting FFT) real time. can this be done by using the ADC in NI-DAQ or i have to get another ADC. if so how can i interface it with matlab. thanks alot Doug and I am waiting for your reply.
Gamal</description>
		<content:encoded><![CDATA[<p>Thank u Doug for ur fast reply. yes I have an NI-DAQ USB 6008. and I have an Analogue voltage sinusoidal signal that have a maximum frequency of 500KHz which means i want a minimum sampling of 1 Mhz. I want to analyze this signal using matlab( getting FFT) real time. can this be done by using the ADC in NI-DAQ or i have to get another ADC. if so how can i interface it with matlab. thanks alot Doug and I am waiting for your reply.<br />
Gamal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12893</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Mon, 06 Oct 2008 13:19:28 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12893</guid>
		<description>Gamal,

That is something that can be done.  Do you have the Data Acquisition toolbox?  What have you tried, can you connect to the board?  What board is it?

Doug</description>
		<content:encoded><![CDATA[<p>Gamal,</p>
<p>That is something that can be done.  Do you have the Data Acquisition toolbox?  What have you tried, can you connect to the board?  What board is it?</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gamal</title>
		<link>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12891</link>
		<dc:creator>Gamal</dc:creator>
		<pubDate>Sun, 05 Oct 2008 16:17:00 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12891</guid>
		<description>Dear Sir,
I am working in a project that i use an Analogue to digital converter HW to transfer analogue electrical data to digital. I want to read this digital these data via Matlab using USB port in order to get its FFT. I would be very glad if you tell me how to do that. thanks alot for your help.
Gamal</description>
		<content:encoded><![CDATA[<p>Dear Sir,<br />
I am working in a project that i use an Analogue to digital converter HW to transfer analogue electrical data to digital. I want to read this digital these data via Matlab using USB port in order to get its FFT. I would be very glad if you tell me how to do that. thanks alot for your help.<br />
Gamal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pierre</title>
		<link>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12601</link>
		<dc:creator>pierre</dc:creator>
		<pubDate>Thu, 28 Aug 2008 19:04:27 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12601</guid>
		<description>Hi sherryl and thank you for answering me,

Actually, I already tried before to use this property because I saw that it was what I wanted, nevertheless I got this error:

EDU&#62;&#62; AO = analogoutput('ueidaq','pwrdaq://dev0');
EDU&#62;&#62; addchannel (AO, 0);
EDU&#62;&#62; AO.OutOfDataMode = 'DefaultValue';
??? Error using ==&#62; daqdevice.subsasgn at 108
Error using ==&#62; daqdevice.set at 261
Invalid property: 'OutOfDataMode'.


Then I tried to skip it just by doing : 
EDU&#62;&#62; AO.Channel.DefaultChannelValue = 5;

And then I had no error but also no effect : I still got a value of "zero" instead of 5 volts between the two steps ..

I don't know why this property is not recongnized, do you ?
I am using the R2007a student version of matlab.

Thanks,
pierre</description>
		<content:encoded><![CDATA[<p>Hi sherryl and thank you for answering me,</p>
<p>Actually, I already tried before to use this property because I saw that it was what I wanted, nevertheless I got this error:</p>
<p>EDU&gt;&gt; AO = analogoutput(&#8217;ueidaq&#8217;,'pwrdaq://dev0&#8242;);<br />
EDU&gt;&gt; addchannel (AO, 0);<br />
EDU&gt;&gt; AO.OutOfDataMode = &#8216;DefaultValue&#8217;;<br />
??? Error using ==&gt; daqdevice.subsasgn at 108<br />
Error using ==&gt; daqdevice.set at 261<br />
Invalid property: &#8216;OutOfDataMode&#8217;.</p>
<p>Then I tried to skip it just by doing :<br />
EDU&gt;&gt; AO.Channel.DefaultChannelValue = 5;</p>
<p>And then I had no error but also no effect : I still got a value of &#8220;zero&#8221; instead of 5 volts between the two steps ..</p>
<p>I don&#8217;t know why this property is not recongnized, do you ?<br />
I am using the R2007a student version of matlab.</p>
<p>Thanks,<br />
pierre</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sherryl</title>
		<link>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12599</link>
		<dc:creator>Sherryl</dc:creator>
		<pubDate>Thu, 28 Aug 2008 18:10:39 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/12/04/advanced-matlab-data-acquisition-in-matlab/#comment-12599</guid>
		<description>In Response to Post #10 by Bryan - 
Hi Bryan,
By default the analog input object will acquire one second worth of data.
There are many ways to acquire more than that.
1. Set TriggerRepeat to greater than 0
2. Set SamplesPerTrigger to a larger number than the default, which matches the default SampleRate
3. Use either a TimerFcn or SamplesAcquiredFcn callback to restart the acquisition

All of these things are well documented here:
http://www.mathworks.com/access/helpdesk/help/toolbox/daq/daq.html
They can also be seen in the demos . Bring up MATLAB and type:
demo('toolbox','data acquisition')
at the command line (requires that Data Acquisition Toolbox already is installed).

Regards,
Sherryl</description>
		<content:encoded><![CDATA[<p>In Response to Post #10 by Bryan -<br />
Hi Bryan,<br />
By default the analog input object will acquire one second worth of data.<br />
There are many ways to acquire more than that.<br />
1. Set TriggerRepeat to greater than 0<br />
2. Set SamplesPerTrigger to a larger number than the default, which matches the default SampleRate<br />
3. Use either a TimerFcn or SamplesAcquiredFcn callback to restart the acquisition</p>
<p>All of these things are well documented here:<br />
<a href="http://www.mathworks.com/access/helpdesk/help/toolbox/daq/daq.html" rel="nofollow">http://www.mathworks.com/access/helpdesk/help/toolbox/daq/daq.html</a><br />
They can also be seen in the demos . Bring up MATLAB and type:<br />
demo(&#8217;toolbox&#8217;,'data acquisition&#8217;)<br />
at the command line (requires that Data Acquisition Toolbox already is installed).</p>
<p>Regards,<br />
Sherryl</p>
]]></content:encoded>
	</item>
</channel>
</rss>
