LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shifting data into a array

Hi, im wanting to shift data from one column to another in a 2D array. So basically, every time i get an update of data. it passes it to the next column. My data is in seven rows of elements within the array. Ive done just cant remember how to do it, i believe you use shift registers to do it.

 

Stu

0 Kudos
Message 1 of 3
(2,664 Views)

you use the shift reister to hold you data and the rotate array vi to shift the elements ... see theXY Chart.vi example (or smart Buffer example.vi )

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 2 of 3
(2,658 Views)

Are you trying to take a 1D array and add it to the end of an existing 2D array?

 

You can do it like this, and use a shift register to carry the 2D array from test to test.

 

data.jpg

 

Otherwise, I don't know what you mean.

Message Edited by jcarmody on 10-22-2009 12:15 PM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 3 of 3
(2,628 Views)