Oscilloscope Library and GUI for Rigol in C# - Page 1
Forum section: electronics / projects

author: electro-logic
author_rank: Contributor
timestamp: February 25, 2018, 09:31:49 am
content: Hello all,I have just released a C# library and a GUI software to control Rigol Oscilloscope (tested with DS1102E but can work with other models too).https://github.com/electro-logic/OscilloscopeWith this library you can automate data acquisition, processing and display using C# and GnuPlot.GUI allow you to acquire data even without code skills and process it with software like ExcelAcquisition of up to 1M data points (Memory Depth: Long, Points Mode: Maximum)Here are some images to better understand what this library allow you to do with very little work.Velocity profile of a stepper-motor from the waveform of a revolution detector with just a click (after little code)Just to inform who can be interested

author: moffy
author_rank: Super Contributor
timestamp: February 26, 2018, 12:31:07 am
content: Great, thanks I'll have a look.

author: Neuromodulator
author_rank: Regular Contributor
timestamp: February 26, 2018, 01:50:03 am
content: I see you are using VISA, I once tried to play a bit with remote control of the oscilloscope. I found at least at that time, that all methods were very unstable, stuff could work or fail apparently randomly. At some point I tried to control it direct socket connections, and through that interface it appeared much more stable, except that if you sent 2 commands to quickly it some times would not process the second command. How well is your code working?

author: electro-logic
author_rank: Contributor
timestamp: February 26, 2018, 09:17:38 am
content: @moffy:Many thanks@neuromodulator:I have just updated the project with better documentation and a bugfix. Updating to VISA 17.5 changed Write API of MessageBasedSessionThe key to a stable control is setting up right buffers and timeout with long read/write, otherwise some garbage data can come out.Yes, it is better to send just one command at time, event queue capacity is limited by default.Now also VISA 17.5 seem working fine (on Windows 10), but if you notice something wrong please open an issue so that I can improve the library.

author: Fire Doger
author_rank: Regular Contributor
timestamp: February 26, 2018, 05:55:45 pm
content: Can you add an executable or someone "without coding skills" will have to download VS and Visa SDKs to build it just for a test?I hate linux user's logic of compile everything on your ownIts interesting, if its fast we can add color grading based on intensity of monochrome. Does it support lan?

author: rhb
author_rank: Super Contributor
timestamp: February 27, 2018, 02:00:58 am
content: Compile it yourself was traditional long before Linux existed. In fact, Linus was still in short pants. Primarily because there were dozens of Unix variants on even more hardware platforms. DEC had Ultrix on both VAX and MIPS in the late 80's and that didn't count the BSD and Sys V licensees running on VAXen from source.I think this is great except that now I have another task to add to my "To Do" list.But thanks. I've got a DS1102E and have been very unhappy with how hard it is to get data onto a PC for analysis.

author: Macbeth
author_rank: Super Contributor
timestamp: February 27, 2018, 02:31:09 am
content: Quote from: Fire Doger on February 26, 2018, 05:55:45 pmBeggars can't be choosers - they certainly can't be directors. OP has provided a very nice code stub anyone can use and expand on. He hasn't just wrote his own version of Matlab, NI LabVIEW or even Keysight BenchView as a totally integrated standalone application.I think this should be posted athttps://www.reddit.com/r/ChoosingBeggars/

author: electro-logic
author_rank: Contributor
timestamp: February 27, 2018, 04:30:36 pm
content: Hello all,Now a compiled binary is available in the project main page. Just try it and give me a feedbackI have tested only with DS1102E (with USB) so I don't know if LAN works fine.If there is interest I can improve the project in the next few weeks. I have some ideas like:- Migration of core library to .NET core for Linux compatibility (to check)- Migration of GUI from Windows Forms to WPF and some improvements- High performance graph embedded in the GUI instead that using GnuplotThank youPS: .NET Framework 4.7.1 required if not already installed:https://www.microsoft.com/en-us/download/details.aspx?id=56116