Author Topic: bench power supply that have a Linux USB/LAN GUI interface?  (Read 2743 times)

0 Members and 1 Guest are viewing this topic.

Offline anononoTopic starter

  • Newbie
  • Posts: 5
  • Country: fr
bench power supply that have a Linux USB/LAN GUI interface?
« on: October 10, 2020, 03:14:15 am »
Hi,
would you have models of bench PSU that are controllable through Linux?
Commandline would be fine, GUI would be a must.
Any recommendation is welcome, from let's say ~[0 to +-12V,0 to5A] all the way up to ~[0 to +-60V, 0 to 10A].

I know Riden RD6012 60V 12A are affordable and have a nice software for windows and android, but I saw nothing for linux yet except this https://github.com/eez-open/psu-firmware ...
 

Offline Matje

  • Regular Contributor
  • *
  • Posts: 135
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #1 on: October 10, 2020, 05:38:01 pm »
Just look for PSUs that have a LAN interface and support LXI, some may even have a Web interface for control.

On Linux look for something like "lxi-tools" and GUIs built on top of that. Or have a look at "sigrok", which supports some PSUs via USB connection.

Rigols DP800 series seems to have support for it, some of the Siglents too, and probably tons of others.
 
The following users thanked this post: I wanted a rude username

Online Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3361
  • Country: nl
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #2 on: October 10, 2020, 06:49:56 pm »
Commandline would be fine, GUI would be a must.

So what is it? CLI or GUI?

DPS5005 seems to be a popular module, and there is a version with a serial interface which can be controlled by simple commands, so I recon there are at least some python libraries floating around for it, but it's not SCPI.

Korad 30V 5A power supply also has a version with a programmable interface, and is relatively cheap.

The project you found is based on:
https://www.crowdsupply.com/envox/eez-h24005 but you probably already knew that.

Anything supporting SCPI should be easy to get going, if you have some experience with programming.
 

Offline nightfire

  • Frequent Contributor
  • **
  • Posts: 585
  • Country: de
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #3 on: October 10, 2020, 11:27:44 pm »
lxi-tools are CLI, but there is an experimental GUI on top of that.

Siglent seemed to have jumped that train some years ago:
https://siglentna.com/application-note/lxi-tools/
 

Offline anononoTopic starter

  • Newbie
  • Posts: 5
  • Country: fr
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #4 on: October 11, 2020, 02:06:25 am »
@Matje Thank you for Sigrok, but I'm not sure if it's like a generic GUI as https://lxi-tools.github.io/ , it seems to be just a database listing all individual efforts about some specific device, since the page about the RD6006 https://sigrok.org/wiki/Riden_RD6006 only redirects to the python CLI https://github.com/Baldanos/rd6006
Here https://lxistandard.org/Products/ProductList.aspx in category 'power supplies' they don't list any Siglent device, and on your page https://siglentna.com/application-note/lxi-tools/ at the end they list everything but power supply devices.. Would you know some places where I could get a list ? Afaik this brand is commonly sold online in my country (fr) without some importation fees

@Doctorandus_P + @Matje + @nightfire I see in the lxi-tools linux GUI that there is a tab for SCPI keyboard commands... What is the difference between SCPI and LXI interfaces? LXI includes SCPI and all LXI devices are SCPI but not all SCPI devices are LXI-enabled?

@Doctorandus_P
So what is it? CLI or GUI?
Actually both in order to make custom routine tests and record the PSU display stream. A web app instead of a GUI software would be appreciated as I'd be sure it works in linux but
  • I wonder if it won't be "less real-time" via web than via a software
  • I'm not sure I can find any high-end web-enabled device for a price under 200$

@Doctorandus_P KA3005P seems to be a very good competitor for the RD6006 build but as for the RD6006, I only saw a GUI software on Windows and nothing on Linux, would you have a link?

Regards
« Last Edit: October 11, 2020, 02:13:30 am by anonono »
 

Offline mjkuwp

  • Supporter
  • ****
  • Posts: 259
  • Country: us
  • mechanical engineering defector
    • The Mz Lab
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #5 on: October 11, 2020, 04:57:50 am »
I just bought a Siglent SPD1305X and it has this.

and have done some automation using Linux on Raspberry pi.  I use Python and the library python-vxi11.  Recently I have been doing some projects with power supplies, meters and electronic loads.  Many of these have USB or Serial inputs but I have found that I like the Ethernet connection the best because it is more uniform between Linux and Windows.
 

Online Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3361
  • Country: nl
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #6 on: October 11, 2020, 11:02:57 am »
I do not now of Linux software for these power supplies, just that they are programmable ( Mostly with a USB <==> Serial chip).

Any Linux PC should recognize these chips out of the box and initialize them as a serial port.
You can check this by checking dmesg just before and just after you plugged the device in, or with lsusb, which lists USB devices.

I do not like Python much (especially that ridiculous whitespace dependence) but it does have the ability to quite a lot with a few lines of code. Making a CLI Python script as an interface to your power supply should be easy enough if you have some proper documentation of your power supply.

Starting a TKinter GUI from Python is also around 5 lines of code, and with libraries such as matplotlib you can also draw graphs of measurements
Learning how to use all these tools will take quite some time. The reason I recommend Python is because it seems to have become the de facto standard for scripting in lots of applications. Sigrok (Pulseview), KiCad, FreeCAD, they all use Python.

SCPI is:
https://en.wikipedia.org/wiki/Standard_Commands_for_Programmable_Instruments

LXI is:
https://en.wikipedia.org/wiki/LAN_eXtensions_for_Instrumentation

So SCPI is a protocol to encode data into (pretty human readable) text strings while LXI is a way to exchange data over a LAN interface.
« Last Edit: October 11, 2020, 11:05:33 am by Doctorandus_P »
 

Offline mjkuwp

  • Supporter
  • ****
  • Posts: 259
  • Country: us
  • mechanical engineering defector
    • The Mz Lab
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #7 on: October 11, 2020, 01:18:09 pm »
Looking at the so-called standards such as LXI/SCPI/IVI/USBTMC and so on can be pretty confusing.  Making things even more confusing, SCPI is also now known as IVI

https://ivifoundation.org/about/default.aspx

"The SCPI Consortium voted to become part of the IVI Foundation in late 2002 and the IVI Foundation Board of Directors voted to accept the merger in the spring of 2003. IVI has assumed control of the SCPI specifications and all ongoing work will be accomplished as part of the IVI Foundation."


What is important is that the instrument supports SCPI/IVI command styles.  You can check the individual documentation of an instrument to verify this.  Having worked with 3 different power supplies recently, I found that even though the SCPI/IVI commands follow a 'standard' there are so many varieties of command styles that you really have to write software for each brand independently.

There are some USB/Serial instruments that have an interface but do not have SCPI/IVI commands and they would have their own binary protocol - I stay far away from those.   I doubt that any LXI would have such a protocol.

 

Offline Matje

  • Regular Contributor
  • *
  • Posts: 135
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #8 on: October 11, 2020, 05:23:06 pm »
@Doctorandus_P + @Matje + @nightfire I see in the lxi-tools linux GUI that there is a tab for SCPI keyboard commands... What is the difference between SCPI and LXI interfaces? LXI includes SCPI and all LXI devices are SCPI but not all SCPI devices are LXI-enabled?

SCPI and LXI are different but related things.

SCPI is a set of standard commands for all sorts of programmable devices, like PSUs, oscilloscopes, signal generators etc. Historically this was used over GPIB bus or RS232, but nowadays also can work over USB or Ethernet.

LXI is a standard for controling devices over LAN, i.e. Ethernet. It does in itself not specify SCPI commands be used AFAIK but many devices supporting LXI also support SCPI commands via some standard TCP port, meaning in a pinch you can control your device with telnet and writing a program for it is very simple.

Wikipedia has more info about all this stuff.

  • I wonder if it won't be "less real-time" via web than via a software
  • I'm not sure I can find any high-end web-enabled device for a price under 200$

Well, web will be less real time usually, but depending on the use case this might not matter.

As for the prices, sorry, all instruments sporting SCPI, LXI and so on fall more on the "high end" side of things and so are more expensive than simpler devices. Especially true for PSUs, since a simple (perfectly usable) PSU doesn't need a microcontroller, Ethernet port and a not quite trivial chunk of software, a remotely controllable one however does - which increases costs.
 

Offline rsjsouza

  • Super Contributor
  • ***
  • Posts: 5986
  • Country: us
  • Eternally curious
    • Vbe - vídeo blog eletrônico
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #9 on: October 11, 2020, 05:35:07 pm »
would you have models of bench PSU that are controllable through Linux?
Commandline would be fine, GUI would be a must.
Any recommendation is welcome, from let's say ~[0 to +-12V,0 to5A] all the way up to ~[0 to +-60V, 0 to 10A].

I know Riden RD6012 60V 12A are affordable and have a nice software for windows and android, but I saw nothing for linux yet except this https://github.com/eez-open/psu-firmware ...
Keysight E36300 series has LXI and USB controls, and Keysight has a some references about it. All a bit too experimental, but still...

https://www.keysight.com/main/editorial.jspx?cc=US&lc=eng&ckey=1189290&id=1189290&cmpid=20586
Vbe - vídeo blog eletrônico http://videos.vbeletronico.com

Oh, the "whys" of the datasheets... The information is there not to be an axiomatic truth, but instead each speck of data must be slowly inhaled while carefully performing a deep search inside oneself to find the true metaphysical sense...
 

Offline nightfire

  • Frequent Contributor
  • **
  • Posts: 585
  • Country: de
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #10 on: October 11, 2020, 05:43:02 pm »
@Matje Thank you for Sigrok, but I'm not sure if it's like a generic GUI as https://lxi-tools.github.io/ , it seems to be just a database listing all individual efforts about some specific device, since the page about the RD6006 https://sigrok.org/wiki/Riden_RD6006 only redirects to the python CLI https://github.com/Baldanos/rd6006
Here https://lxistandard.org/Products/ProductList.aspx in category 'power supplies' they don't list any Siglent device, and on your page https://siglentna.com/application-note/lxi-tools/ at the end they list everything but power supply devices.. Would you know some places where I could get a list ? Afaik this brand is commonly sold online in my country (fr) without some importation fees


At the Siglent homepage the info that the PSU will support at least scpi is a bit hidden in the datasheets and manuals. Amazon.fr carries those, as probably other distributors.
 

Offline anononoTopic starter

  • Newbie
  • Posts: 5
  • Country: fr
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #11 on: October 12, 2020, 12:42:38 am »
Thank you guys for all these routes, in the meantime I found that the Korad KA3005P does have a linux USB interface called labpower-qt  ^-^
16min27
https://github.com/crapp/labpowerqt (no fork seems to be more advanced) it also mentions handling the KA6010P but I'll open another post for knowing how much power I need
The plot seems to not be real-time but it may be ok for some people

Thank you for the Keysight ref, the doc seems detailed but I don't have 1300€ to spend unfortunately  :'(
The KA3005P can be purchased for 110€ but I'll still investigate the Siglent ref you guys gave me before purchasing :-+
 

Offline RenThraysk

  • Regular Contributor
  • *
  • Posts: 106
  • Country: gb
Re: bench power supply that have a Linux USB/LAN GUI interface?
« Reply #12 on: October 12, 2020, 01:05:20 am »
Software wise there is WebUSBTMC. Not tried it but seems would easy to create custom UIs for USB gear.

https://github.com/ananswer/webusbtmc

Even integrated with blockly, a gui programming editor, https://webusbtmc.net/blocklypage/blocklypage.html
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf