Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69574

Storing some values but not all

$
0
0

Hi all,

 

I have encountered difficulty in implementing this:  storing some values from certain loop iterations as reference, and use the reference to subtract all new values generated from later loop iterations. 

 

For example:

My sensor generates an array (size: 768) per timed loop iteration.

 

I want to generate a background reference array from iteration #201 to iteration #220. Currently I am using stacked shift register (20 shift regsitered stacked) to store the array generated from my sensor. The final background reference array is averaged over 20 arrays from shift registees:  

 

background reference array = (array 1+ array 2 +...array 20)/20

 

I want to subtract this background reference array from all subsequently collected array.

 

new array - (array 1+ array 2 +...array 20)/20

 

The new array can by any array from a later iteration of the timed loop (#221 or beyond).

 

In other words, I am having trouble generating a fixed reference array for normalizing the real time data I got. And the fixed reference array is collected from the same channel as the real time data.

 

How do I do this? (I tried the case structure plus stacked shift register, but it does not work...)

 

Thanks!

 

 

 


Viewing all articles
Browse latest Browse all 69574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>