<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246924</link>
    <title>MATLAB Central Newsreader - real-time data acquisition from a custom device</title>
    <description>Feed for thread: real-time data acquisition from a custom device</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, 18 Mar 2009 02:14:29 -0400</pubDate>
      <title>real-time data acquisition from a custom device</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246924#635733</link>
      <author>&#50980;&#50689;&#50864;</author>
      <description>I try to receive and process sound data frame by frame from a custom&lt;br&gt;
audio input board with USB interface in MATLAB. I have used this board&lt;br&gt;
through windows drivers and C APIs successfully in C world.&lt;br&gt;
&lt;br&gt;
At first, I made a data receiving thread with C-MEX to copy frame&lt;br&gt;
buffers and call matlab functions to process and visualize the data.&lt;br&gt;
But, I realized that mex functions like mexCallMATLAB are not thread-&lt;br&gt;
safe functions. I had no idea to proceed.&lt;br&gt;
&lt;br&gt;
Next, I noticed that the DAQ toolbox adaptor kit may work. Here, I don?&lt;br&gt;
t want to implement complicated timing codes. Just need places for&lt;br&gt;
Init, Start, Stop function and a thread for calling a MATLAB function&lt;br&gt;
with a sound frame.&lt;br&gt;
&lt;br&gt;
Do you have any idea or suggestion?&lt;br&gt;
Other fancy solutions are welcome.&lt;br&gt;
&lt;br&gt;
If the use of DAQ toolbox is best, I need simple examples or tutorials&lt;br&gt;
relevant to my problem.&lt;br&gt;
&lt;br&gt;
Thanks in advance.</description>
    </item>
    <item>
      <pubDate>Thu, 19 Mar 2009 12:36:01 -0400</pubDate>
      <title>real-time data acquisition from a custom device</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246924#636095</link>
      <author>Sherryl Radbil</author>
      <description>Hi,&lt;br&gt;
If your device adheres to the Windows MME interface&lt;br&gt;
(see &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa909811.aspx)&quot;&gt;http://msdn.microsoft.com/en-us/library/aa909811.aspx)&lt;/a&gt;&lt;br&gt;
it can be supported by Data Acquisition Toolbox. There are some limitations you can read about here:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/daq/f5-54943.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/daq/f5-54943.html&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-19SDX.html&quot;&gt;http://www.mathworks.com/support/solutions/data/1-19SDX.html&lt;/a&gt;&lt;br&gt;
The winsound interface constrains the sound card to up to 24 bits per sample,&lt;br&gt;
with the default set to 16. This help page gives more information &lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/daq/bitspersample.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/daq/bitspersample.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
If your device does adhere to Windows MME then you can see examples and documentation here:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/daq/daq.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/daq/daq.html&lt;/a&gt; &lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/products/daq/demos.html&quot;&gt;http://www.mathworks.com/products/daq/demos.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Sherryl</description>
    </item>
  </channel>
</rss>

