How to read data continuously?

Discussion in 'MATLAB' started by Si Ping Wang, Jun 22, 2010.

  1. Si Ping Wang

    Si Ping Wang Guest

    I am now reading analog input from a NI board. I am able to get a certain number of samples within a specified period, but how to get the data continuously and display them on a graph? Thanks.

    Si Ping Wang, Jun 22, 2010
    1. Advertisements

  2. Hi Siping,

    There is a new demo with Data Acquisition Toolbox in R2010a that shows this.
    It is called: Continuous Acquisition Using Analog Input

    To see it, in MATLAB R2010a and later execute:

    See especially the section: Continuously Acquire Data until a Particular Condition Occurs

    which uses
    to set up the continuous acquisition.
    A timer callback is also demonstrated. It looks for a particular condition and then stops the acquisition.

    Via the web view the demo here:

    All the best,

    Sherryl Radbil, Jun 23, 2010
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.