Author Topic: Using Rigol DS1052E for spectrum analysis  (Read 11403 times)

0 Members and 1 Guest are viewing this topic.

Offline dexter2048

  • Newbie
  • **
  • Posts: 3
Using Rigol DS1052E for spectrum analysis
« on: June 04, 2012, 08:22:26 AM »
I tried to use the FFT feature of DS1052E, but I could not convince the damn thing to show what I needed to see. Finally I decided to invest some time and write a wfm file viewer with FFT spectrum analysis.

The results are surprisingly nice, especially with sampling rates upto 500MHz, where DS1052E allows to store 1M samples. With a piece of wire inserted instead of probe (first picture) I sampled and stored the inducted waveform. The second picture shows FM band of the resulting spectrum :o) The noise floor and number of "visible" FM stations is really nice for an 8-bit ADC!

I made the viewer accessible for everyone at http://meteleskublesku.cz/wfm_view/ (freeware :o)
« Last Edit: June 04, 2012, 12:13:33 PM by GeoffS »

Offline typeglob

  • Member
  • ***
  • Posts: 44
  • Country: nl
Re: Using Rigol DS1052E for spectrum analysis
« Reply #1 on: June 04, 2012, 12:00:52 PM »
Thanks for this, it looks interesting.

Edit: I toyed around with it a bit and this goes into the toolbox  :)
« Last Edit: June 04, 2012, 12:06:43 PM by typeglob »

Offline MikeK

  • Member
  • ***
  • Posts: 541
  • Country: us
Re: Using Rigol DS1052E for spectrum analysis
« Reply #2 on: June 04, 2012, 12:13:28 PM »
Very nice!

Offline typeglob

  • Member
  • ***
  • Posts: 44
  • Country: nl
Re: Using Rigol DS1052E for spectrum analysis
« Reply #3 on: June 05, 2012, 01:02:47 AM »
I did some more testing. I probed the +5V output of the power regulator on my Arduino Mega (ATmega 2560, 16 MHz clock). Using the FFT function on the Rigol itself I don't see anything, but with your program I do.


http://img404.imageshack.us/img404/521/arduino2560.png

I see a peak at 32 MHz, with harmonics at 64, 96, etc and some kind of 'echo' (not the right term) at 16 and 48 MHz (peaks have roughly the same level). This was while powered from USB, but when powered from a seperate DC supply I got pretty much the same thing.

It surprises me I get a peak at 32 MHz, not 16 MHz. As far as I know the ATmega doesn't internally double its clock or something like that. The ATmega may have been running some code that has a fast PWM configured (been experimenting with DDS), but as far as I know that PWM runs at a maximum of 16 MHz (= system clock), not 32.

Anyway, the result intrigues me; your software definately can extract more from the data than the FFT function on the Rigol itself.

Edit: hmm, if I would look at a 16 MHz square wave, I would only get odd-numbered harmonics, which might explain why I see a peak at 32, 64 and 96 but not at 48, 80, etc. However, there is something there at 48 MHz; after that things disappear a bit in the general noise.
« Last Edit: June 05, 2012, 01:27:20 AM by typeglob »

Offline chrome

  • Member
  • ***
  • Posts: 178
  • Country: be
Re: Using Rigol DS1052E for spectrum analysis
« Reply #4 on: June 05, 2012, 01:36:31 AM »
Wow this thing is nice, would nice if you could add "labels" where you click on a point and it either adds a legend for it or adds a label near the point.

Online Lightages

  • Member
  • ***
  • Posts: 946
  • Country: cl
  • Canadian po
Re: Using Rigol DS1052E for spectrum analysis
« Reply #5 on: June 05, 2012, 04:52:19 AM »
Thank you for your work.

Offline chrome

  • Member
  • ***
  • Posts: 178
  • Country: be
Re: Using Rigol DS1052E for spectrum analysis
« Reply #6 on: June 05, 2012, 06:57:49 AM »
Any chance on it being/going open source?

Offline gtsili

  • Member
  • ***
  • Posts: 36
  • Country: gr
  • A software/systems engineer revisiting electronics
Re: Using Rigol DS1052E for spectrum analysis
« Reply #7 on: June 05, 2012, 07:40:34 AM »
Any chance on it being/going open source?

+1.

Offline typeglob

  • Member
  • ***
  • Posts: 44
  • Country: nl
Re: Using Rigol DS1052E for spectrum analysis
« Reply #8 on: June 05, 2012, 07:50:20 AM »
would nice if you could add "labels" where you click on a point and it either adds a legend for it or adds a label near the point.
yeah, that's also what I was missing a bit. It has an 'annotation' function, but you can just use it to show a single point, not do something like this.

Offline Kozmyk

  • Member
  • ***
  • Posts: 122
  • Country: wales
Re: Using Rigol DS1052E for spectrum analysis
« Reply #9 on: June 05, 2012, 10:25:54 AM »
This is excellent work.
Thank you for sharing it with us.

I've just grabbed it for now.
I'll have a go with it after the holidays.  ;)

Offline amspire

  • Member
  • ***
  • Posts: 2331
  • Country: au
Re: Using Rigol DS1052E for spectrum analysis
« Reply #10 on: June 05, 2012, 12:06:59 PM »
I tried the viewer and I really love it. A really neat and clear plot. Thank you dexter2048.

Richard.

Offline siliconmix

  • Member
  • ***
  • Posts: 466
  • Country: wales
Re: Using Rigol DS1052E for spectrum analysis
« Reply #11 on: June 05, 2012, 03:56:49 PM »
thankyou and welcome to this blog you very clever person.i am envious of your programming skills .

Offline saturation

  • Member
  • ***
  • Posts: 3687
  • Country: us
    • NIST
Re: Using Rigol DS1052E for spectrum analysis
« Reply #12 on: June 05, 2012, 08:17:25 PM »
KUDOS! Fantastic work, you've made a huge dent in the functionality of the 1052e!  Your software should be mandatory for all Rigol owners.
Best Wishes,


Saturation

Offline dorcky

  • Newbie
  • **
  • Posts: 3
Re: Using Rigol DS1052E for spectrum analysis
« Reply #13 on: June 06, 2012, 02:28:16 AM »
This is not work on Windows XP?  :-[ WHY? :'(

Offline chrome

  • Member
  • ***
  • Posts: 178
  • Country: be
Re: Using Rigol DS1052E for spectrum analysis
« Reply #14 on: June 06, 2012, 02:39:08 AM »
This is not work on Windows XP?  :-[ WHY? :'(

Quote
Requirements:
  Basic knowledge of windowed FFT spectrum analysis
  Any version of Windows that supports Direct2D API (Server 2008, Vista, 7, ...)


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf