comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Scrolling data to display window
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Scrolling data to display window [message #12494] Thu, 13 August 1998 00:00
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Paul wrote:
>
> What I want to do is to display the current 1D array as a magnitude
> intensity 'strip' on screen and create a rolling display window.
> Each data set consists of 256 samples of magnitude (values +/- 100 max)
>
> My first guess is to create a 2D array data magnitude & time, update this
> array and for each 'tick' interval
> re-display the whole array. This works, but I feel its an unnecessary waste
> of CPU, memory etc.
>

One possible solution which comes to mind would be to create an
initial 2D array with this initial data, and then at each "tick"
interval you could use SHIFT() to shift the array to the left,
then insert the new data on the right, and then replot. This
should be pretty fast, and you can always make the time resolution
something the user can adjust.

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Porting IDL
Next Topic: Re: c compilers on Alpha/NT for call_external

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 19:23:16 PDT 2025

Total time taken to generate the page: 1.60569 seconds