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

0 Members and 1 Guest are viewing this topic.

Offline dexter2048Topic starter

  • Newbie
  • Posts: 4
Using Rigol DS1052E for spectrum analysis
« on: June 03, 2012, 10:22:26 pm »
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, 02:13:33 am by GeoffS »
 

Offline typeglob

  • Contributor
  • Posts: 44
  • Country: nl
Re: Using Rigol DS1052E for spectrum analysis
« Reply #1 on: June 04, 2012, 02:00:52 am »
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, 02:06:43 am by typeglob »
 

Offline MikeK

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
Re: Using Rigol DS1052E for spectrum analysis
« Reply #2 on: June 04, 2012, 02:13:28 am »
Very nice!
 

Offline typeglob

  • Contributor
  • Posts: 44
  • Country: nl
Re: Using Rigol DS1052E for spectrum analysis
« Reply #3 on: June 04, 2012, 03:02:47 pm »
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 04, 2012, 03:27:20 pm by typeglob »
 

Offline chrome

  • Regular Contributor
  • *
  • Posts: 185
  • Country: be
Re: Using Rigol DS1052E for spectrum analysis
« Reply #4 on: June 04, 2012, 03:36:31 pm »
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.
 

Offline Lightages

  • Supporter
  • ****
  • Posts: 4313
  • Country: ca
  • Canadian po
Re: Using Rigol DS1052E for spectrum analysis
« Reply #5 on: June 04, 2012, 06:52:19 pm »
Thank you for your work.
 

Offline chrome

  • Regular Contributor
  • *
  • Posts: 185
  • Country: be
Re: Using Rigol DS1052E for spectrum analysis
« Reply #6 on: June 04, 2012, 08:57:49 pm »
Any chance on it being/going open source?
 

Offline gtsili

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

+1.
 

Offline typeglob

  • Contributor
  • Posts: 44
  • Country: nl
Re: Using Rigol DS1052E for spectrum analysis
« Reply #8 on: June 04, 2012, 09:50:20 pm »
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

  • Regular Contributor
  • *
  • Posts: 122
  • Country: wales
Re: Using Rigol DS1052E for spectrum analysis
« Reply #9 on: June 05, 2012, 12: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

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

Richard.
 

Offline siliconmix

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

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
Re: Using Rigol DS1052E for spectrum analysis
« Reply #12 on: June 05, 2012, 10:17:25 am »
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: 4
Re: Using Rigol DS1052E for spectrum analysis
« Reply #13 on: June 05, 2012, 04:28:16 pm »
This is not work on Windows XP?  :-[ WHY? :'(
 

Offline chrome

  • Regular Contributor
  • *
  • Posts: 185
  • Country: be
Re: Using Rigol DS1052E for spectrum analysis
« Reply #14 on: June 05, 2012, 04:39:08 pm »
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, ...)
 

Offline dorcky

  • Newbie
  • Posts: 4
Re: Using Rigol DS1052E for spectrum analysis
« Reply #15 on: June 05, 2012, 04:41:39 pm »
I saw that, but I still use Wingows XP  ;D
 

Offline chrome

  • Regular Contributor
  • *
  • Posts: 185
  • Country: be
Re: Using Rigol DS1052E for spectrum analysis
« Reply #16 on: June 05, 2012, 04:51:26 pm »
that makes no sense
 

Offline dexter2048Topic starter

  • Newbie
  • Posts: 4
Re: Using Rigol DS1052E for spectrum analysis
« Reply #17 on: June 05, 2012, 11:18:58 pm »
Thanks everyone for the great replies!

2typeglob: I think you get the peak at 32MHz, because the chip draws current twice per clock. Part of the inner circuitry is triggered by rising edge of the clock and the other part by the falling edge.

"labels" where you click on a point: You're right. In fact, I have a "Fixed annotation points" item in my todo list, but I won't be developing the program any further in the near future. 

open source: Not really. Making Delphi chart components has been my minor hobby for quite some years and I'm planning to get some green for it in the future :o)

WinXP: No, it doesn't run on XP, since XP don't have the Direct2D API. And I read on Microsoft's web something like "Don't even bother trying to copy d2d1.dll from another version of Windows". They just want us to buy their product again and again every two years.
By the way, I find it interesting that 3D hardware-accelerated drawing (DirectX) has been around for decades, but 2D came only very recently. One might even get the impression, that there's more fans of 3D FPS games, than those interested in technical charts :o)
           

 

Offline gtsili

  • Contributor
  • Posts: 36
  • Country: gr
  • A software/systems engineer revisiting electronics
Re: Using Rigol DS1052E for spectrum analysis
« Reply #18 on: June 06, 2012, 05:26:13 am »

open source: Not really. Making Delphi chart components has been my minor hobby for quite some years and I'm planning to get some green for it in the future :o)
           

Fair enough. I was looking around for the specifications of the .wfm file format and as it turns out, it is both proprietary and also there is no compatibility even between scopes of the same manufacturer. I have not found a .wfm reader (with source) that works with Rigol, so I was wondering if you can at least release as source the parser part of your program or at least provide us with any documentation and pointers you have on how to parse the file.
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7547
  • Country: 00
  • +++ ATH1
Re: Using Rigol DS1052E for spectrum analysis
« Reply #19 on: June 06, 2012, 05:33:12 am »
<snip>...... I'm planning to get some green for it in the future :o)

1st, thanks for the freestuff, about getting some green, its perfectly fine and I don't have any problem to shell out some, please don't stop on the to do list.

Believe there are many potential customers around here in this forum alone. ;)

PS : Infact this forum it self is the good place to start judging from the popularity of DS1052E.
« Last Edit: June 06, 2012, 05:37:40 am by BravoV »
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: Using Rigol DS1052E for spectrum analysis
« Reply #20 on: June 06, 2012, 06:22:17 am »
The FFT graph from this utility is so good, that I am wondering about using the DS1050E as a simple spectrum analyzer with the help of a vco, mixer and some kind of wideband receiver module, like a 2.4GHz WiFi module. The WiFi channel bandwidths are 20MHz ("g") and 40MHz ("n").

So a mixer with a 1.4 to 2.4GHz VCO going into the WiFi receiver module, then to the Rigol - something like that. The Rigol then captures the result and the data is used in the FFT viewer.

Any RF guys with ideas?

Richard.
 

Online bingo600

  • Super Contributor
  • ***
  • Posts: 1977
  • Country: dk
Re: Using Rigol DS1052E for spectrum analysis
« Reply #21 on: June 06, 2012, 05:54:53 pm »
I would love to try it out.
I have a DS1052E & a DS1102E , and 3 WinXP machines + 2 Ubuntu Machines.

No Win7   :-[

/Bingo
 

Offline typeglob

  • Contributor
  • Posts: 44
  • Country: nl
Re: Using Rigol DS1052E for spectrum analysis
« Reply #22 on: June 07, 2012, 01:56:10 am »
1st, thanks for the freestuff, about getting some green, its perfectly fine and I don't have any problem to shell out some, please don't stop on the to do list.

Believe there are many potential customers around here in this forum alone. ;)
Yup. Depending on the features and the price, I would buy it. However, with a commercial product I do think you need to support it (fix bugs, mainly) for at least 6-12 months. Assuming you come out with a single version and don't add any new features, 6-12 months should be enough to iron out all the bugs and get it rock stable.
 

Offline dexter2048Topic starter

  • Newbie
  • Posts: 4
Re: Using Rigol DS1052E for spectrum analysis
« Reply #23 on: June 08, 2012, 11:25:41 am »
2gtsili: my wfm file parser is here: http://meteleskublesku.cz/wfm_view/file_wfm.zip. I had no reference when writing it, all is just rev-engineered. Anyway, I think that Rigol's wfm format is a bit messy.

2typeglob: I don't plan to sell the wfm viewer. It's free. But I don't want to release the full source, because I want to sell the Delphi chart component used within.
 

Offline gtsili

  • Contributor
  • Posts: 36
  • Country: gr
  • A software/systems engineer revisiting electronics
Re: Using Rigol DS1052E for spectrum analysis
« Reply #24 on: June 08, 2012, 12:07:46 pm »
Wow, I am both impressed about taking the time to rev-eng Rigol's messy wfm format and the high quality of your source code. Thumps up!!!

I also found this in your source code:
Code: [Select]
yes = True; nay = False; ;D Awesome, I like it.

Thank you for open sourcing the parser, hopefully whoever makes use of it will give you credit. I certainly will if I put my lazy ass down and do something with it. :P

2gtsili: my wfm file parser is here: http://meteleskublesku.cz/wfm_view/file_wfm.zip. I had no reference when writing it, all is just rev-engineered. Anyway, I think that Rigol's wfm format is a bit messy.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf