LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strip data array like Strip chart

Hi,

 

I'm wondering is there any example or hint that I can use to generate a strip data array like strip chart

Example; I wanted to update a new data and remove old data within 1000 data array. So new data will be placed in n+1, while old will be removed as n-1. 

 

Thanks,

0 Kudos
Message 1 of 4
(2,393 Views)

What you're looking for is called a circular buffer. You can create one using Initialize Array (to create an array of the appropriate size), Replace Array Subset (to switch out elements) and perhaps the Quotient and Remainder function, to determine the index to replace.


GCentral
0 Kudos
Message 2 of 4
(2,373 Views)

Or just use the Data Queue PtByPt VI.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 4
(2,357 Views)

Well, you learn something new every day...


GCentral
0 Kudos
Message 4 of 4
(2,348 Views)