Author Topic: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)  (Read 19459 times)

0 Members and 5 Guests are viewing this topic.

Offline MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11699
  • Country: my
  • reassessing directives...
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #225 on: November 10, 2023, 07:08:21 pm »
right! playing with sim tonight to design 3rd order elliptic filter (analog/physical) filter (about 60MHz cutoff)... no gibbs effect on sim. so there must be a special one to build a physical filter that can cause "gibbs like" effect. fwiw..
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Online wasedadoc

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: gb
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #226 on: November 10, 2023, 10:38:40 pm »
right! playing with sim tonight to design 3rd order elliptic filter (analog/physical) filter (about 60MHz cutoff)... no gibbs effect on sim. so there must be a special one to build a physical filter that can cause "gibbs like" effect. fwiw..
Can you plot the phase versus frequency?
 

Offline gf

  • Super Contributor
  • ***
  • Posts: 1307
  • Country: de
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #227 on: November 10, 2023, 11:45:22 pm »
right! playing with sim tonight to design 3rd order elliptic filter (analog/physical) filter (about 60MHz cutoff)... no gibbs effect on sim. so there must be a special one to build a physical filter that can cause "gibbs like" effect. fwiw..

I do see overshoot/ringing caused by attenuation of higher harmonics. Why do you classify it as "no Gibbs"? Symmetry is not the criterion. Gibbs ringing introduced by a filter when applied to an ideal square wave can be either symmetric or asymmetric, depending on the filter's phase response.

The only difference between the filters that produce the step responses in figure1 and figure2 is their phase response. Both filters have the same magnitude response (figure3), i.e. attenuation of harmonics is the same. Figure1 is minimum phase and figure2 is linear phase. A causal, stable IIR cannot have linear phase, though.
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 27469
  • Country: nl
    • NCT Developments
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #228 on: November 11, 2023, 12:10:26 am »
I still don't agree with attributing ringing due to low pass filtering a non-perfect square (IOW: a square wave as it exists in the real world) wave to Gibbs effect. The way I read the mathematical description is that Gibbs ears occur because you can't create a perfect square wave from adding sine waves (a Fourier series) which in turn is because in the mathematical world a square wave is not a continuous function. You could call Gibbs ears a 'residu'. However, a discontinuous square wave can exist in the digital world after sampling a square wave or other waveforms with  steep edges in relation to the samplerate. When the sampled signal is brought back to the real world using sin x/x reconstruction (for example), you'll get Gibbs ears as a displayed artefact.
« Last Edit: November 12, 2023, 06:24:12 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11699
  • Country: my
  • reassessing directives...
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #229 on: November 11, 2023, 03:26:09 am »
right! playing with sim tonight to design 3rd order elliptic filter (analog/physical) filter (about 60MHz cutoff)... no gibbs effect on sim. so there must be a special one to build a physical filter that can cause "gibbs like" effect. fwiw..

I do see overshoot/ringing caused by attenuation of higher harmonics. Why do you classify it as "no Gibbs"? Symmetry is not the criterion. Gibbs ringing introduced by a filter when applied to an ideal square wave can be either symmetric or asymmetric, depending on the filter's phase response.

The only difference between the filters that produce the step responses in figure1 and figure2 is their phase response. Both filters have the same magnitude response (figure3), i.e. attenuation of harmonics is the same. Figure1 is minimum phase and figure2 is linear phase. A causal, stable IIR cannot have linear phase, though.
i only focus on pre ringing part, the unrealistic one. the post ringing overshoots are normal, so i will not question that part. Not just in electrical signal, but also normal in physical control system n mechanical. Your car doesnt get bumpy before hitting the bump, otherwise thats paranormal.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Online bdunham7

  • Super Contributor
  • ***
  • Posts: 7974
  • Country: us
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #230 on: November 11, 2023, 04:58:42 am »
Your car doesnt get bumpy before hitting the bump, otherwise thats paranormal.

As I pointed out earlier, the causality argument is a trap, a red herring, a.. well, whatever.  There is no theoretical causality issue if the display on the screen doesn't appear until long (relatively speaking) until the event is over.  In the case of  just the analog filter, this means there could be 'pre-ringing' to the extent that the portion of the signal that represents the bulk of the step is delayed in the filter while other components get through faster.  This can be demonstrated with with real components, although I don't have an all-analog example that would give you nice pronounced and symmetrical Gibbs ears.
« Last Edit: November 11, 2023, 03:05:34 pm by bdunham7 »
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 
The following users thanked this post: Someone, ebastler

Offline gf

  • Super Contributor
  • ***
  • Posts: 1307
  • Country: de
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #231 on: November 11, 2023, 09:01:01 am »
i only focus on pre ringing part, the unrealistic one. the post ringing overshoots are normal, so i will not question that part. Not just in electrical signal, but also normal in physical control system n mechanical. Your car doesnt get bumpy before hitting the bump, otherwise thats paranormal.

Minimum phase filters don't pre-shoot. The traditional all-pole filters like Bessel, Butterworth, Chebycheff type1 are minimum phase, IIRC. But not every IIR (or analog) filter is mininimum phase. If you linearize the phase response of a (say) Butterworth filter with additional allpass filters you can even approximate a linear phase response in the analog domain.

See also https://cdn.teledynelecroy.com/files/whitepapers/group_delay-designcon2006.pdf
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4970
  • Country: cv
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #232 on: November 11, 2023, 09:21:28 am »
As it has been discussed earlier, the pre-ringing has nothing to do with hardware.
The scope samples a couple of samples, and in order to draw a "continuous solid yellow signal" on the LCD display it uses sinc interpolation in math (it creates additional LCD points based on the "sinc" function). You may see it on previous picture in the replay #220 (the Bodnar 312.5MSa/s) where there were only 20 samples taken (3ns from sample to sample, 60ns wide screen, therefore 20 points to interpolate) and the graphical function based on the "sinc" interpolated those 20points into a "continuous picture" you see on the screen. Therefore you see the "pre-ringing". With more points (samples) taken you do not see the pre-ringing.
You cannot get "pre-ringing" when the electrical signal has not entered the filter.

Thus the "sinc" here has nothing to do with a ringing signal, "filtering in hw" or "dsp". It is a graphical interpolation method/tool they have chosen to create continuous visual lines on the LCD screen. You may interpolate number of bananas exported each month within a year and you will get the same pre-ringing and post-ringing with the sinc interpolator when having 12 numbers..

PS: below the picture, the display even says "16points" taken in total, 3ns apart over the entire screen width (info on top)..
Look at the nodes where the wave changes its phase - aprox six times (20ns/3), 3ns apart, mind the time scale below - there are the "6 real physical points sampled", all yellow between them has been "created artificially by the graphical Sinc interpolation".
The ringing before and after the rising edge is made by the sinc graphical interpolation such you get a solid line instead of only 16 points placed on the LCD screen..

« Last Edit: November 11, 2023, 10:20:40 am by iMo »
 

Offline MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11699
  • Country: my
  • reassessing directives...
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #233 on: November 12, 2023, 05:30:12 pm »
right! playing with sim tonight to design 3rd order elliptic filter (analog/physical) filter (about 60MHz cutoff)... no gibbs effect on sim. so there must be a special one to build a physical filter that can cause "gibbs like" effect. fwiw..
Can you plot the phase versus frequency?
i just got home, see attached. not sure what it tells. but anything larger than 40MHz is more than 180deg phase?
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Online bdunham7

  • Super Contributor
  • ***
  • Posts: 7974
  • Country: us
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #234 on: November 12, 2023, 06:22:56 pm »
Here is a rather lame attempt to throw something together with assorted junk within reach on my messy bench.  First screenshot is a square wave from an FY6900 through a Mini Circuits BLP70+.  Second is the same except a small modification was made.  Obviously I'd have to tweak my modification to get nicer looking symmetric results.

Edit:  I did tweak the modification a bit to look 'nicer', but I obviously still don't have a symmetrical Gibbs ears appearance.  Note that even 'real' Gibbs ears are not always perfectly symmetric.

https://www.minicircuits.com/pdfs/BLP-70+.pdf





« Last Edit: November 12, 2023, 07:14:40 pm by bdunham7 »
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 
The following users thanked this post: ebastler

Online wasedadoc

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: gb
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #235 on: November 12, 2023, 06:36:35 pm »
right! playing with sim tonight to design 3rd order elliptic filter (analog/physical) filter (about 60MHz cutoff)... no gibbs effect on sim. so there must be a special one to build a physical filter that can cause "gibbs like" effect. fwiw..
Can you plot the phase versus frequency?
i just got home, see attached. not sure what it tells. but anything larger than 40MHz is more than 180deg phase?
To see if linear phase or not, plot both axes as linear, not log frequency.

Large phase angles per se are not necessarily a problem.  Think about it.  To preserve wave shape all frequencies must be delayed by the same amount of time.   That means phase angle increases linearly with frequency.  Going past 180 or even past 360 degrees is not an automatic no-no.
« Last Edit: November 12, 2023, 06:41:19 pm by wasedadoc »
 

Offline MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11699
  • Country: my
  • reassessing directives...
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #236 on: November 13, 2023, 05:29:40 am »
Can you plot the phase versus frequency?
i just got home, see attached. not sure what it tells. but anything larger than 40MHz is more than 180deg phase?
To see if linear phase or not, plot both axes as linear, not log frequency.

Large phase angles per se are not necessarily a problem.  Think about it.  To preserve wave shape all frequencies must be delayed by the same amount of time.   That means phase angle increases linearly with frequency.  Going past 180 or even past 360 degrees is not an automatic no-no.
unfortunately tina-ti doesnt have linear scale frequency plot. but eyeballing it, the curvy shape could be linear phase when plotted on linear scale x-axis? here's the group delay plot, so i guess its linear phase up to 3MHz? or with some compromise up to 40MHz? see attached. https://audiojudgement.com/group-delay-explanation-measurement-audio/
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 6757
  • Country: de
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #237 on: November 13, 2023, 06:10:02 am »
unfortunately tina-ti doesnt have linear scale frequency plot.

Click the "Log" button in the lower right, next to the "Resolution" entry field.
 

Offline MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11699
  • Country: my
  • reassessing directives...
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #238 on: November 13, 2023, 06:28:43 am »
unfortunately tina-ti doesnt have linear scale frequency plot.
Click the "Log" button in the lower right, next to the "Resolution" entry field.
:palm:
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Online mawyatt

  • Super Contributor
  • ***
  • Posts: 3610
  • Country: us
Re: Sub: Rigol's DHO800 Oscilloscope (Gibbs Effect & Aliasing Misunderstanding)
« Reply #239 on: November 21, 2023, 05:22:14 pm »
Here's something that folks might find interesting. Gibbs Ears created on DHO824 with SDG2042X AWG utilizing Sinewave and Harmonics feature.

Best,
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf