From: Attila Kovacs on
"Sean " <sean.dewolski(a)nospamplease.umit.maine.edu> wrote in message <hr4ghp$253$1(a)fred.mathworks.com>...
> "Attila Kovacs" <kovacsek71.removeThis(a)gmail.com> wrote in message <hr4d89$o3h$1(a)fred.mathworks.com>...
> > I am collecting signal from two potentiometers via an NI A/D board. I would like to present real-time feedback by plotting one signal against the other (lissajous figure)always using one pair of datapoints. To this end I use peekdata function and plot the returned values. The problem I run into is that peekdata does not return every single value and therefore the display is jumping between the values returned by peekdata. I would appreciate any suggestions on how to make the display move smoother. This occurs regardless the sampling frequency.
>
> Look at the second input argument to peekdata:
> you're running:
> >>peekdata(obj, 1); %Here ai is your obj
> if you want 1000 samples:
> >>peekdata(obj, 1000);
>
> Of course this will return an error if there are <1000 samples.
> You can ensure available samples with:
> obj.SamplesAvailable
>
> Good Luck!



Thanks for your input Sean. Unfortunately this doesn't solve my problem as it will plot the number of datapoints I specify in the argument:
> >>peekdata(obj, 1000);
thus creating the effect of leaving a trail.
My goal is to always represent one point in time that continuously is updated by the peekdata function.
Any other ideeas? Thanks.