LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shift registers

Is it possible to build a scaleable "memory" with shift registers? I want to
choose an optional number in a running average filter.

Regard
Frode Efteland
0 Kudos
Message 1 of 2
(2,457 Views)
Yes it is,

You can set an array as input into the shift register, and increment the array from within the loop. It`s recommended to make the array a fixed size (if you have a known maximum size) and then replace values within the array rather than increasing the size of the array every iteration. This will speed up the operation with large amounts of data. You will need an extra way of keeping track of the number of "valid" values within the array though.

Assuming the entire array you`re interested in is in the shift register, you can choose whichever sub-set you wich within the loop.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 2 of 2
(2,457 Views)