Just a real quick post about a little side project I will be working on. This is all software and no hardware so I posted in here. Too bad there is no Linux category to post in yet, but if there was, that is where this would go.
I discovered a real easy way to get screen images from my Rigol 1054Z scope, but I also discovered how to control and get measurements from every feature of this scope, from the linux command line!! I can also get and set what I want using NETCAT from my linux home server through Putty on my main Windows 10 rig. I used this for testing of course. The idea is to develop a simple program that will handle the SPCI commands and parameters, and the returned data if needed.
This is a fantastic project that utilizes a sweet feature of the Rigol that I never knew existed!!
Why does this matter to me? Well, it is awesome that I can write a script or configure an interface to trigger my scope and take specific measurements based on something specific I am doing with an embedded system. This opens up the feedback gathered from specific testing without having to fiddle with the scope's controls.
I realize this post is pretty vague and mostly "idea", but I will post some more with specifics as I work through this project. I only have a few minutes but wanted to lay the post groundwork while the thought is in my head.
More when I do it.
Last Edit: 3 weeks 5 days ago by hop. Reason: Topic was mispelled
SPCI, Linux, Home LAN, and the Rigol 1054Z
7 months 3 weeks ago #17916
I cannot decide what to write the app in. Or what language to write it with. I am leaning towards a web based app. That way, it can be served up from my Debian Linux home server and no GUI or specific platform is needed. But then the language choices are pretty vast. JS using jQuery/Ajax and PHP? Perl? Python? Or even C# using ASP?
I might use this as my first Perl or Python but I can crank it out with JS... etc. etc. I already have extensive frameworks with that flavor. Just wanted to sprinkle some nuts on it. Or is it Java Beans? lol
SCPI, Linux, Home LAN, and the Rigol 1054Z
3 weeks 5 days ago #17989
I am disappointed that I did not include some vital info in this thread. A lot happened to me and my family this year, and my started projects are unfinished and scattered everywhere. This is an effort to clean all that up, one mess at a time.
Many know already that you can access and control their Rigol scopes via USB or LAN using SCPI commands. You can do this manually via Netcat (linux) or using a programming language. My preference for this project will be Python. There are tons of scripts out there, some software that is command line AND GUI. My goal is to wrap the SCPI in a script for easier access to my scope.
The goal here is to pull my scopes sample memory by channel into files for analysis. There are many other features to be realized of course, like saving a graphic file of the scope's screen, changing scope settings, and querying scope setting parameters. Writing scripts to automate these functions will allow me to have a nice tool set for analyzing waveforms and diagnosing communications issues between devices on my bench. Especially since the decode features of my Rigol scope are cumbersome and inaccurate to say the least.
Here is a great python script to help get your feet wet. This script only creates a graphic file of the Rigol's screen, but I am adapting it to also save multiple data files for each channel stored in sample memory because I am interested in the whole sample, not just what is on the screen. How I analyze that data is still to be determined, but with a good signal and a reference for each channel, I should be able to create a logic map from the data. I will be specifically targeting I2C for now, but plan to expand for other protocols also.