Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: collecting data from NI devices (Session based)
Replies: 2   Last Post: Jul 29, 2013 4:29 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Rouzbeh

Posts: 9
Registered: 9/7/12
collecting data from NI devices (Session based)
Posted: Jun 12, 2013 11:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,

I have a general question. Is there a way to collect data from only ONE channle in a session based data acquisition format from NI devices (assuming that you have multiple channels added to the same session.

For example:

s = daq.createSession('ni');
s.AddAnalogInputChannel('cDAQ1Mod1','ai0','Voltage');
s.AddAnalogInputChannel('cDAQ1Mod1','ai1','Voltage');
.
.
.

now when i use either methods for collecting data
s.startBackground();
or
s.startForeground();

Matlab collects the data from all channels. I would like to know if it is possible to collect the data only from one channel at a time. I would also like to know if I can use 'peekdata' to update a graph that plots data acquired from that single channel (and updates the graph instead of replacing with new data as with using a listener).

Any help or ideas would be greatly appreciated.

Ross




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.