Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Amplitude Time Ave. w/o Rectification

77 views
Skip to first unread message

Bret Cahill

unread,
Nov 5, 2010, 4:00:54 PM11/5/10
to
Is there anyway to get an amplitude of an ac signal averaged over time
w/o some kind of rectification?

This doesn't include the trivial, i.e., dc offsets or partial cycles.

The rectification could be analog, digital or software.


Bret Cahill

Vladimir Vassilevsky

unread,
Nov 5, 2010, 4:10:00 PM11/5/10
to

Bret Cahill wrote:

> Is there anyway to get an amplitude of an ac signal averaged over time
> w/o some kind of rectification?

Sure. Connect the AC to a heater and measure the temperature.

> This doesn't include the trivial, i.e., dc offsets or partial cycles.
> The rectification could be analog, digital or software.

What are you really trying to do?


Vladimir Vassilevsky
DSP and Mixed Signal Design Consultant
http://www.abvolt.com

Mark

unread,
Nov 5, 2010, 4:28:23 PM11/5/10
to

See "Understanding DSP" by R Lyons p 366 of the second edition..

Use a Hilbert to get Real and imaginary components of the signal
then, the envelope is found as the SQRT (R^2+i^2).

No rectification and no low pass filtering is needed.

I found this fascinating becasue as a kid playing with AM radios, i
began to understand the limitations of a diode detector and this is
the elegant solution...

Mark


glen herrmannsfeldt

unread,
Nov 5, 2010, 4:53:02 PM11/5/10
to
In comp.dsp Vladimir Vassilevsky <nos...@nowhere.com> wrote:

> Bret Cahill wrote:

>> Is there anyway to get an amplitude of an ac signal averaged over time
>> w/o some kind of rectification?

> Sure. Connect the AC to a heater and measure the temperature.

>> This doesn't include the trivial, i.e., dc offsets or partial cycles.
>> The rectification could be analog, digital or software.

You need some non-linear operation, which may or may not be
considered rectification. I believe the heater/temperature
measurement has been used for RF power measurements for many years.

-- glen

Vladimir Vassilevsky

unread,
Nov 5, 2010, 5:07:10 PM11/5/10
to

glen herrmannsfeldt wrote:

> In comp.dsp Vladimir Vassilevsky <nos...@nowhere.com> wrote:
>
>
>>Bret Cahill wrote:
>
>
>
>>>Is there anyway to get an amplitude of an ac signal averaged over time
>>>w/o some kind of rectification?
>
>
>
>>Sure. Connect the AC to a heater and measure the temperature.
>
>
>
>>>This doesn't include the trivial, i.e., dc offsets or partial cycles.
>>>The rectification could be analog, digital or software.
>
>
> You need some non-linear operation, which may or may not be
> considered rectification.

No nonlinear operations. Just multiply the AC by a synchronous reference.

> I believe the heater/temperature
> measurement has been used for RF power measurements for many years.

That doesn't do any rectification for sure.

VLV

Bret Cahill

unread,
Nov 5, 2010, 5:35:24 PM11/5/10
to

Positive heat with a positive signal and positive heat with a negative
signal can only be considered a form of rectification.


Bret Cahill


Bret Cahill

unread,
Nov 5, 2010, 5:44:38 PM11/5/10
to
> > Is there anyway to get an amplitude of an ac signal averaged over time
> > w/o some kind of rectification?
>
> > This doesn't include the trivial, i.e., dc offsets or partial cycles.
>
> > The rectification could be analog, digital or software.
>
> > Bret Cahill
>
> See "Understanding DSP" by R Lyons  p 366 of the second edition..
>
> Use a Hilbert to get Real  and imaginary components of the signal
> then, the envelope is found as the SQRT (R^2+i^2).

Sqrt of sum of squares = absolute value = rectification.

> No rectification and no low pass filtering is needed.
>
> I found this fascinating becasue as a kid playing with AM radios, i
> began to understand the limitations of a diode detector and this is
> the elegant solution...

Maybe a difference measurement of peak to peak of a known waveform
wouldn't be considered rectification.


Bret Cahill


Jamie

unread,
Nov 5, 2010, 6:59:28 PM11/5/10
to
You need a precision rectifier..
couple of op-amps and maybe 1 diode ..


http://sound.westhost.com/appnotes/an001.htm

jamie..

glen herrmannsfeldt

unread,
Nov 5, 2010, 5:51:43 PM11/5/10
to
In comp.dsp Vladimir Vassilevsky <nos...@nowhere.com> wrote:
(snip regarding rectiification, and I wrote)

>> You need some non-linear operation, which may or may not be
>> considered rectification.

> No nonlinear operations. Just multiply the AC by a synchronous reference.

Multiplying by other than a constant is a non-linear operation.



>> I believe the heater/temperature
>> measurement has been used for RF power measurements for many years.

> That doesn't do any rectification for sure.

Instantaneous power is proportional to the square of the voltage
or current, not including resistance changes due to heating,
and so is always positive. Is that rectification? It seems
to me that any conversion of an AC signal with the DC component
removed to one that is always positive is a form of rectification,
but others might disagree.

-- glen

Bret Cahill

unread,
Nov 5, 2010, 6:10:02 PM11/5/10
to


Poorly written OP. The goal is getting the amplitude _without_
rectification. Rectification" is to be very broadly construed and
includes anything that results in the final "signal" being positive at
all times.

Maybe peak to peak wil work if you know the wave form.


Bret Cahill

Vladimir Vassilevsky

unread,
Nov 5, 2010, 6:10:50 PM11/5/10
to

1. Take 3 consequent samples x[0],x[1],x[2]
2. Solve the system of equations x[i] = A sin(Wt + Fi)
3. Now you know A, W, and Fi

Bret Cahill

unread,
Nov 5, 2010, 6:22:21 PM11/5/10
to
> >> You need some non-linear operation,  which may or may not be
> >> considered rectification.

> > No nonlinear operations. Just multiply the AC by a synchronous reference.

> Multiplying by other than a constant is a non-linear operation.

Not sure what is meant by linear but that's clearly rectification.

> >> I believe the heater/temperature
> >> measurement has been used for RF power measurements for many years.

> > That doesn't do any rectification for sure.

> Instantaneous power is proportional to the square of the voltage
> or current, not including resistance changes due to heating,
> and so is always positive.  Is that rectification?  It seems
> to me that any conversion of an AC signal with the DC component
> removed to one that is always positive is a form of rectification,
> but others might disagree.

Temperature may not be as convenient as radiation or voltage to
transmit information at high frequency but there is no reason not to
treat it as a signal.


Bret Cahill


Bret Cahill

unread,
Nov 5, 2010, 6:27:23 PM11/5/10
to
> >>>>>Is there anyway to get an amplitude of an ac signal averaged over time
> >>>>>w/o some kind of rectification?

> >>>>Sure. Connect the AC to a heater and measure the temperature.

> >>>>>This doesn't include the trivial, i.e., dc offsets or partial cycles.
> >>>>>The rectification could be analog, digital or software.

> >>>You need some non-linear operation,  which may or may not be
> >>>considered rectification.

> >>No nonlinear operations. Just multiply the AC by a synchronous reference.

> >>>I believe the heater/temperature
> >>>measurement has been used for RF power measurements for many years.

> >>That doesn't do any rectification for sure.

> > Positive heat with a positive signal and positive heat with a negative
> > signal can only be considered a form of rectification.

> 1. Take 3 consequent samples x[0],x[1],x[2]

Over several cycles?

> 2. Solve the system of equations x[i] = A sin(Wt + Fi)

Supposing the wave form is unknown?

> 3. Now you know A, W, and Fi-

If the signal fluctuates aperiodically, it seems you're pretty much
stuck with some kind rectification.


Bret Cahill


Fred Marshall

unread,
Nov 5, 2010, 7:02:17 PM11/5/10
to

Bret,

I suggest you think about the stated objective and whether it admits the
constraints you've stated or assumed.

I think the answer is buried in the question:

You say you want the *amplitude of an ac signal averaged over time*.

The "averaged over time" is a linear operation - so we can disregard
that part.
Determining amplitude *is* or implies a nonlinear operation. That is
all - end of story.

The example of the heater is a good one. It does the job. One could
call it a nonlinear element because it's insensitive to the direction of
flow of current. But, I wouldn't call it a rectifier in the normal
sense. It's a transducer; converting current to heat. And, one does
lose the polarity/direction of the forcing function in the transduction.
So, it likely has to be modeled as a nonlinear element.

Your stated objective, if I understand its definition, would likewise be
insensitive to the polarity of the signal wouldn't it?

Either that, or with certain assumptions, one might ignore all signal
components of the "wrong" polarity / direction - and that's pretty much
a half-wave rectifier.

Fred

Fred Marshall

unread,
Nov 5, 2010, 7:04:21 PM11/5/10
to
On 11/5/2010 2:51 PM, glen herrmannsfeldt wrote:
> In comp.dsp Vladimir Vassilevsky<nos...@nowhere.com> wrote:
> (snip regarding rectiification, and I wrote)
>
>>> You need some non-linear operation, which may or may not be
>>> considered rectification.

Agreed.

>
>> No nonlinear operations. Just multiply the AC by a synchronous reference.
>
> Multiplying by other than a constant is a non-linear operation.

Multiplying by other than a constant or a stable periodic waveform is a
non-linear operation. Multiplying by a constant or a sinusoid or a sum
of sinusoids is a linear operation.... believe it or not.

Fred

John

unread,
Nov 5, 2010, 7:23:35 PM11/5/10
to
On Nov 5, 4:00 pm, Bret Cahill <Bret_E_Cah...@yahoo.com> wrote:

In Matlab:

amp = abs(hilbert(x));

Then filter amp.

John

Rick Lyons

unread,
Nov 5, 2010, 7:35:54 PM11/5/10
to
On Fri, 05 Nov 2010 15:10:00 -0500, Vladimir Vassilevsky
<nos...@nowhere.com> wrote:

>
>
>Bret Cahill wrote:
>
>> Is there anyway to get an amplitude of an ac signal averaged over time
>> w/o some kind of rectification?
>
>Sure. Connect the AC to a heater and measure the temperature.
>
>> This doesn't include the trivial, i.e., dc offsets or partial cycles.
>> The rectification could be analog, digital or software.
>
>What are you really trying to do?

Hi Vlad,
I agree with you. What is Brett actually trying
to do? What is the meaning of the word "get."
Does it mean "acquire", or does it mean "measure?"

And what does "averaged over time" mean?
To me "averaged over time" means add N time-domain
numbers, and then divide the sum by N. The result
will be a single number.

The question is too vague for me to understand.

[-Rick-]



Rick Lyons

unread,
Nov 5, 2010, 7:38:48 PM11/5/10
to
On Fri, 5 Nov 2010 13:28:23 -0700 (PDT), Mark <mako...@yahoo.com>
wrote:

Hello Mark,

If you have an American version of the 2nd Edition of
my "Understanding DSP" book, I can send you the appropriate
errata if you can E-mail me the "Printing Number" of
your copy of the book.

You can determine the "Printing Number" of the American
version (ISBN# 0-13-108989-7) of the 2nd Edition of my
book by looking at the page just before the "Dedication"
page.

On that page (before the Dedication) you'll see all
sorts of publisher-related information, including the
ISBN number. Down toward the bottom of the page you
should see lines printed something like:

Printed in the United States of America
First Printing

indicating the "First Printing" of the book. However, for
later printings the second line above may have the words
like: "Second Printing" or "Seventh Printing".

Regards,
[-Rick-]

glen herrmannsfeldt

unread,
Nov 5, 2010, 8:20:51 PM11/5/10
to
In comp.dsp Bret Cahill <BretC...@peoplepc.com> wrote:
(snip, I wrote)

>> Instantaneous power is proportional to the square of the voltage
>> or current, not including resistance changes due to heating,
>> and so is always positive.  Is that rectification?  It seems
>> to me that any conversion of an AC signal with the DC component
>> removed to one that is always positive is a form of rectification,
>> but others might disagree.

> Temperature may not be as convenient as radiation or voltage to
> transmit information at high frequency but there is no reason not to
> treat it as a signal.

There used to be a term 'detector', and 'detection' for extracting
the modulating signal from (at least an AM modulated) signal.

You can put the signal through almost any non-linear operation,
then low-pass filter the result, to extract in some form the
modulation. In the context of RF demodulation, I am not sure
of the exact meaning of 'rectification.' With some filtering
and such, you can extract either the half-wave or full-wave
rectified version of a modulated carrier from the input, which
would seem to qualify as rectification. If the non-linear
operation has even powers other than zero, that is pretty close
to rectification. If only odd powers, then maybe not.

-- glen

glen herrmannsfeldt

unread,
Nov 5, 2010, 8:26:27 PM11/5/10
to
In comp.dsp Fred Marshall <fmarshall_xr...@xacm.org> wrote:
(snip)

> Multiplying by other than a constant or a stable periodic waveform is a
> non-linear operation. Multiplying by a constant or a sinusoid or a sum
> of sinusoids is a linear operation.... believe it or not.

Hmmm. As I understand it (longer ago than I remember) they used
to make rectifiers out of synchronous motor driven commutators.

That is, multiply by a square wave (sum of sines) of the appropriate
frequency. The result doesn't seem like a linear function of
the input anymore.

-- glen

glen herrmannsfeldt

unread,
Nov 5, 2010, 8:29:42 PM11/5/10
to
In comp.dsp Bret Cahill <BretC...@peoplepc.com> wrote:
(snip)

> Poorly written OP. The goal is getting the amplitude _without_
> rectification. Rectification" is to be very broadly construed and
> includes anything that results in the final "signal" being positive at
> all times.

> Maybe peak to peak wil work if you know the wave form.

I still have my Heathkit VTVM, christmas present from when
I was in high school. The manual includes an explanation of
the form of rectifier used, and why the result is peak-to-peak.
Other than that, it seems unusual to rectify as peak-to-peak.

-- glen

glen herrmannsfeldt

unread,
Nov 5, 2010, 8:36:15 PM11/5/10
to
In comp.dsp Fred Marshall <fmarshall_xr...@xacm.org> wrote:
(snip on heater vs. rectifier)

> The example of the heater is a good one. It does the job. One could
> call it a nonlinear element because it's insensitive to the direction of
> flow of current. But, I wouldn't call it a rectifier in the normal
> sense. It's a transducer; converting current to heat. And, one does
> lose the polarity/direction of the forcing function in the transduction.
> So, it likely has to be modeled as a nonlinear element.

It might be that I am remembering vacuum gauges, but I believe
it is done by spot welding two wires together where they cross.
The result, then, is a combination of heater (two of the wires)
and thermocouple (the other two), at the point where they cross.

Power goes as voltage or current squared, heating the junction,
and the thermoelectric voltage, at least in small signal terms,
is proportional to the temperature change. It also has a built
in low-pass filter, due to the thermal mass.



> Your stated objective, if I understand its definition, would likewise be
> insensitive to the polarity of the signal wouldn't it?

> Either that, or with certain assumptions, one might ignore all signal
> components of the "wrong" polarity / direction - and that's pretty much
> a half-wave rectifier.

-- glen

Vladimir Vassilevsky

unread,
Nov 5, 2010, 8:41:11 PM11/5/10
to

glen herrmannsfeldt wrote:

> You can put the signal through almost any non-linear operation,


You can put the signal into the heater and measure the temperature.
Where is nonlinearity?

You can put the signal into a into a solenoid and measure the force
attracting a piece of ferrous material. Or, for that matter, the force
between two solenoids with the same current running in them.

There is a zillion of ways to measure AC without any nonlinearity or
rectification involved.

John Larkin

unread,
Nov 5, 2010, 9:13:06 PM11/5/10
to

Sample it with an ADC and do the math. You can get average, RMS,
rectified mean, anything you want.

John

glen herrmannsfeldt

unread,
Nov 5, 2010, 9:18:15 PM11/5/10
to
In comp.dsp Vladimir Vassilevsky <nos...@nowhere.com> wrote:

> glen herrmannsfeldt wrote:

>> You can put the signal through almost any non-linear operation,

> You can put the signal into the heater and measure the temperature.
> Where is nonlinearity?

The temperature is a non-linear function of the voltage or current.
At best it is quadratic, which is pretty non-linear. I know
it doesn't go down when the current reverses.



> You can put the signal into a into a solenoid and measure the force
> attracting a piece of ferrous material. Or, for that matter, the force
> between two solenoids with the same current running in them.

Both abs(x) and x**2 are non-linear.



> There is a zillion of ways to measure AC without any
> nonlinearity or rectification involved.

I am a little unsure of the exact meaning of rectification.

The google define:rectification includes "converting AC to DC."
That seems fine in the case of power supplies, but doesn't work
so well in the signal-processing sense. The output of either
a half or full wave rectifier, unfiltered, has a large AC component.
The important point being that the average (low pass filter)
output is non-zero.

So, it seems to me that in the appropriate sense, any operation
which converts the modulated carrier with no DC component to
one with a DC component, a process that can't happen with
linear operations, counts as rectification.

Now, some non-linear functions, though with odd powers, don't
result in a DC component in the result. In that case, it is harder
to call them rectifiers. If you add a DC offset to the input,
though, then you get rectification. (1+x)**3 has even powers.

On the other hand, I do agree that curve fitting to points
on the V(t) curve doesn't seem like rectification, and does allow
one to compute the amplitude, though not easily the envelope for
an AM modulated carrier.


-- glen

Mark

unread,
Nov 5, 2010, 10:00:53 PM11/5/10
to

>
> On the other hand, I do agree that curve fitting to points
> on the V(t) curve doesn't seem like rectification, and does allow
> one to compute the amplitude, though not easily the envelope for
> an AM modulated carrier.
>
> -- glen

I think the key point is not about rectification or linear vs non
linear.

I think the key point is that the usual "rectification" methods
require some kind of explicit or implicit (in the case of a heaters)
low pass filtering to remove the carrier component and keep the
modulation component. The Hilbert method describe by R. Lyons
requires no filtering and returns an exact result regardless of the
relationship between the carrier frequency and the modulation.

That is the beauty of it.

That is the problem I saw many years ago, if you applied a lot of
filtering to the diode detector to completely remove the 455 kHz IF
signal, you would loose some of the high frequency audio components.
Of course I was using simple RC filters, I know better now of
course.

But, to me, that is the ___fundamental__ advantage of the Hilbert
method over the "rectifier" methods.

Hello Rick, I already have the received the errata from you. thank
you.


Mark

Michael A. Terrell

unread,
Nov 5, 2010, 10:28:15 PM11/5/10
to

Vladimir Vassilevsky wrote:
>
> Bret Cahill wrote:
>
> > Is there anyway to get an amplitude of an ac signal averaged over time
> > w/o some kind of rectification?
>
> Sure. Connect the AC to a heater and measure the temperature.
>
> > This doesn't include the trivial, i.e., dc offsets or partial cycles.
> > The rectification could be analog, digital or software.
>
> What are you really trying to do?


Troll the newsgroup, as always.


--
Politicians should only get paid if the budget is balanced, and there is
enough left over to pay them.

glen herrmannsfeldt

unread,
Nov 5, 2010, 10:48:34 PM11/5/10
to
In comp.dsp Mark <mako...@yahoo.com> wrote:
(snip, I wrote)

>> On the other hand, I do agree that curve fitting to points
>> on the V(t) curve doesn't seem like rectification, and does allow
>> one to compute the amplitude, though not easily the envelope for
>> an AM modulated carrier.

> I think the key point is not about rectification or linear vs non
> linear.

> I think the key point is that the usual "rectification" methods
> require some kind of explicit or implicit (in the case of a heaters)
> low pass filtering to remove the carrier component and keep the
> modulation component. The Hilbert method describe by R. Lyons
> requires no filtering and returns an exact result regardless of the
> relationship between the carrier frequency and the modulation.

> That is the beauty of it.

Hmm, interesting and a different question. It does remind me
of asking here about synchronous demodulation of AM signals,
such that you get the right result when the modulation index
is greater than one. I will guess that the Hilbert method
can also do that.



> That is the problem I saw many years ago, if you applied a lot of
> filtering to the diode detector to completely remove the 455 kHz IF
> signal, you would loose some of the high frequency audio components.
> Of course I was using simple RC filters, I know better now of
> course.

> But, to me, that is the ___fundamental__ advantage of the Hilbert
> method over the "rectifier" methods.

-- glen

Bret Cahill

unread,
Nov 5, 2010, 11:02:21 PM11/5/10
to
> > You can put the signal through almost any non-linear operation,

> You can put the signal into the heater and measure the temperature.
> Where is nonlinearity?

It would be hard to claim _that_ was "non linear" in even the least
sophisticated sense of the term.

That isn't the issue, however. The issue is rectification.

If some operation results in the same + sign of the magnitude of some
+/- signal then that operation could be broadly construed as
"rectification."

> You can put the signal into a into a solenoid and measure the force
> attracting a piece of ferrous material.

Same as the heater. The operation outputs a + magnitude for a +/-
signal.

> Or, for that matter, the force
> between two solenoids with the same current running in them.

> There is a zillion of ways to measure AC without any nonlinearity or
> rectification involved.

Maybe there are several if the wave form is known.


Bret Cahill


Rick Lyons

unread,
Nov 6, 2010, 12:33:21 AM11/6/10
to

Hi glen,
Good God!! When you mention a Heathkit VTVM
you strike a nerve with me. I had one of those,
with its cigar-sized probe and alligator
ground clip.

http://www.heathkit-museum.com/test/hvmv-7a.shtml

When I was in high school (yes I played on the
baseball team and got into trouble like any other
knuckleheaded high school student), I became
interested in electronics.

I mostly used my VTVM to test the filaments of
vacuum tubes from the old radios and televisions
that my neighbors threw away and gave to me.

Back then you could buy all sorts of electronic parts
from Radio Shack At that time Radio Shack was about
radios and electronics hobbyists. Now Radio Shack
is geared toward cell phones and digital cameras.
It's too bad, really too bad.

It's a shame but American teenage boys are now far
more interested in playing video games than
experimenting with electronics.

glen, are you old enough to remember the chintzy
little crystal radios that had a simple tuning coil,
capacitor (I think), diode, earphone, and NO BATTERY?
With those little crystal radios you could "pick
up" local AM radio while lying in your bed at night.

See Ya',
[-Rick-]


Rich Grise

unread,
Nov 6, 2010, 4:45:11 AM11/6/10
to
Bret Cahill wrote:

> Is there anyway to get an amplitude of an ac signal averaged over time
> w/o some kind of rectification?
>

Yeah - the average of an AC signal is zero.

Hope This Helps!
Rich

Baron

unread,
Nov 6, 2010, 11:37:09 AM11/6/10
to
glen herrmannsfeldt Inscribed thus:

> In comp.dsp Vladimir Vassilevsky <nos...@nowhere.com> wrote:
>

>> Bret Cahill wrote:
>
>>> Is there anyway to get an amplitude of an ac signal averaged over
>>> time w/o some kind of rectification?
>

>> Sure. Connect the AC to a heater and measure the temperature.
>
>>> This doesn't include the trivial, i.e., dc offsets or partial
>>> cycles. The rectification could be analog, digital or software.
>

> You need some non-linear operation, which may or may not be

> considered rectification. I believe the heater/temperature


> measurement has been used for RF power measurements for many years.
>

> -- glen

Google "Bolometer".

--
Best Regards:
Baron.

Tim Wescott

unread,
Nov 6, 2010, 11:44:21 AM11/6/10
to
On 11/05/2010 02:35 PM, Bret Cahill wrote:
>>> In comp.dsp Vladimir Vassilevsky<nos...@nowhere.com> wrote:
>>
>>>> Bret Cahill wrote:
>>
>>>>> Is there anyway to get an amplitude of an ac signal averaged over time
>>>>> w/o some kind of rectification?
>>
>>>> Sure. Connect the AC to a heater and measure the temperature.
>>
>>>>> This doesn't include the trivial, i.e., dc offsets or partial cycles.
>>>>> The rectification could be analog, digital or software.
>>
>>> You need some non-linear operation, which may or may not be
>>> considered rectification.
>>
>> No nonlinear operations. Just multiply the AC by a synchronous reference.
>>
>>> I believe the heater/temperature
>>> measurement has been used for RF power measurements for many years.
>>
>> That doesn't do any rectification for sure.
>
> Positive heat with a positive signal and positive heat with a negative
> signal can only be considered a form of rectification.

Troll.

--

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

Do you need to implement control loops in software?
"Applied Control Theory for Embedded Systems" was written for you.
See details at http://www.wescottdesign.com/actfes/actfes.html

Tim Wescott

unread,
Nov 6, 2010, 11:44:43 AM11/6/10
to
On 11/05/2010 01:00 PM, Bret Cahill wrote:
> Is there anyway to get an amplitude of an ac signal averaged over time
> w/o some kind of rectification?
>
> This doesn't include the trivial, i.e., dc offsets or partial cycles.
>
> The rectification could be analog, digital or software.

Don't feed the troll

Fred Marshall

unread,
Nov 6, 2010, 12:52:02 PM11/6/10
to

Well, Jerry and I argued about this at length here some time ago. The
key is in the tests for linearity. It rather surprised me too and it
didn't "seem like a linear system" but it worked out.

In all these things we're talking about a 2-port situation and asking
whether the 2-port system is linear or not.

So, if the 2-port system is a 4-quadrant multiplier with a stable
sinusoidal input (which is not one of the "ports") then the result of a
signal on the "input" port is a sinusoid of amplitude proportional to
that input. And, if a different input is applied, same thing. And, if
the sum of those two inputs is applied, the output is the sum of the two
independent outputs.
etc.

Now, I must say that I was pulling from memory about the composite
sinusoidal modulating function .. but I think it still holds with that
being used instead of a simple sinusoid...

Fred

Jasen Betts

unread,
Nov 6, 2010, 11:57:22 PM11/6/10
to
On 2010-11-05, Bret Cahill <Bret_E...@yahoo.com> wrote:

> Is there anyway to get an amplitude of an ac signal averaged over time
> w/o some kind of rectification?

Run it through a resistor an measure heat output. The result will be
proportional to the square of the amplitiude

--
ɹǝpun uʍop ɯoɹɟ sƃuıʇǝǝɹ⅁

Jasen Betts

unread,
Nov 6, 2010, 11:58:29 PM11/6/10
to
On 2010-11-05, Bret Cahill <Bret_E...@yahoo.com> wrote:
>> > In comp.dsp Vladimir Vassilevsky <nos...@nowhere.com> wrote:
>>
>> >>Bret Cahill wrote:
>>
>> >>>Is there anyway to get an amplitude of an ac signal averaged over time
>> >>>w/o some kind of rectification?
>>
>> >>Sure. Connect the AC to a heater and measure the temperature.
>>
>> >>>This doesn't include the trivial, i.e., dc offsets or partial cycles.
>> >>>The rectification could be analog, digital or software.
>>
>> > You need some non-linear operation,  which may or may not be
>> > considered rectification.
>>
>> No nonlinear operations. Just multiply the AC by a synchronous reference.
>>
>> > I believe the heater/temperature
>> > measurement has been used for RF power measurements for many years.
>>
>> That doesn't do any rectification for sure.
>
> Positive heat with a positive signal and positive heat with a negative
> signal can only be considered a form of rectification.

In that case the answer is "no"

Jasen Betts

unread,
Nov 7, 2010, 12:22:16 AM11/7/10
to
On 2010-11-05, Bret Cahill <BretC...@peoplepc.com> wrote:

> The goal is getting the amplitude _without_
> rectification. Rectification" is to be very broadly construed and
> includes anything that results in the final "signal" being positive at
> all times.

show me a signal with negative amplitude.

Bob Masta

unread,
Nov 7, 2010, 7:58:11 AM11/7/10
to

I think this depends on what you mean by "linear". Most of
the time, IMHO, we mean "no new frequencies produced in the
output". Multiplying two sinusoids violates this, because
you end up with sum and difference frequencies.

Think about amplifiers. We talk about "nonlinear
distortion" when we get new frequency components (THD, IMD,
slew limiting, etc), while "linear distortion" (which is a
rarely used term) means only changes in amplitudes or phases
of the original frequency components.

Best regards,


Bob Masta

DAQARTA v5.10
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Scope, Spectrum, Spectrogram, Sound Level Meter
Frequency Counter, FREE Signal Generator
Pitch Track, Pitch-to-MIDI
DaqMusic - FREE MUSIC, Forever!
(Some assembly required)
Science (and fun!) with your sound card!

Message has been deleted

Dirk Bell

unread,
Nov 7, 2010, 1:01:20 PM11/7/10
to
On Nov 7, 11:25 am, Fred Abse <excretatau...@invalid.invalid> wrote:

> On Sun, 07 Nov 2010 04:22:16 +0000, Jasen Betts wrote:
> > show me a signal with negative amplitude.
>
> a sin x at x>pi<2*pi
>
> --
> "For a successful technology, reality must take precedence
> over public relations, for nature cannot be fooled."
>                                        (Richard Feynman)

Very good Fred.

I searched all of the posts here to see if anyone caught that.

Posters are using the terms "amplitude" and "magnitude" as if they are
the same.

Dirk

o pere o

unread,
Nov 8, 2010, 11:15:04 AM11/8/10
to
On 11/05/2010 10:51 PM, glen herrmannsfeldt wrote:
> In comp.dsp Vladimir Vassilevsky<nos...@nowhere.com> wrote:
> (snip regarding rectiification, and I wrote)

>
>>> You need some non-linear operation, which may or may not be
>>> considered rectification.
>
>> No nonlinear operations. Just multiply the AC by a synchronous reference.
>
> Multiplying by other than a constant is a non-linear operation.

Multiplying by any m(t) is a linear operation, since it satisfies

1) f[x(t)+y(t)]=f[x(t)]+f[y(t)]
[x(t)+y(t)]搶(t) = [x(t)搶(t)]+[y(t)搶(t)]

and
2) f[a暖(t)]=a搭[x(t)]
[a暖(t)]搶(t) = a愴x(t)搶(t)]

The operation "multiply by m(t)" is a linear, time-variant system.

Pere

JW

unread,
Nov 8, 2010, 11:20:27 AM11/8/10
to
On Fri, 5 Nov 2010 13:00:54 -0700 (PDT) Bret Cahill
<Bret_E...@yahoo.com> wrote in Message id:
<e6a620ac-ec32-4ae8...@x7g2000prj.googlegroups.com>:

>Is there anyway to get an amplitude of an ac signal averaged over time
>w/o some kind of rectification?

RMS or peak? How much time are we talking about?

What are you measuring?

o pere o

unread,
Nov 8, 2010, 11:25:04 AM11/8/10
to

That is true for time-invariant systems. Look at my previous post and,
for instance, http://en.wikipedia.org/wiki/Linear for the mathematical
definition of linearity.

The operation "multiplying by m(t)" is a linear but time-_variant_
operation and is common in communication systems, such as any frequency
conversion process:

..........
>------[x]------------>
. | .
. cos wt .
.......... <....:linear, time-variant "box"

Incidentally, this block is often done exploiting nonlinearity, but this
is another story and could be done differently.

Pere

o pere o

unread,
Nov 8, 2010, 11:32:51 AM11/8/10
to
On 11/05/2010 11:10 PM, Bret Cahill wrote:
>>> Is there anyway to get an amplitude of an ac signal averaged over time
>>> w/o some kind of rectification?
>>
>>> This doesn't include the trivial, i.e., dc offsets or partial cycles.
>>
>>> The rectification could be analog, digital or software.
>>
>>> Bret Cahill
>>
>> You need a precision rectifier..
>> couple of op-amps and maybe 1 diode ..
>>
>> http://sound.westhost.com/appnotes/an001.htm
>
>
> Poorly written OP. The goal is getting the amplitude _without_

> rectification. Rectification" is to be very broadly construed and
> includes anything that results in the final "signal" being positive at
> all times.

If your signal x(t) is described by x(t) = A·(cos wt + fi), then A is
called the amplitude and is positive (at all times, since it does not
depend on t) by definition.

From your rewritten question it seems you want something that does not
make sense (even) in the sinusoidal case.

Pere

>
> Maybe peak to peak wil work if you know the wave form.
>
>

> Bret Cahill
>
>
>
>
>

o pere o

unread,
Nov 8, 2010, 11:35:56 AM11/8/10
to
On 11/06/2010 04:44 PM, Tim Wescott wrote:
> On 11/05/2010 01:00 PM, Bret Cahill wrote:
>> Is there anyway to get an amplitude of an ac signal averaged over time
>> w/o some kind of rectification?
>>
>> This doesn't include the trivial, i.e., dc offsets or partial cycles.
>>
>> The rectification could be analog, digital or software.
>
> Don't feed the troll
>

Sorry!

Pere

JW

unread,
Nov 8, 2010, 11:46:40 AM11/8/10
to
On Mon, 08 Nov 2010 11:20:27 -0500 JW <no...@dev.null> wrote in Message id:
<so8gd61ru59916j21...@4ax.com>:

^^^^
p-p IM.

>What are you measuring?

Fred Marshall

unread,
Nov 8, 2010, 12:20:05 PM11/8/10
to
On 11/7/2010 10:01 AM, Dirk Bell wrote:
> On Nov 7, 11:25 am, Fred Abse<excretatau...@invalid.invalid> wrote:
>> On Sun, 07 Nov 2010 04:22:16 +0000, Jasen Betts wrote:
>>> show me a signal with negative amplitude.
>>
>> a sin x at x>pi<2*pi
>>
>> --

> I searched all of the posts here to see if anyone caught that.


>
> Posters are using the terms "amplitude" and "magnitude" as if they are
> the same.
>
> Dirk

Dirk,

Good point. I've probably done that! So you got me thinking....

It occurs to me that there's another:
"value of a function" or "value of a signal" which, obviously can be
negative.

This goes along with:

"magnitude of a signal or function" (which I don't think implies any
time frame).... as in "abs(value of a function)"

"amplitude of a wave" as in "a sin x"
or, amplitude of noise perhaps...
where we most often use "a" as a positive number in physics but don't
*have to* in mathematics, eh? In the latter case it could be said to
have a negative amplitude but that would be most unusual wouldn't it?
Or maybe it's just implied that 0=<a ??

I'm not sure how "amplitude" really applies otherwise:

What's the "amplitude" of a*sin(wt) + b*cos(pi*w*t) ????

Then things like "rms value" or "rms whatever" usually imply a time
frame over which the sum or integral is taken - often a single period
but could be just some arbitrary time frame.

Fred

glen herrmannsfeldt

unread,
Nov 8, 2010, 3:19:45 PM11/8/10
to
In comp.dsp Fred Marshall <fmarshall_xr...@xacm.org> wrote:
(snip, someone wrote)

>> Posters are using the terms "amplitude" and "magnitude" as if
>> they are the same.

> Good point. I've probably done that! So you got me thinking....



> It occurs to me that there's another:
> "value of a function" or "value of a signal" which, obviously can be
> negative.

> This goes along with:

> "magnitude of a signal or function" (which I don't think implies any
> time frame).... as in "abs(value of a function)"

> "amplitude of a wave" as in "a sin x"
> or, amplitude of noise perhaps...
> where we most often use "a" as a positive number in physics but don't
> *have to* in mathematics, eh? In the latter case it could be said to
> have a negative amplitude but that would be most unusual wouldn't it?
> Or maybe it's just implied that 0=<a ??

In physics, at least in optics and QM, amplitude is signed.

For example, "for coherent sources add the amplitude,
for incoherent sources add the intensity."

Though another way to look at it is that amplitude is unsigned, but
that one has to include the appropriate phase difference when adding.



> I'm not sure how "amplitude" really applies otherwise:

> What's the "amplitude" of a*sin(wt) + b*cos(pi*w*t) ????

(snip)

-- glen

Bret Cahill

unread,
Nov 8, 2010, 5:19:25 PM11/8/10
to

The term "time ave." in the header implies the quantity is over some
time period.

If peak to peak or rms or any other measure of amplitude increases by
some percent during that time period then the magnitude of the low
pass or integral will increase by that same percent.


Bret Cahill


Bret Cahill

unread,
Nov 8, 2010, 5:28:11 PM11/8/10
to
> > Is there anyway to get an amplitude of an ac signal averaged over time
> > w/o some kind of rectification?
>
> Run it through a resistor an measure heat output.

Temperature is a signal. Fourier analysis _originated_ in heat
transfer.

Your resistor is taking an AC signal and putting out a positive only
signal.

What is that if not rectification?


Bret Cahill


o pere o

unread,
Nov 9, 2010, 4:11:50 AM11/9/10
to

sqrt(a�+b�)

Pere

Jasen Betts

unread,
Nov 9, 2010, 5:29:49 AM11/9/10
to
On 2010-11-07, Fred Abse <excret...@invalid.invalid> wrote:
> On Sun, 07 Nov 2010 04:22:16 +0000, Jasen Betts wrote:
>
> a sin x at x>pi<2*pi
>

so brett wants a low pass filter?

Jasen Betts

unread,
Nov 9, 2010, 5:48:50 AM11/9/10
to

In what circumstances do you want a negative result?

Bret Cahill

unread,
Nov 9, 2010, 10:03:09 AM11/9/10
to
> >> > Is there anyway to get an amplitude of an ac signal averaged over time
> >> > w/o some kind of rectification?

> >> Run it through a resistor an measure heat output.

> > Temperature is a signal.  Fourier analysis _originated_ in heat
> > transfer.

> > Your resistor is taking an AC signal and putting out a positive only
> > signal.

> > What is that if not rectification?

To be sure the quantity representing the signal changes from voltage
to temperature but arguing that isn't rectification that would be like
trying to claim the First Amendment only covers the narrowest
definitions of "speech" and "press."

Even Justice Thomas "emanated in penumbras" on that one.

> In what circumstances do you want a negative result?

Sign isn't of interest here. The goal is to determine if there is any
way other than rectification to determine the magnitude of a signal
over a period of time.

If you knew the wave form in the time domain you could measure peak to
peak and calculate it that way.

As pointed out above amplitude is always positive. A Fourier
transform is always positive so that might be one way to determine the
magnitude of the signal over time.

It might be hard to argue that a FFT is rectification. When you
rectify by diode or resistor you lose some information. You no longer
know when the unrectified signal was positive or negative.

Not true for the FFT.


Bret Cahill

Bob Masta

unread,
Nov 10, 2010, 8:08:25 AM11/10/10
to
On Tue, 9 Nov 2010 07:03:09 -0800 (PST), Bret Cahill
<Bret_E...@yahoo.com> wrote:
<snip>

>As pointed out above amplitude is always positive. A Fourier
>transform is always positive so that might be one way to determine the
>magnitude of the signal over time.

Huh? A Fourier transform produces real and imaginary
arrays, any component of which may be negative. It is
common to display the *magnitude* at each frequency bin, but
that involves a separate step (square root of
sum-of-squares), which I assume you would call
rectification.

>It might be hard to argue that a FFT is rectification. When you
>rectify by diode or resistor you lose some information. You no longer
>know when the unrectified signal was positive or negative.
>
>Not true for the FFT.

If you only take the magnitude, to get the "always positive"
result you mention, then that of course has no information
about the original polarity. You can also compute the phase
at each frequency bin, as a separate operation on the same
real and imaginary arrays. Is that what you are talking
about?

Why the concern over whether a method is a form of
"rectification" or not? What are you really trying to
measure?

Bret Cahill

unread,
Nov 10, 2010, 11:43:04 AM11/10/10
to
> >As pointed out above amplitude is always positive.  A Fourier
> >transform is always positive so that might be one way to determine the
> >magnitude of the signal over time.
>
> Huh?  A Fourier transform produces real and imaginary
> arrays, any component of which may be negative.  

If the only information displayed in the FFT is an amplitude and a
phase angle for each frequency, and if amplitude is always positive as
suggested above, then amplitudes are always positive in an FFT.

Even a negative dc offset could be represented as a positive 0 Hz
spike with a 180 degree phase angle.

> It is
> common to display the *magnitude* at each frequency bin, but
> that involves a separate step (square root of
> sum-of-squares), which I assume you would call
> rectification.

In that case there seems to be no way to end run rectification.

> >It might be hard to argue that a FFT is rectification.  When you
> >rectify by diode or resistor you lose some information.  You no longer
> >know when the unrectified signal was positive or negative.

> >Not true for the FFT.

> If you only take the magnitude, to get the "always positive"
> result you mention, then that of course has no information
> about the original polarity.  

A phase angle for each frequency would allow recovery the sign of the
signal in the time domain.

> You can also compute the phase
> at each frequency bin, as a separate operation on the same
> real and imaginary arrays.  Is that what you are talking
> about?

Yes.

> Why the concern over whether a method is a form of
> "rectification" or not?  What are you really trying to
> measure?

The magnitude of a randomly fluctuating signal over a period of time.
This doesn't include the trivial case where the time the signal is
positive is integrated along with the time the signal is negative.

Peak to peak will only work with a known waveform so it looks more and
more like it must involve taking absolute values or sqrts of sum of
squares at some point which would ordinarily be considered
"rectification" even in a relatively narrow sense of the word.


Bret Cahill


"The truth has never yet clung to the arm of an inflexible signal."

-- Nietzsche

k...@att.bizzzzzzzzzzzz

unread,
Nov 10, 2010, 6:46:45 PM11/10/10
to
On Wed, 10 Nov 2010 08:43:04 -0800 (PST), Bret Cahill
<Bret_E...@yahoo.com> wrote:

>> >As pointed out above amplitude is always positive.  A Fourier
>> >transform is always positive so that might be one way to determine the
>> >magnitude of the signal over time.
>>
>> Huh?  A Fourier transform produces real and imaginary
>> arrays, any component of which may be negative.  
>
>If the only information displayed in the FFT is an amplitude and a
>phase angle for each frequency, and if amplitude is always positive as
>suggested above, then amplitudes are always positive in an FFT.

Don't give up your day job, Cahill. An angle of 180 degrees is *negative*. If
the FFT "rectified" it's obvious to even a moron that information is lost and
an RFFT couldn't be done.

Bob Masta

unread,
Nov 11, 2010, 7:48:03 AM11/11/10
to
On Wed, 10 Nov 2010 08:43:04 -0800 (PST), Bret Cahill
<Bret_E...@yahoo.com> wrote:


>
>> Why the concern over whether a method is a form of

>> "rectification" or not? =A0What are you really trying to


>> measure?
>
>The magnitude of a randomly fluctuating signal over a period of time.
>This doesn't include the trivial case where the time the signal is
>positive is integrated along with the time the signal is negative.
>
>Peak to peak will only work with a known waveform so it looks more and
>more like it must involve taking absolute values or sqrts of sum of
>squares at some point which would ordinarily be considered
>"rectification" even in a relatively narrow sense of the word.

You haven't explained what's wrong with "rectification", and
especially true RMS for this purpose.

Michael A. Terrell

unread,
Nov 11, 2010, 8:18:33 AM11/11/10
to

Bob Masta wrote:
>
> On Wed, 10 Nov 2010 08:43:04 -0800 (PST), Bret Cahill
> <Bret_E...@yahoo.com> wrote:
>
> >
> >> Why the concern over whether a method is a form of
> >> "rectification" or not? =A0What are you really trying to
> >> measure?
> >
> >The magnitude of a randomly fluctuating signal over a period of time.
> >This doesn't include the trivial case where the time the signal is
> >positive is integrated along with the time the signal is negative.
> >
> >Peak to peak will only work with a known waveform so it looks more and
> >more like it must involve taking absolute values or sqrts of sum of
> >squares at some point which would ordinarily be considered
> >"rectification" even in a relatively narrow sense of the word.
>
> You haven't explained what's wrong with "rectification", and
> especially true RMS for this purpose.

|----||----|
| DO NOT |
| FEED THE |
| TROLLS! |
|----||----|
||
||
||
/|\\|/||||//|||/\???\\//\\\\/|?\/\\\\/\/\/\||||\

--
Politicians should only get paid if the budget is balanced, and there is
enough left over to pay them.

Bret Cahill

unread,
Nov 11, 2010, 11:38:04 AM11/11/10
to
> >> Why the concern over whether a method is a form of
> >> "rectification" or not? =A0What are you really trying to
> >> measure?
>
> >The magnitude of a randomly fluctuating signal over a period of time.
> >This doesn't include the trivial case where the time the signal is
> >positive is integrated along with the time the signal is negative.
>
> >Peak to peak will only work with a known waveform so it looks more and
> >more like it must involve taking absolute values or sqrts of sum of
> >squares at some point which would ordinarily be considered
> >"rectification" even in a relatively narrow sense of the word.
>
> You haven't explained what's wrong with "rectification",

Nothing is wrong with rectification. It's not only the best way.
It's the only way.

Jamie

unread,
Nov 11, 2010, 12:03:16 PM11/11/10
to
Bret Cahill wrote:

>>>>Why the concern over whether a method is a form of
>>>>"rectification" or not? =A0What are you really trying to
>>>>measure?
>>
>>>The magnitude of a randomly fluctuating signal over a period of time.
>>>This doesn't include the trivial case where the time the signal is
>>>positive is integrated along with the time the signal is negative.
>>
>>>Peak to peak will only work with a known waveform so it looks more and
>>>more like it must involve taking absolute values or sqrts of sum of
>>>squares at some point which would ordinarily be considered
>>>"rectification" even in a relatively narrow sense of the word.
>>
>>You haven't explained what's wrong with "rectification",
>
>
> Nothing is wrong with rectification. It's not only the best way.
> It's the only way.

Did you look at the precision rectifier links I gave you ?

I haven't seen any reference to what BW you are interested in?


Jamie.

rickman

unread,
Nov 11, 2010, 5:02:49 PM11/11/10
to

I haven't read the whole thread as it seems rather long and possibly
contentious. But if you are saying that an FFT performs rectification
in any sense, I don't think that is true. Maybe I misunderstand what
you are saying.

BTW, why do you want to avoid rectification when performing this
measurement? Also, how exactly do you define "rectification"? If you
want a magnitude off the signal, by definition that will be always
positive and like would be considered rectification. The FFT does not
inherently calculate the magnitude, rather it results in a complex
number allowing both phase and magnitude to be calculated.

Rick

rickman

unread,
Nov 11, 2010, 5:21:11 PM11/11/10
to
On Nov 5, 5:10 pm, Bret Cahill <BretCah...@peoplepc.com> wrote:
> > > Is there anyway to get an amplitude of an ac signal averaged over time
> > > w/o some kind of rectification?
>
> > > This doesn't include the trivial, i.e., dc offsets or partial cycles.
>
> > > The rectification could be analog, digital or software.
>
> > > Bret Cahill
>
> > You need a precision rectifier..
> >    couple of op-amps and maybe 1 diode ..
>
> >http://sound.westhost.com/appnotes/an001.htm
>
> Poorly written OP.  The goal is getting the amplitude _without_
> rectification.  Rectification" is to be very broadly construed and
> includes anything that results in the final "signal" being positive at
> all times.
>
> Maybe peak to peak wil work if you know the wave form.
>
> Bret Cahill

Ok, this is making some sense. If you want to measure amplitude, by
definition this is always going to be a positive number, right? Even
your peak to peak measurement should provide a positive value which is
rectification according to your definition I believe.

Rick

Bret Cahill

unread,
Nov 11, 2010, 8:09:12 PM11/11/10
to

The always positive frequency domain graph is apparently generated by
taking the square root of the sum of the square of the real and the
square of the imaginary components of each frequency.

That seems like rectification.

> Maybe I misunderstand what
> you are saying.

> BTW, why do you want to avoid rectification when performing this
> measurement?  

Just checking to make sure that is the only way.

> Also, how exactly do you define "rectification"?  

Absolute value and sqrt of sum of squares.

> If you
> want a magnitude off the signal, by definition that will be always
> positive and like would be considered rectification.  

Maybe by definition.

> The FFT does not
> inherently calculate the magnitude, rather it results in a complex
> number allowing both phase and magnitude to be calculated.

By taking the sqrt of the sum of the squares which is rectification.


Bret Cahill


Bret Cahill

unread,
Nov 11, 2010, 8:10:47 PM11/11/10
to

I've been using the ones provided by LT SPICE.

>   I haven't seen any reference to what BW you are interested in?

This is just a general question.


Bret Cahill


Bret Cahill

unread,
Nov 11, 2010, 8:12:02 PM11/11/10
to

I was thinking that myself.


Bret Cahill

glen herrmannsfeldt

unread,
Nov 11, 2010, 10:01:07 PM11/11/10
to
In comp.dsp Bret Cahill <Bret_E...@yahoo.com> wrote:
(big snip regarding FFT and rectification)

> The always positive frequency domain graph is apparently generated by
> taking the square root of the sum of the square of the real and the
> square of the imaginary components of each frequency.

> That seems like rectification.

Well, it is usual to also keep atan2(y,x), in which case no
information is lost. You have to somehow lose that information.

Consider a DVM where the minus LED is broken. There is no
rectification, but the information regarding the sign is lost.

I tend to think of rectification as a physical process, applied
to analog signals. As far radio receivers, it is normally followed
by a low-pass filter. If one does the same with a digitized
version, then I would have to agree that it is rectification.

-- glen

0 new messages