The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]
Eric Keller

Posts: 27
Registered: 12/9/10
Re: collecting data from NI devices (Session based)
Posted: Jul 29, 2013 4:29 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Rouzbeh " <> wrote in message <kpa5n7$4rb$>...
> 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. If you don't care about the data from the other channels, release the session and start over, or use the "removeChannel" method.

It's not clear if you want to keep the data from the second channel or not. I have code that triggers off of one channel and collects data from a number of channels. In which case, I just use normal Matlab matrix manipulation methods to extract the single channel.

Plotting the data as you get it in is done in any way that you set it up. If you want to add more data to the end of your previous plot, you can do that assuming you kept all of the data that you want to plot. I have thought about doing this for one of my applications, but I'm not sure if I have enough time in the listener to get everything plotted. I thought about using a timer routine to update the plots, but in my case that's starting to add too much complexity.

Note that there is a limit to how many times per second that a listener should be called. Matlab occasionally issues a warning that says it should be called no more than 20 times per second, which seems consistent with my experience. It still works if you call it a lot more often than that, but the user experience might not be what you want.

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.