Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

real time plot in gui through daq

$
0
0
"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

Viewing all articles
Browse latest Browse all 19628

Trending Articles