LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PXIe 7996R labview averaging

Hi,I have a problem in averaging on my labview problem,I just couldn't manage to average the waveform generated from signal generator.Do you know I should I do it and what kind of way I am supposed to use,cause my way doesn't work.If I generate a sine signal from signal generator,the averaging waveform is always a straight line whose value keeps changing.

This is the block diagram and result I got.

Thanks 

Download All
0 Kudos
Message 1 of 6
(3,026 Views)

Hi Ultrasound,

 

It is more difficult to understand what is going on in the code and what you are trying to achieve by the look of pictures, could you post your project files?

 

Are you trying to get a moving average of a waveform between two particular points?

Regards,

Ben Clark
0 Kudos
Message 2 of 6
(2,981 Views)

Hello,

 

I am trying to program the flexrio as an oscilloscope, I am basically trying to average the RF signal to cut out the noise. I am new to using the Flexrio and any help on the matter will be very helpful. Thank you. 

0 Kudos
Message 3 of 6
(2,969 Views)

@Ultrasound wrote:

Hi,I have a problem in averaging on my labview problem,I just couldn't manage to average the waveform generated from signal generator.Do you know I should I do it and what kind of way I am supposed to use,cause my way doesn't work.If I generate a sine signal from signal generator,the averaging waveform is always a straight line whose value keeps changing.

This is the block diagram and result I got.

Thanks 



You're doing a few things incorrectly... including your "averaging":

 

Untitled.png

All you're doing in above section is repeating same averaging n number of times!  If you just want one average of entire waveform data at the end, you would simply remove that FOR loop and extrace number of averaged data from the array (but even that seems pointless regarding its functionality - perhaps you're meaning to do a "running-average" of data that are being acquired rather than doing an average at the end?... you'd have to first tell us what you're wanting to do)

 

 

(By the way, typecasting is done much easily using LabVIEW function as shown below)

 

Untitled.png

--------------------------------------------------------

New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI


0 Kudos
Message 4 of 6
(2,955 Views)

Hello,

 

Thank you very much for your kind reply. I am indeed looking to do a running average of the waveform acquired inorder to reduce the nosie level, and also to increase the resolution of the data, as the bit depth is related to the number of averages by 1/2log(n), n being the number of averages.

 

Thank you.

0 Kudos
Message 5 of 6
(2,937 Views)

Hello,

 

Thank you very much for your kind reply. I am indeed looking to do a running average of the waveform acquired inorder to reduce the nosie level, and also to increase the resolution of the data, as the bit depth is related to the number of averages by 1/2log(n), n being the number of averages.

 

Thank you.

0 Kudos
Message 6 of 6
(2,897 Views)