LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mean of waveform

Hi,

I am using LabVIEW 6.1 and I want to form the mean and standard deviation of a waveform i acquire using the acquire waveforms.vi  (settings: scan rate 10 and number of samples 10  ==> 1 sec for 1array consisting of 10  Datapoints).
I would like to acquire for 10 seconds or something like this and then form the mean and standard deviation of the 10*10 datapoints. I am get  using waveform component.vi, std deviation and variance.vi. To create an array of 100 points i used the insert into array.vi with shiftregisters. The very first time i run the vi it does what it should but after stopping the acquisition and starting it again the data old data is still in my array and i form the mean of 200 points and so on. How can i make  sure there is no old data in the array when i stop running the vi and start a new acquisition ?
Thanks for any help

Philipp

0 Kudos
Message 1 of 4
(3,459 Views)

Probably you are not initializing the shift register with an empty array, at the beginning of the Loop

Wire an 'empty array' constant to the initialization point of shift register ( form outside the loop, at the beginning of the loop)

Regards,

Dev

0 Kudos
Message 2 of 4
(3,442 Views)
look at attached pic
0 Kudos
Message 3 of 4
(3,439 Views)
Thanks a lot. It works !

0 Kudos
Message 4 of 4
(3,424 Views)