Re: Scrolling data to display window [message #12494] |
Thu, 13 August 1998 00:00 |
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|