Author Topic: Is there unified software to control scope, signal gen, and power supply?  (Read 2936 times)

0 Members and 1 Guest are viewing this topic.

Offline larrybudTopic starter

  • Contributor
  • Posts: 32
  • Country: us
Hobbyist here. I've either accidentally or unknowingly turned into a Siglent fanboy, and have the 1104xe scope, the sdg1032 signal generator, and the spd3303c power supply which I've acquired all in the last 3 years or so.

I decided to mess around with remote connectivity and got the lan connection working for the scope and signal gen, and hooked the power supply up via usb (there is no lan connection).

I installed the NI-VISA layer, easyscope, easy wave, and easy power. I find easyscope to be pretty clunky so I use the web interface.

My question is, it seems kinda silly that there's separate software for each of these devices. Is there any software available to incorporate all of these under one umbrella? Siglent, if you're listening, why not combine all of these into one? Any 3rd party application which can accomplish this?
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28429
  • Country: nl
    • NCT Developments
This has been attempted but failed in many ways many times. Especially free software provided by manufacturers is utterly useless.

If you want to automate measurements, look into using Python (py-visa) and make sure to install the visa backend that doesn't need the crap from NI. With Python it is pretty easy to put custom user interfaces, plots, etc together.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: shabaz, egonotto

Offline larrybudTopic starter

  • Contributor
  • Posts: 32
  • Country: us
Yeah, I was looking to do it in .net since I'm a .net developer. It's crazy that this isn't an option.

All the interfaces look like they were made in Borland C in 1995 for windows 3.1.
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 29810
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Yeah, I was looking to do it in .net since I'm a .net developer. It's crazy that this isn't an option.

All the interfaces look like they were made in Borland C in 1995 for windows 3.1.
Go looking here for the drivers available:
https://int.siglent.com/download/drivers/

You can find the programming manuals here:
https://int.siglent.com/download/documents/

The PSU has the command set in the user manual.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 
The following users thanked this post: Tycho_Brahe

Offline slugrustle

  • Frequent Contributor
  • **
  • Posts: 287
  • Country: us
I've used Rohde & Schwarz's VISA library, which is royalty free (if memory serves) and C++ to do stuff like this.  R&S's VISA library also has a .NET interface.

https://www.rohde-schwarz.com/us/applications/r-s-visa-application-note_56280-148812.html

The documentation ended up in C:\Program Files (x86)\Rohde-Schwarz\RsVisa on my system after I ran the installer.
 
The following users thanked this post: coromonadalix

Offline slugrustle

  • Frequent Contributor
  • **
  • Posts: 287
  • Country: us
All the interfaces look like they were made in Borland C in 1995 for windows 3.1.

This is why SCPI is still accessible—it's older.  Had SCPI been invented recently, it would be like USB: Thousands of pages of manuals and standards and effectively inaccessible to a single ordinary hobbyist without tons of middleware layers.

I was so happy when a coworker told me about SCPI when I was looking to automate some tests at work.  I looked it up and thought, "it's just ASCII strings over serial! I know how to interface with this!".  After I did some pretty spiffy stuff with C++, some serial cables, and SCPI, my manager said they were going to go with very expensive National Instruments / Labview setups because the C++ code I wrote would be too hard for the test engineers they had subsequently hired to modify / adapt.  NI has the test automation market cornered.

But I'm soooo happy SCPI is still kicking around for interested people to use, and we're not all stuck paying for labview licenses to perform simple test automation tasks.
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 29810
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
There's plenty of tips on how to use SCPI commands for remote control in the App notes:
https://siglentna.com/application-notes/

Further here:
https://int.siglent.com/resource/
« Last Edit: January 28, 2024, 04:20:49 am by tautech »
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline abeyer

  • Frequent Contributor
  • **
  • Posts: 435
  • Country: us
Yeah, I was looking to do it in .net since I'm a .net developer. It's crazy that this isn't an option.

All the interfaces look like they were made in Borland C in 1995 for windows 3.1.

https://github.com/klasyc/ScpiNet
 

Offline larrybudTopic starter

  • Contributor
  • Posts: 32
  • Country: us
Some good stuff here!

I don't really care about the protocol, it's the GUI and integration that is severely lacking.
 

Offline Darkover

  • Contributor
  • Posts: 41
  • Country: de
All the interfaces look like they were made in Borland C in 1995 for windows 3.1.
But I'm soooo happy SCPI is still kicking around for interested people to use, and we're not all stuck paying for labview licenses to perform simple test automation tasks.

I agree by 101% to this! It is so easy to write a fast program in plain C to test something.

And another reason why no special software exist, if it is made by a company all people has
to use the device from this company, but my device are from many different companys

Olaf
 

Offline dobsonr741

  • Frequent Contributor
  • **
  • Posts: 706
  • Country: us
Re: Is there unified software to control scope, signal gen, and power supply?
« Reply #10 on: January 29, 2024, 03:36:04 pm »
If you want all your gear working in tandem without too much code there is LabView.

https://www.ni.com/en/shop/labview.html

Not my fav, I prefer Jupyter notebooks and PyVisa.

Oh, and just ask Copilot or GPT4 to write the code for you.
 

Offline larrybudTopic starter

  • Contributor
  • Posts: 32
  • Country: us
Re: Is there unified software to control scope, signal gen, and power supply?
« Reply #11 on: January 29, 2024, 11:25:53 pm »
For generic software, you would have a library of functions and configuration pertaining to the model selected, mapping to the functions in the UI. If the hardware doesn't support a specific function, you would hide it in the UI.

For example, if you have a power supply, it might be 1,2, or 3 channels. In the config for the model you have, it would define the number of channels, and the UI would be generated appropriately to match that configuration. If the voltage range is -/+ 10V, then the UI wouldn't let you set anything beyond that, etc.

I'm going to talk myself into writing something, aren't I?
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 29810
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28429
  • Country: nl
    • NCT Developments
Re: Is there unified software to control scope, signal gen, and power supply?
« Reply #13 on: January 30, 2024, 11:51:43 am »
All the interfaces look like they were made in Borland C in 1995 for windows 3.1.
But I'm soooo happy SCPI is still kicking around for interested people to use, and we're not all stuck paying for labview licenses to perform simple test automation tasks.

I agree by 101% to this! It is so easy to write a fast program in plain C to test something.
Being mostly a C programmer myself, I can highly recommend using Python. Even with the learning curve, Python is much more effective compared to using C for automating measurements and dealing with the data (displaying, saving). I wrote some a relatively simple script to automate EMC measurements. Writing the same in C (well, C++) would have taken 10 times more lines of code and 50 times more time to develop.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: shabaz, Jacon, abeyer

Offline larrybudTopic starter

  • Contributor
  • Posts: 32
  • Country: us
 

Offline alm

  • Super Contributor
  • ***
  • Posts: 2903
  • Country: 00
Re: Is there unified software to control scope, signal gen, and power supply?
« Reply #15 on: February 04, 2024, 05:19:18 pm »
A problem with making such generic software is that probably don't want to sample and control all instruments the same way. You might want to perform parametric measurements with the scope, while having the function generator produce a constant output but while sweeping the power supply voltage. Or maybe you want the power supply to output a constant voltage but want to test at different amplitudes from the signal generator and save the waveform recorded by the scope. So any such program needs some level of programmability. lxi-tools uses lua scripting for this.

National Instruments SignalExpress was an attempt at a GUI, but clearly it wasn't very successful as it was discontinued. Most people that have these kinds of need will end up writing their own programs using whatever tools (Python, LabVIEW, etc) eventually because they need more flexibility that the standard tools offer. If visualization is important, then using a Jupyter notebook like this can be useful.

Offline jan28

  • Contributor
  • Posts: 43
  • Country: nl
Re: Is there unified software to control scope, signal gen, and power supply?
« Reply #16 on: February 05, 2024, 06:05:38 pm »
I like EEZ studio (https://www.envox.eu/studio/studio-introduction/) for controlling multiple instruments via SCPI. The visual environment allows you to create dashboards controlling multiple instruments at the same time/make calculations/etc. It has a learning curve.

If a low-code UI is your cup of tea is up to you. I like it.

PS. For siglent instruments make sure the SCDP is recognised as a query, this allows you todownload screenshots in the SCPI termial.


 

Offline colorado.rob

  • Frequent Contributor
  • **
  • Posts: 420
  • Country: us
Re: Is there unified software to control scope, signal gen, and power supply?
« Reply #17 on: February 05, 2024, 07:53:19 pm »
I prefer Jupyter notebooks and PyVisa.
Completely agree here. So much can be done with these two tools. Being both control the instruments and quickly graph measurement data retrieved from those instruments is what makes this combo so powerful.
 

Offline jjoonathan

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: Is there unified software to control scope, signal gen, and power supply?
« Reply #18 on: February 06, 2024, 10:40:09 pm »
Yeah, Jupyterlab is the way! Add a vxi11-compatible ethernet-GPIB bridge and you suddenly have zero dependence on Windows and multi-GB driver install packages that sometimes kill Windows.

The graphs and interactive widgets are great and the notebook-based workflow is really good for providing a continuous trajectory between "screwing around," "documented procedure for the technically adept," "distributable library," and "webapp." Python isn't great at desktop GUIs, but I've done them with PyInstaller and PySide in a pinch.


Video Example: https://www.youtube.com/watch?v=dygVTmiumYU&t=356s

Web Example: https://jjoonathan.github.io/FX.html
« Last Edit: February 06, 2024, 10:49:13 pm by jjoonathan »
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28429
  • Country: nl
    • NCT Developments
Re: Is there unified software to control scope, signal gen, and power supply?
« Reply #19 on: February 07, 2024, 07:13:53 am »
I prefer Jupyter notebooks and PyVisa.
Completely agree here. So much can be done with these two tools. Being both control the instruments and quickly graph measurement data retrieved from those instruments is what makes this combo so powerful.
How much programming is needed? Mathplotlib gives you a GUI based plot with just a few lines of Python code without needing to do anything GUI related programming.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5050
  • Country: si
Re: Is there unified software to control scope, signal gen, and power supply?
« Reply #20 on: February 07, 2024, 08:52:02 am »
I have not seen any good GUI software for doing simple SCPI automation (No i don't like LabView)

But yes SCPI is basically "ASCII over a serial port" so it makes it easy to write your own software in whatever language you like. I would NOT recommend using C and similar low level ones for that since string manipulation is a pain in those. More modern languages let you get stuff coded a lot faster with less lines of code. I like to use .net for that since it makes a GUI really easy. But Python is also great for when you want to simply run it from a console or work on Linux.

I would still recommend installing a VISA library. You get the choice from all the big manufacturers NI, Keysight, Rigol, R&S..etc The reason you want it is that it simplifies connection to the instrument where you just open a VISA device by name and it works. Does not matter if it is over USB, RS232, Ethernet, GPIB, PXI over PCIe, GPIB-Ethernet bridge etc... it just magically connects when called by name.

You can mix and match VISA libraries and equipment manufacturers, so pick whatever one you like. I prefer the Keysight one (they call it "Keysight IO") since it lets you also spy on the SCPI traffic and inject commands for debug, also has a decent GUI for setting things up.
https://www.keysight.com/de/de/lib/software-detail/computer-software/io-libraries-suite-downloads-2175637.html
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf