LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to suppress the first several average temperature readings.

I am a student just learning to use LabVIEW. I have written a VI that generates a random number set within a range. The first 2 numbers that pass through my shift registers is sewing my data for my average. Can I suppress these first two numbers in some way or should I be trying something besides a shift register.

Thanks,

Scott
0 Kudos
Message 1 of 4
(2,515 Views)
The reason you are having the problem with the first two readings is that the shift register is unitialized. You could intialize it to some random value like you do the temperature but I think the easiest is to use the point-by-point mean function inside the loop. Here's a modified version.
0 Kudos
Message 2 of 4
(2,505 Views)
Thanks Dennis,

I just knew it was something easy that I was overlooking. I do tend to try to make it more difficult than it really is.

Thanks,

Scott
0 Kudos
Message 3 of 4
(2,497 Views)
Dennis,

One more point. I was initializing the shift registers with a value of 70 degrees when I was using a constant for the range of 69 to 73 but I changed the VI to allow my users to input the range and thats when things went downhill.

Thanks for giving me a push back uphill.

Scott
0 Kudos
Message 4 of 4
(2,496 Views)