Author Topic: Why does my Scope do this, and what specification do I look for to avoid it.  (Read 10151 times)

0 Members and 1 Guest are viewing this topic.

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16
Hello, bit of a digital scope newb here!

I have the Rigol DS1052E (not modded) and i am looking at chaotic attractors, which are running at 0.1- 1 hz cycle time.
I am using XY mode.

at that low frequency, the scope only shows the trace less than 20% of the time, so basically i just get a dotted line. quite useless! adjusting the timebase just changes the length of the dots.
on my analog scope it is also useless, because it has low persistence, you cant see the trace at that low speed.

I would have though displaying a slowly moving voltage would be EASIER, not harder, anyways what causes it, and what specification would i look at in a different Digital scope so that would not happen?

(also i would like variable persistence, rather than just OFF and ON.)

Thanks!
 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
IIRC the Rigol specs say the lowest frequency is ~ 5 Hz, not sure why.

For very slow items, you might get a way with the roll mode, its triggerless, and simply like seismometer, just a 'roll' of paper with a pen on it that registers as the event occurs.
Best Wishes,

 Saturation
 

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16
The roll mode is good for low frequency stuff, but there is no trigger, and it will not work in XY mode.
 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
What is the pulse width of the signal, at this low frequency?

The roll mode is good for low frequency stuff, but there is no trigger, and it will not work in XY mode.
Best Wishes,

 Saturation
 

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16
Often it will be something like a sine wave on one axis, and version wave which has been processed on the other axis, this varies with time, and i want to see a complete record of the trace.
(it is for a modular synthesizer)

I would be willing to upgrade to a better scope if i can avoid this, but I have not seen any demos of XY mode on digital scopes.
 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
There is an archived discussion on using the XY mode, in the example it was for viewing lissajou figures.  If you only see 'dots' its a question of setting the right sampling rate, but if the waveform is random onset it could be challenging to find the right setting.

https://www.eevblog.com/forum/index.php?topic=553.msg33581#msg33581

 So far the best XY mode I've seen is with the new Agilent Infiniivision, I think Dave has some lissajou figures and a demo file that requires XY mode to draw images on the screen; it will only work with analog scopes and fast wfms/s DSOs.
« Last Edit: October 20, 2011, 08:15:38 pm by saturation »
Best Wishes,

 Saturation
 

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16
I just noticed that in XY mode the "dots or vector" display mode only allows dots. i think this could be it,
 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
If so, post a pic of the results, I'm curious to see this outcome ;)

Once the sampling rate is set enough so the dots are more frequent you can use persistence to 'string' them together.

I just noticed that in XY mode the "dots or vector" display mode only allows dots. i think this could be it,
Best Wishes,

 Saturation
 

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16


here are a few, I saw that there are some scope (quite expensive ones) that actually change the persistence color depending on how many samples had fallen on each pixel, Thats a feature i would love to have but i could fake it with a PC program if i could capture a long enough video.
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 11888
  • Country: us
At such low frequencies couldn't you just capture the raw data on a PC and then plot it in software?
 

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16
you know, It never entered my mind, but i think i have almost everything i need to do that (except the software) and it would be 24 bit as well.
maybe you saved me from spending $$$ on a new scope :)

now to check if i have any DC coupled audio input device.
« Last Edit: October 20, 2011, 08:48:42 pm by Neutron7 »
 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
This is beautiful!  The Rigol never had it so good.  At that low frequency I think there are several PC scope programs that use the sound card for input but it escapes me if any do X-Y.
Best Wishes,

 Saturation
 

Offline ciccio

  • Frequent Contributor
  • **
  • Posts: 659
  • Country: it
  • Designing analog audio since 1977
    • Oberon Electrophysics
This is beautiful!  The Rigol never had it so good.  At that low frequency I think there are several PC scope programs that use the sound card for input but it escapes me if any do X-Y.

I'm not sure that a standard sound card will have any usable response at VERY low frequencies.
Maybe the input capacitors must be shorted.
regards
Strenua Nos Exercet Inertia
I'm old enough, I don't repeat mistakes.
I always invent new ones
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 37740
  • Country: au
    • EEVblog
IIRC the Rigol specs say the lowest frequency is ~ 5 Hz, not sure why.

That's the -3dB spec for the AC input coupling (due to the value of the capacitor used). If you use DC input coupling, there is no such issue, and obviously works down to DC.

Dave.
 

alm

  • Guest
Good luck finding a DC coupled audio device. Even if you bypass the filter the DC performance will probably suck.

Would setting triggering mode to normal instead of auto prevent the scope from switching to roll mode? Or is it purely the time base setting beyond a certain value that triggers it?
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Good luck finding a DC coupled audio device. Even if you bypass the filter the DC performance will probably suck.

Would setting triggering mode to normal instead of auto prevent the scope from switching to roll mode? Or is it purely the time base setting beyond a certain value that triggers it?

The Rigol works fine in normal timebase mode at low frequencies. You can feed in 0.01 Hz and set the timebase to 10 seconds per division, and sit and wait for a few minutes for the first trigger. Below 50mS per division, the Rigol doesn't store any more data then the visible waveform which is probably a compromise so that the oscilloscope didn't slow down to an unuseable level at slow timebases. The benefits of providing full memory to slow timebases is probably not worth the hassles of explaining to irate customers why some waveforms take an hour to appear on the screen.

The issue here is that Neutron7 is using it in XY mode, and it sounds like it doesn't work great in XY mode at very low frequencies. It sounds like it only draws dots rather then vectors, and it doesn't run continuously like an analogue storage cro would do.

Because long memory does not work at slow timebases, it means you cannot even use the Rigol as a capture device for later processing on the PC. 

I don't think there is a work around.

Richard
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 11888
  • Country: us
Good luck finding a DC coupled audio device. Even if you bypass the filter the DC performance will probably suck.
I wasn't specifically thinking of an audio device, more along the lines of an off the shelf data acquisition card or even a microcontroller via the onboard ADCs. If the budget stretches to an expensive oscilloscope, I presume it would stretch to an analog data interface for a PC...?
 

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16
Exactly. I am trying a microcontroller now, and if it works ill just send serial data to the PC and use processing to build the graphics.
 

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16
Arduino analog in>serial>processing

sketch with "color graded persistence" (actually just make a pixel get lighter every time it is "hit")


« Last Edit: October 23, 2011, 05:35:44 am by Neutron7 »
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
That is just brilliant.  Well done!
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Can you interpolate between the dots in processing to draw the plots as lines?
 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
Even more beautiful with better resolution, awesome job.

Best Wishes,

 Saturation
 

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16
Can you interpolate between the dots in processing to draw the plots as lines?

yes i am working on that now, first i have to find out why processing is so slow, I thought it was the serial port, but i did some stuff without it, just to see, and it wont even use 1% of 1 core on my PC.
 

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16
Here we go. interpolated (just lines) between the points, fixed up some other problems. these are screen shots directly out of "processing"
also i got it to speed up considerably. it does 700 points per second, it was doing 60.

images are scaled exactly to 10 bit data coming in, 1024x1024

http://imgur.com/a/yuJXk (warning, large images)



« Last Edit: October 25, 2011, 03:35:32 am by Neutron7 »
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11639
  • Country: my
  • reassessing directives...
just awesome!
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
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Absolutely stunning images.

Also from the smoothness of the lines, your micro A/D is just working perfectly. You could spend a lot of money buying an instrument that could match the performance of your programmed microprocessor.

I have never bothered to look much at processing, but I think now I should. It is obviously not super fast, but it is the results that matter.

Richard.

 

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16
Thank you,

I am very pleased with the result as well, as for processing being slow, my sketch (program) has to get 5 bytes from the serial port before it can draw the next line, I am pretty sure the speed is limited there, rather then by the program itself (sure its slower than native c+, but you can write a PC/MAC/LINUX compatible program as easy as arduino.)
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 11888
  • Country: us
Stunning images indeed.

I'm not sure why processing seems so slow; you should be able to go much faster than you are reporting.

A good tip would be to do processing in two stages. Firstly collect the data in a file on the PC and store it for later processing. Maybe do a low resolution plot in real time just to get a feel for what you are recording. Once you have collected the data, process it as a whole batch in one go while you experiment with the plot colours and other settings. That gives you many tries to get the best image quality.

For plotting, take a look at gnuplot. You should be able to feed a raw data file into it and get plots just like yours very rapidly.
 

Offline elCap

  • Regular Contributor
  • *
  • Posts: 109
  • Country: jp
Very impressive images!

Can you tell us little about what you are detecting and how it works? Where are the X and Y signals coming from? Is it something easy (DIY possible?) or very expensive and complicated?
 

Offline Neutron7Topic starter

  • Contributor
  • Posts: 16
Very impressive images!

Can you tell us little about what you are detecting and how it works? Where are the X and Y signals coming from? Is it something easy (DIY possible?) or very expensive and complicated?

actually is is something very simple. it is an Arduino connected to some level shifters and a DAC to use with modular synthesizers, but if you wanted to you can directly use these arduino sketches, and use 10 bit PWM out (just skip the GD parts)  pins 9 and 10 can be set to 10 bit PWM instead of 8 bit, by telling counter 1 register to be 16 bit.

http://jlswbs.blogspot.com/2011_10_01_archive.html

I am monitoring it with another Arduino using analogin>serial out  I had to put a capacitor on the vref, to get the analogins decent, and also not use the "fast analogin" trick.

the actual generator is here (*warning, facebook) http://www.facebook.com/pages/Neutron-Shield-Modulator-by-the-original-DeFex/191304900944828
It also generates LFOs, envelopes, sequencers and so on.

As for slowness of processing, i think i know what might be causing it, when i read the data from the serial port it is separated back in to useful values with string manipulation, i should probably use something more efficient but it is the only thing i could get to work on my first go. I am ot quite sure how to send a "stop" byte when the thing could be sending any value (which might accidentally be read as a stop byte)



« Last Edit: October 25, 2011, 12:29:32 pm by Neutron7 »
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11639
  • Country: my
  • reassessing directives...
you can program arduino just like programming other avr bare chip in AVRStudio using what you like, C or asm, compile it and get the hex file sent by avrdude to the arduino, i sniffed what the AVRStudio command sent to avrdude last time for my mega and send the hex file using just DOS and avrdude, maybe different command for your arduino, so you have to work it out. you have to handle all of the comm yourself though (just like programming bare chip remember?) esp the uart Rx and Tx where the USB (FTDI) send data through. i then developed PC app that comm'ed with FTDI (hence the arduino) to make realtime Rx Tx comm. heck you can even build a USB oscilloscope with the arduino.
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
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf