From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Estimate AC/DC of a sine signal

Hi,

 

i capture an analog signal (a sine) with labview and i want to extract several informations from the signal like : Amplitude, offset, peak value, frequency, etc.

 

I almost get what i want, but i can't get the correct value of AC / DC components of my signal.

 

For example, i receive a signal like this one :

y = 1.25 + 1.25 * sin (2*Pi*3000*t).   

 

I except the following value :

f = 3000 Hz  (I got it)

Peak = 2.5 (I got it)

Ampl = 2.5 (I got It)

DC = 1.25 (I got it)

AC = 1.25    and there is the problem. I don't have this value.

 

Maybe i forgot a vi in my design, or maybe labview can't process this value or maybe i'm do it wrong because i don't exactly talk about AC value.

 

0 Kudos
Message 1 of 6
(3,247 Views)

Please define your terms.

 

What is the definition of the "AC" for which you do not get the value you expect?  It is not possible to determine what you want from your example because the value 1.25 is assigned to two different components.

 

Posting your VI would also help.

 

Lynn

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

I think that you are looking for the AC value without DC offset, right?

 

You can calculate DC value of the signal with a Basic DC-RMS module, rest this value from the signal to get a pure AC signal and calculate RMS value of this signal with another Basic DC-RMS vi.

 

I hope this solve your problem.

 

Carlos

0 Kudos
Message 3 of 6
(3,147 Views)

@mhed wrote:

Hi,

 

i capture an analog signal (a sine) with labview and i want to extract several informations from the signal like : Amplitude, offset, peak value, frequency, etc.

 

I almost get what i want, but i can't get the correct value of AC / DC components of my signal.

 

For example, i receive a signal like this one :

y = 1.25 + 1.25 * sin (2*Pi*3000*t).   

 

I except the following value :

f = 3000 Hz  (I got it)

Peak = 2.5 (I got it)

Ampl = 2.5 (I got It)

DC = 1.25 (I got it)

AC = 1.25    and there is the problem. I don't have this value.

 

Maybe i forgot a vi in my design, or maybe labview can't process this value or maybe i'm do it wrong because i don't exactly talk about AC value.

 


Look at the terms you reported and compare to your equation. There is a "DC=1.25" and an "Ampl=2.5" in your list. Your equation describes a sine wave with an amplitude of 2.5 units (peak-to-peak) centered at 1.25 units. I believe you are trying to solve for an extra term!

 

Jeff

Jeffrey Zola
0 Kudos
Message 4 of 6
(3,132 Views)

You two do realize this thread was from back in January...


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(3,124 Views)

@crossrulz wrote:

You two do realize this thread was from back in January...


And your point is what? Smiley Wink

 

Trying to get my post count out of newbie territory! Smiley LOL

Jeffrey Zola
0 Kudos
Message 6 of 6
(3,119 Views)