<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165369</link>
    <title>MATLAB Central Newsreader - Data Acquisition with multiple NI PXI-4472 boards</title>
    <description>Feed for thread: Data Acquisition with multiple NI PXI-4472 boards</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>Mon, 10 Mar 2008 11:52:17 -0400</pubDate>
      <title>Data Acquisition with multiple NI PXI-4472 boards</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165369#419969</link>
      <author>Christopher </author>
      <description>I have a NI PXI chassis with several PXI-4472 boards&lt;br&gt;
installed. Using the Data Acquisition Toolbox (v2.11 Matlab&lt;br&gt;
R2007b) I'd like to capture data from channels that span&lt;br&gt;
several boards. &lt;br&gt;
&lt;br&gt;
The code I have at the moment initialises one of the&lt;br&gt;
PXI-4472 cards like this : &lt;br&gt;
&lt;br&gt;
ai = analoginput('nidaq','PXI1Slot2');&lt;br&gt;
addchannel(ai, 1:2);&lt;br&gt;
&lt;br&gt;
In labview I would be able to specify a range of boards, for&lt;br&gt;
example, 'PXI1Slot2, PXI1Slot3' but this does not work as a&lt;br&gt;
parameter to 'analoginput()' . &lt;br&gt;
&lt;br&gt;
Does anybody have any suggestions of how I can&lt;br&gt;
simultaneously acquire 8 channels from PXI1Slot2 and 8 from&lt;br&gt;
PXI1Slot3 ? &lt;br&gt;
&lt;br&gt;
Thank you for your help, &lt;br&gt;
&lt;br&gt;
Chris Lowis</description>
    </item>
    <item>
      <pubDate>Tue, 11 Mar 2008 09:43:02 -0400</pubDate>
      <title>Re: Data Acquisition with multiple NI PXI-4472 boards</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165369#420146</link>
      <author>Christopher </author>
      <description>I managed to get multiple channel acquisition spanning&lt;br&gt;
multiple boards working using the NI-DAQmx Tools available&lt;br&gt;
from the NI website&lt;br&gt;
(&lt;a href=&quot;http://zone.ni.com/devzone/cda/tut/p/id/3005)&quot;&gt;http://zone.ni.com/devzone/cda/tut/p/id/3005)&lt;/a&gt; and the&lt;br&gt;
following code :&lt;br&gt;
&lt;br&gt;
Physical_Channel = 'PXI1Slot2/ai0:7, PXI1Slot3/ai0:7';&lt;br&gt;
Minimum_Value = -10;&lt;br&gt;
Maximum_Value = 10;&lt;br&gt;
Sample_Rate = 2000;&lt;br&gt;
Measurement_Time = 3;&lt;br&gt;
Samples_per_Channel = Sample_Rate * Measurement_Time;&lt;br&gt;
Timeout = -1;&lt;br&gt;
&lt;br&gt;
[data, time, initial_time, timed_out] =&lt;br&gt;
AcqNUpdates(Physical_Channel,                     &lt;br&gt;
Minimum_Value, Maximum_Value, Samples_per_Channel,         &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Sample_Rate, Timeout);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
It seems to me, however, that this toolbox is a series of&lt;br&gt;
interfaces into compiled &quot;.dll&quot; files, and that, for&lt;br&gt;
example, the callback/continuous calculation functions of&lt;br&gt;
the data acquisition toolbox are not available through&lt;br&gt;
MATLAB code. Is this correct ? &lt;br&gt;
&lt;br&gt;
I'd like to be able to do continuous processing of my&lt;br&gt;
acquired data, and update a MATLAB plot window with the&lt;br&gt;
results using all 16 available channels on my two PXI-4472&lt;br&gt;
cards. Is this possible with either the NI-DAQmx tools, or&lt;br&gt;
the Data Acquisition Toolbox ? &lt;br&gt;
&lt;br&gt;
Thank you for any help, &lt;br&gt;
&lt;br&gt;
Chris </description>
    </item>
    <item>
      <pubDate>Wed, 12 Mar 2008 11:28:01 -0400</pubDate>
      <title>Re: Data Acquisition with multiple NI PXI-4472 boards</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165369#420416</link>
      <author>Sherryl Radbil</author>
      <description>Hi Chris,&lt;br&gt;
Your statement in the 1st post that with Data Acquisition&lt;br&gt;
Toolbox (DAT) you cannot create one analoginput object that&lt;br&gt;
spans 2 devices is correct.&lt;br&gt;
But you can created an object for each:&lt;br&gt;
&lt;br&gt;
ai2 = analoginput('nidaq','PXI1Slot2');&lt;br&gt;
ai3 = analoginput('nidaq','PXI1Slot3');&lt;br&gt;
&lt;br&gt;
Many of the DAT commands take an array of objects:&lt;br&gt;
start([ai2 ai3])&lt;br&gt;
They will not start simultaneously, but it will be pretty&lt;br&gt;
close and each data point you will get with getdata has a&lt;br&gt;
timestamp so you can correlate.&lt;br&gt;
&lt;br&gt;
Look at abstime on the getdata help page&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/daq/getdata.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/daq/getdata.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
All the best,&lt;br&gt;
Sherryl</description>
    </item>
  </channel>
</rss>

