Dsa815 Keygen Download
A Rigol oscilloscope has a USB output, allowing you to control it with a computer and and perform additional processing externally. I was inspired by Cibo Mahto's article, and came up with some new Python oscilloscope hacks: super-zoomable graphs, generating a spectrogram, analyzing an IR signal, and dumping an oscilloscope trace as a WAV file. The key techniques I illustrate are connecting to the oscilloscope with Windows, accessing a megabyte of data with Long Memory, and performing analysis on the data. Analyzing the IR signal from a TV remote using an IR sensor and a Rigol DS1052E oscilloscope. Super-zoomable graphs One of the nice features of the Rigol is 'Long Memory' - instead of downloading the 600-point trace that appears on the screen, you can record and access a high-resolution trace of 1 million points. In this hack, I show how you can display this data with Python, giving you a picture that you can easily zoom into with the mouse.
Dsa815 Keygen Download Free
The following screenshot shows the data collected by hooking the oscilloscope up to an IR sensor. In the above picture, the sensor is the three-pin device below the screen. Since I've developed an, my examples focus on IR, but any sort of signal could be used. By enabling Long Memory, we can download not just the data on the screen, but 1 million data points, allowing us to zoom way, way in. The graph below shows what it sent when you press a button on the TV remote - the selected button transmits a code, followed by a periodic repeat signal as long as the button is held down. The IR signal from a TV remote.
The first block is the code, followed by period repeat signals while the button is held down. But with Long Memory, we can interactively zoom way on the waveform and see the actual structure of the code - long header pulses followed by a sequence of wide and narrow pulses that indicate the particular button. That's not the end of the zooming - we can zoom way in on an edge of a pulse and see the actual rise time of the signal over a few microseconds. You can do some pretty nice zooming when you have a million datapoints to plot. To use this script, first enable Long Memory by going to Acquire: MemDepth.
Next, set the trigger sweep to Single. Capture the desired waveform on the oscilloscope.
Then run the Python script to upload the data to your computer, which will display a plot using matplotlib. To zoom, click the '+' icon at the bottom of the screen. This lets you pan back and forth through the data by holding down the left mouse button. You can zoom in and out by holding the right mouse button down and moving the mouse right or left.
The magnifying glass icon lets you select a zoom rectangle with the mouse. You can zoom on your oscilloscope too, of course, but using a mouse and having labeled axes can be much more convenient. A few things to notice about the code.
The first few lines get the list of instruments connected to VISA and open the USB instrument (i.e. Your oscilloscope). The timeout and chunk size need to be increased from the defaults to download the large amount of data without timeouts. Next, askforvalues gets various scale values from the oscilloscope so the axes can be labeled properly.
By setting the mode to RAW we download the full dataset, not just what is visible on the screen. We get the raw data from channel 1 with:WAV:DATA? The first 10 bytes are a header and should be discarded. Next, the raw bytes are converted to numeric values with Mahto's formulas. Finally, matplotlib plots the data. There are a couple 'gotchas' with Long Memory. First, it only works reliably if you capture a single trace by setting the trigger sweep to 'single'.
Second, downloading all this data over USB takes 10 seconds or so, which can be inconveniently slow. Analyze an IR signal Once we can download a signal from the oscilloscope, we can do more than just plot it - we can process and analyze it.
In this hack, I decode the IR signal and print the corresponding hex value. Since it takes 10 seconds to download the signal, this isn't a practical way of using an IR remote for control. The point is to illustrate how you can perform logic analysis on the oscilloscope trace by using Python. This code shows how the Python script can wait for the oscilloscope to be triggered and enter the STOP state. It also shows how you can use Python to initialize the oscilloscope to a desired configuration. The oscilloscope gets confused if you send too many commands at once, so I put a short delay between the commands. Eplan panel p8 2.6 crack only.
Generate a spectrogram Another experiment I did was using Python libraries to generate a of a signal recorded by the oscilloscope. I simply hooked a microphone to the oscilloscope, spoke a few words, and used the script below to analyze the signal. The spectrogram shows low frequencies at the bottom, high frequencies at the top, and time progresses left to right. This is basically a FFT swept through time. A spectrogram generated by matplotlib using data from a Rigol DS1052E oscilloscope. To use this script, set up the oscilloscope for Long Memory as before, record the signal, and then run the script. Dump data to a.wav file You might want to analyze the oscilloscope trace with other tools, such as.
By dumping the oscilloscope data into a WAV file, it can easily be read into other software. Or you can play the data and hear how it sounds.
To use this script, enable Long Memory as described above, capture the signal, and run the script. A file channel1.wav will be created. How to install the necessary libraries Before connecting your oscilloscope to your Windows computer, there are several software packages you'll need. I assume you have Python already installed - I'm using 2.7.3. This is National Instruments Virtual Instrument Software Architecture, providing an interface to hardware test equipment. Install, the Python interface to VISA.
If you want to run the graphical programs, install and. You can also use Rigol's software, but the included NIVISA 4.3 software doesn't work with pyVisa - I ended up with VIWARNCONFIGNLOADED errors.
If you've already installed Ultrascope, you'll probably need to uninstall and reinstall NIVISA. If you're using Linux instead of Windows, see. How to control and program the oscilloscope Once the software is installed (below), connect the oscilloscope to the computer's USB port. Use the USB port on the back of the oscilloscope, not the flash drive port on the front panel.
Hopefully the code examples above are clear. First, the Python program must get the list of connected instruments from pyVisa and open the USB instrument, which will have a name like USB0::0x1AB1::0x0588::DS1ED141904883. Once the oscilloscope connection is open, you can use scope.write to send a command to the oscilloscope, scope.ask to send a command and read a result string, and scope.askforvalues to send a command and read a float back from the oscilloscope. When the oscilloscope is under computer control, the screen shows Rmt and the front panel is non-responsive. The 'Force' button will restore local control. Software can release the oscilloscope by sending the corresponding ':KEY:FORCE' command. Error handling in pyVisa is minimal.
If you send a bad command, it will hang and eventually timeout with VisaIOError: VIERRORTMO: Timeout expired before operation completed. The API to the oscilloscope is specified in the.
If you do any Rigol hacking, you'll definitely want to read this. Make sure you use the right programming guide for your oscilloscope model - other models have slightly different commands that seem plausible, but they will timeout if you try them.
Conclusions Connecting an oscilloscope to a computer opens up many opportunities for processing the measurement data, and Python is a convenient language to do this. The Long Memory mode is especially useful, since it provides extremely detailed data samples. Ken I also have a Rigol and would like to try this out on Windows. Do you know of any tool to interface with it on windows? Is it a custom USB i/F or serial? If you have a moment have a look at our AnalysIR project on Indiegogo. (see below for details).
We would be happy to offer you a copy if the project is successful. We would also appreciate any suggestions for features & new protocols to support. We should have 20 protocols supported by the time it is released. BTW: Thanks for all of the work on IR over the years, it has been truly inspirational.
As Part of our project we also plan to release a method for recording IR signals & modulation frequency on Arduino (simultaneously). We will be exhibiting this method at the Dublin Mini Maker Faire on July 27th For anyone interested in IR protocols – we have just launched a project on IndieGoGo for AnalysIR – IR Decoder & Analyzer (Arduino & Raspberry Pi).
Currently we support 17 IR protocols and are looking for more to add as part of the campaign. Suggestions Welcome! You can find out more about the Project on or Screenshot via www.AnalysIR.com. Ken, Any chance of giving me a pointer to a solution? I have just bought a Rigol DS1102E scope from Amazon and would like to access it with Python on OSX 10.9 Maverick. The problem is that when I plug in the USB cable, OSX does not recognise the USB port: i.e.
Ls /dev/tty. does not show anything. I have no trouble seeing when another USB cable is plugged in - say an Arduino.
On the Riogol, selecting computer or Pictbridge under Utilities does not make a difference. I guess I could use RS232 but would lim ego get the USB working.
Thanks, Mike Alport. I am interfacing RIGOL DS1052 with computer using USB cable.
I am acquiring data of two channels in normal mode (600 data points). I have constructed wave forms, but what I am interested in is measuring the phase difference between two waveforms, this is possible only if RIGOL provides me data of channel1 and channel2 at same time intant i.e first sample of ch1 is at t=t0 and first sample value of ch2 is also at t=t0. Kindly tell me in what format is RIGOL transfers data. I am acquiring databy sending WAV:DATA:CHAN1 command, after getting the result I ask for data of channel2.
Comments are closed.