Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
real time plot in gui through daq

Subject: real time plot in gui through daq

From: vishwash saxena

Date: 21 Feb, 2011 21:22:14

Message: 1 of 6

hiii

i have a data acquisition card (adam card). i want to plot the data obtained by it in real time. help me please

Subject: real time plot in gui through daq

From: Paulo Silva

Date: 21 Feb, 2011 21:47:20

Message: 2 of 6

"vishwash saxena" wrote in message <ijul26$i61$1@fred.mathworks.com>...
> hiii
>
> i have a data acquisition card (adam card). i want to plot the data obtained by it in real
time. help me please

http://www.mathworks.com/matlabcentral/fileexchange/24294-simulink-signal-viewing-using-event-listeners-and-a-matlab-ui

Subject: real time plot in gui through daq

From: Phil Goddard

Date: 22 Feb, 2011 00:53:05

Message: 3 of 6


> i have a data acquisition card (adam card). i want to plot the data obtained by it in real time. help me please

Are you using the Data Acquisition Toolbox within MATLAB or one of the real-time products with Simulink?

If with Simulink then the example given may be of use, but if you're using DAQ Toolbox and MATLAB then it is not.
Rather you'll need to look at some of the examples in the DAQ Toolbox doc.

Phil.

Subject: real time plot in gui through daq

From: Rob Purser

Date: 28 Feb, 2011 16:16:03

Message: 4 of 6

Hi,

The Data Acquisition Toolbox has the exact capability you want built in. There's a demo called "Using Callback Functions to Create Live Displays and Analysis" that is part of the product that teaches you how to do this.

Also, check out the "daqscope" demo that is part of the toolbox for a real world example of plotting the data as it arrives. It's more complex, but shows many of the techniques in a full application.

-Rob Purser
Manager of Test and Measurement
Mathworks

Subject: real time plot in gui through daq

From: Kit Mai

Date: 25 May, 2012 11:17:07

Message: 5 of 6

"Rob Purser" <rob.purser@mathworks.com> wrote in message <ikgho3$c0$1@fred.mathworks.com>...
> Hi,
>
> The Data Acquisition Toolbox has the exact capability you want built in. There's a demo called "Using Callback Functions to Create Live Displays and Analysis" that is part of the product that teaches you how to do this.
>
> Also, check out the "daqscope" demo that is part of the toolbox for a real world example of plotting the data as it arrives. It's more complex, but shows many of the techniques in a full application.
>
> -Rob Purser
> Manager of Test and Measurement
> Mathworks


Hey Rob,

Can you give me the link of this demo called "Using Callback Functions to Create Live Displays and Analysis" ?

I couldn't find it.....it sounds useful to me.

Thanks a lot!

Subject: real time plot in gui through daq

From: Breanna

Date: 27 Jan, 2013 01:00:09

Message: 6 of 6

"Rob Purser" <rob.purser@mathworks.com> wrote in message <ikgho3$c0$1@fred.mathworks.com>...
> Hi,
>
> The Data Acquisition Toolbox has the exact capability you want built in. There's a demo called "Using Callback Functions to Create Live Displays and Analysis" that is part of the product that teaches you how to do this.
>
> Also, check out the "daqscope" demo that is part of the toolbox for a real world example of plotting the data as it arrives. It's more complex, but shows many of the techniques in a full application.
>
> -Rob Purser
> Manager of Test and Measurement
> Mathworks

Hi Rob, I know this was an old post, but I hoped you might be able to help. I am inputing force data from an NI box using data acquisition toolbox. My aim is to plot a sinewave on the screen, and then input realtime force data so that a subject can trace this waveform on the screen and see real time feedback. I've managed to figure out (for the most part) how to do this, but I know there is some delay between when i press the transducer and when the data appears on the screen. I have been told in the past that Matlab is too slow for me to be able to plot real time data, and that I should learn LavView or C++. I've roughly estimated the delay as about 30ms. Does this sound accurate, or are there ways I can minimize the delay? Also, I am beginning to tinker with the osciliscope gui, but I'm not sure if this will present the same problem? I'll also have to figure out how to get the
gui to just be a screen with a sine wave and to display in real time so that someone can trace this.

Are you aware of the duration of delay for other systems such as LabView etc... Thanks for any help.
Bree

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us