LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform averaging

Hello.

 

I have to acquire noisy sine signal (about 30 kHz) with NI PXI-5105 60 MS/s digitizer. I tried to make a VI using LabVIEW help but got the following result:

 

graph.gif

 

Apparently, it is necessary to make waveform averaging but I don't know how to do such a thing.

 

Here shows how signal is indicated:

current_img_part.png

 

I found here the following example from , but could not use it:

example.png

There is a type mismatch:

incomp.png

 

Is there somewhere a detailed description of the LabVIEW's waveform / complex waveform / … data types with examples? I so stupid and standard LabVIEW help did not help me.

 

Thanks in advance for your help and sorry for my poor english.

 

 

0 Kudos
Message 1 of 12
(3,841 Views)

Hi LVU,

 

a waveform apparently is more than a simple 1D array…

 

Can you switch your NIScopeRead from "1D DBL" to "Waveform"? Then you could adapt RavensFan's example easily!

 

LabVIEW comes with a function palette dedicated to waveforms (like this). Those functions also have their example VIs…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 12
(3,811 Views)

Could you tell us what characteristic of your waveform you want to measure?

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 12
(3,801 Views)

I changed the setting on the "1D WDT", but got the same "jumping" waveform that is shown above without averaging. Seems like the divisor is always "1" and the summation in "for loop" doesn't work. I have to remake the loop but so far I didn't get. Here I need a deep knowledge of debugging in LabVIEW.

0 Kudos
Message 4 of 12
(3,793 Views)

just trigger at zero and adding up values migth not help you much ... unless you want the DC value 😄

... again: What do you need (or expect 😉 ) to measure (or see)?

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 12
(3,779 Views)

I have to measure the RMS voltage and frequency of the signal.

0 Kudos
Message 6 of 12
(3,778 Views)

Try:

Extract Single Tone Information VI

Owning Palette: Waveform Measurements VIs

Requires: Full Development System

Takes a signal in, finds the single tone with the highest amplitude or searches a specified frequency range, and returns the single tone frequency, amplitude, and phase. The input signal can be real or complex and single-channel or multichannel. Wire data to the time signal in input to determine the polymorphic instance to use or manually select the instance.

 

and

 

Averaged DC-RMS VI

Owning Palette: Waveform Measurements VIs

Requires: Full Development System

Calculates the DC and RMS values of an input waveform or array of waveforms. This VI is similar to the Basic Averaged DC-RMS VI, but this VI gives more precise control over the individual DC and RMS calculations.

 

 

Do you really want the RMS or the amplitude of the 30kHz signal??

 

Have a look at the (power) spectrum of your signal ..  will help you identify (and eliminate)  the noise.

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 7 of 12
(3,773 Views)

Thanks. I will try to take your advice in the near future.

 

Additional problematic task is to show the signal on the front panel as it is, with the noise, but not bouncing/"jumping" waveform. It seems that the NI PXI-5105 scope does not have enough sampling rate. Using an external scope I got quite satisfactory signal representation for my task:

 

SCR08.PNG

 

Analog scope gives a smoother waveform, of course.

I found the persistent mode with adjustable hold time in the "Scope Soft Front Panel" application, but it seems that to implement such a thing in VI is very difficult.

 

0 Kudos
Message 8 of 12
(3,767 Views)

trigger at 50% 🙂

 

or in addition  use the intensity graph and add the traces (decimated to pixel width) with an overall exponential decay

here is an old forum example from altenbach found here , with a minor change 😉

MemoryGraph05.png

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 9 of 12
(3,750 Views)

Hello.

 

What does "trigger at 50%"?

 

Thanks for intensity graph example. It's awesome! Quite a complicated VI. To adapt it to my task will take several years )

 

Extract Single Tone Information VI gives values ​​bouncing (The same results that are obtained using niScope Read Measurement VI and Statistics Express VI)

Averaged DC-RMS VI gives an empty array/graph. I will try to change the parameters to get the results.

0 Kudos
Message 10 of 12
(3,720 Views)