Author Topic: SmuView - a sigrok GUI for power supplies, multimeters and more  (Read 2521 times)

0 Members and 1 Guest are viewing this topic.

Offline knarfS

  • Contributor
  • Posts: 14
  • Country: de
SmuView - a sigrok GUI for power supplies, multimeters and more
« on: February 18, 2020, 10:56:46 pm »
Hi there,

I'd like to present my open source project SmuView to you:

https://sigrok.org/wiki/SmuView
https://github.com/knarfS/smuview

SmuView is a GUI for the sigrok library that supports a wide variety of analog devices like power supplies, electronic loads, multimeters, LCR meters and many more.
SmuView can control devices and collect data from devices. It can manipulate (via math channels) and visualize the collected data.
SmuView also has a python scripting extension to automate, setup and control complex or repetitive measurements, to process the incoming data and to create a standardized user interface for those measurements.

The manual gives a nice overview of all features:
https://knarfs.github.io/doc/smuview/0.0.4/manual.html

You can download AppImages for Linux and Windows installers here:
https://github.com/knarfS/smuview/releases/

At the moment not all power supplies are supported (these sigrok drivers need some work). You can find a list of all supported devices in the wiki (link above).

I'm looking forward to your comments,
Frank
 
The following users thanked this post: cdev, thm_w, BFX, hendorog, prasimix, coromonadalix, Microcheap, abraxa, Jacon, knapik, eplpwr

Offline knarfS

  • Contributor
  • Posts: 14
  • Country: de
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #1 on: March 02, 2020, 01:21:13 pm »
A quick update for SmuView 0.0.4:

Thanks to Christian F. (User Feuerwerk @ github), there is now a DMG for macOS >= 10.11 (El Capitan) available:
https://github.com/knarfS/smuview/releases/tag/v0.0.4
 

Offline jcfoto

  • Contributor
  • Posts: 9
  • Country: fr
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #2 on: April 21, 2020, 05:09:29 pm »
Hello, knarfS.

Yesterday and today i tried to use smuview on sigrok base. I'm on Linux and tried to compile twice projects ... with permanents dependance librairies problems.
After numbers cries and others, i'd seen your post on EEVblog, about Smuview without any installation : fantastic idea and work.

So i'd uploaded file  Smuview-0.0.4-x86_64.AppImage since your web site https://github.com/knarfS/smuview/releases. But it's PULSEVIEW that arrive on my computer ... and it work fine with Openbench sniffer !!!

I'm very happy to use PulseView and now, would try SmuView. Might you say me how try it in the same conditions : wythout  compilation and installation ?
Thank you.
 

Offline knarfS

  • Contributor
  • Posts: 14
  • Country: de
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #3 on: April 22, 2020, 07:26:44 pm »
I'm on Linux and tried to compile twice projects ... with permanents dependance librairies problems.
There are two ways to build SmuView:
1. Using the all-in-one build script as described in the SmuView manual, chapter 2.1.2 (https://knarfs.github.io/doc/smuview/0.0.4/manual.html#_linux).
2. Build everything (libserialport, libsigrok and SmuView) by yourself as described here: https://sigrok.org/wiki/Linux#Building_.28manually.29
In any case, you have to install all dependencies for libserialport, libsigrok (with the C++ bindings) and SmuView (see https://sigrok.org/wiki/Building#Build_requirements and https://sigrok.org/wiki/Linux#Building_.28manually.29) before building.

If that isn't working, then please post some more infos, like distribution and build output.

So i'd uploaded file  Smuview-0.0.4-x86_64.AppImage since your web site https://github.com/knarfS/smuview/releases. But it's PULSEVIEW that arrive on my computer ... and it work fine with Openbench sniffer !!!
I just double checked the download (https://github.com/knarfS/smuview/releases/download/v0.0.4/SmuView-0.0.4-x86_64.AppImage) and it really contains SmuView (not PulseView). I don't know what happend or what you have downloaded but best thing would be that you try again :)
 
The following users thanked this post: cdev

Offline jcfoto

  • Contributor
  • Posts: 9
  • Country: fr
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #4 on: April 23, 2020, 04:22:18 pm »
Hello, knarfS

Thanks for your quickly answer. I live in natural site, have web with 2G and no physical line by cable ! Saturday, i'll go where GSM is better ( 3G - 20 km !!!) and retry to upload files as you said.
Bests regards
 

Offline jcfoto

  • Contributor
  • Posts: 9
  • Country: fr
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #5 on: April 24, 2020, 04:04:10 pm »
Hello, knarfS.

I've downloaded Smuview today without any problem.
I use Rigol's instruments ( power supply DP832 and scope DS2202) in, actualy, USB mode.
My PC is on Ubnutu 18.04.3 and 2 screens.

I've insered udev rules as you indicate for user's run and not only root for USB access.
Launch SmuView, scan USB port and find my device OK. No Rigol's device in the menu's drivers but i use SCPI-PPS with success.
SmuView is principal screen based width. Impossible to use on secondary screen ( no critical !).
When SmuView is connected to Power supply, display of device commute at low frequencie and seems a blink on settings and validate chanel zones. ( excuse my very bad english !!!)
Valide one or all outputs ( 3 on this device) is OK.  The measurement zone display dont blink on the device . It's correct.

Remote U/I and measurements :
** CHANEL 1 - all is OK. no problem - Data can be controled with keyboard, slider ... Scope OK / Measurement OK
** CHANEL 2 - Can only remote I - Array of tension have many 0 displayed but impossible to manage them - Scope don't display output state. Measurement OK
** CHANEL 3 -  Canot remote U/I - Array of tension have many 0 displayed and I is frozen. Impossible to manage them - Scope don't display output state. Measurement OK ( when i modifie with device' commands).

First function i would use is transmit SCPI commands by command line on USB port. Is it possible with SmuView ?

Thanks for your work what is OK for communication between a PC and device by USB port. For GUI, i'm not a good "test' man", but that you made is biiiiiiiiiig !
Bests regards.
 

Offline jcfoto

  • Contributor
  • Posts: 9
  • Country: fr
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #6 on: April 24, 2020, 04:08:31 pm »
I'd forgotten : device appears, in /dev directorie under the name -> usbtmc0 ...
 

Offline knarfS

  • Contributor
  • Posts: 14
  • Country: de
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #7 on: April 29, 2020, 04:14:37 pm »
Hey JC.

I've downloaded Smuview today without any problem.
Good to hear that it is working now. :)

SmuView is principal screen based width. Impossible to use on secondary screen ( no critical !).
That is a known problem: When you are using a device with much stuff to display (like your 3 channel power supply) or a small resolution/screen, then the SmuView window elements are overlapping or are outside of the screen.
I added some improvements in the last two version, but there is still work to do.

When SmuView is connected to Power supply, display of device commute at low frequencie and seems a blink on settings and validate chanel zones.
I was once told, that the DP832 is switching modes (visible as the flickering of the display as you described) when connected to SmuView. This is probably due to the implementation of the driver in libsigrok. Maybe this can be solved by someone who owns a Rigol power supply. ;)

Remote U/I and measurements :
** CHANEL 1 - all is OK. no problem - Data can be controled with keyboard, slider ... Scope OK / Measurement OK
** CHANEL 2 - Can only remote I - Array of tension have many 0 displayed but impossible to manage them - Scope don't display output state. Measurement OK
** CHANEL 3 -  Canot remote U/I - Array of tension have many 0 displayed and I is frozen. Impossible to manage them - Scope don't display output state. Measurement OK ( when i modifie with device' commands).
There was a bug in the scpi-pps driver in libsigrok (see https://sigrok.org/bugzilla/show_bug.cgi?id=1533) that was fixed a few days ago. That may solve this issues.

First function i would use is transmit SCPI commands by command line on USB port. Is it possible with SmuView ?
The whole communication with your Rigol power supply (via SCPI) is implemented in libsigrok in the scpi-pps driver. SmuView is utilizing libsigrok and its drivers to create a GUI for those devices.
But you can control and automate measurements via SmuViews scripting extension (see chapter 7 in the SmuView manual).

Thanks for your feedback!

Edit: Typos
« Last Edit: April 29, 2020, 05:07:23 pm by knarfS »
 

Offline jcfoto

  • Contributor
  • Posts: 9
  • Country: fr
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #8 on: April 30, 2020, 09:34:02 am »
OK, Frank.
Thousands of thanks. i'll use SmuView, my new friend !

Jean
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 3541
  • Country: ca
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #9 on: April 30, 2020, 05:11:38 pm »
Just add an Hp Agilent Keysight 34401a   and i'm happy :)
 

Offline knarfS

  • Contributor
  • Posts: 14
  • Country: de
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #10 on: May 02, 2020, 12:42:51 am »
Just add an Hp Agilent Keysight 34401a   and i'm happy :)
There is already (basic) support for the 34401a in sigrok, but it was missing a wiki page. I just added a barebone page: https://sigrok.org/wiki/Agilent_34401A.
Just select the scpi-dmm driver in the SmuView connection dialog and you are good to go :)
 
The following users thanked this post: coromonadalix

Offline jcfoto

  • Contributor
  • Posts: 9
  • Country: fr
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #11 on: May 04, 2020, 07:06:19 am »
For transmit or receive SCPI sequences on USB port, it's very easy to do a little program ( few lines) in console mode when device make an /dev/usbtmcX file.
 

Offline symp

  • Contributor
  • Posts: 20
  • Country: au
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #12 on: January 05, 2021, 05:57:51 am »
Any chance of support for the Maynuo M9812 Electronic load?
 

Offline knarfS

  • Contributor
  • Posts: 14
  • Country: de
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #13 on: January 05, 2021, 12:01:05 pm »
Any chance of support for the Maynuo M9812 Electronic load?
The Maynuo M9812 is already supported by libsigrok (https://sigrok.org/wiki/Maynuo_M9812) and can be connected to SmuView, but the driver needs some small modifications (adding a mutex to make the driver thread safe) to work correctly with SmuView. There are also some other enhancements that would be beneficial for the combination with SmuView.

I'd be happy when someone would step up to make this driver work with SmuView. I can't do this without having that device next to me.

Edit:
For reference: Here I've added the mutex for an other modbus device: https://github.com/sigrokproject/libsigrok/commit/7c0891b0b82049b4cc3c0dd70b8483d037dab36f
The modifications to the Maynuo driver should be similar.
« Last Edit: January 05, 2021, 12:14:02 pm by knarfS »
 
The following users thanked this post: symp

Offline symp

  • Contributor
  • Posts: 20
  • Country: au
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #14 on: January 09, 2021, 07:11:51 am »
Thanks for the very detailed reply knarfS.

I have a couple of korad clone KA3005P power supplies from a company here in australia, wavecom, your software is years ahead of the 90's crap they supplied. The Idn response is
Code: [Select]
PS3005P V2.0
What would be the best way to get the model supported in smuview?

1. Forking libsigrok, adding it to src/hardware/korad-kaxxxxp/api.c and protocol.h, then submit a pull request back to libsigrok, then make and install smuview from your source once the pull is merged?  |O

2. Download your git, cmake, find api.c and protocol.h, add the model and make / install?  :-//

Sorry for the stupid question, I'm a idiot tech just wanting to create current plots in a nice gui, not a programmer   :-/O

Thanks in advance

Edit: I'm an idiot, read some more docs and discovered the force_detect scan option
« Last Edit: January 17, 2021, 04:00:17 am by symp »
 

Offline knarfS

  • Contributor
  • Posts: 14
  • Country: de
Re: SmuView - a sigrok GUI for power supplies, multimeters and more
« Reply #15 on: January 17, 2021, 10:13:06 am »
Hi symp,

a week ago I released SmuView 0.0.5 which supports the sigrok feature force_detect (see https://sigrok.org/wiki/Connection_parameters#Forced_detection). Now you can connect to unsupported Korad power supplies by using an existing and matching (voltage and current range) model from the model array in korad-kaxxxxp/api.c:

Code: [Select]
smuview -d korad-kaxxxxp:conn=/dev/ttyUSB0:force_detect=KORADKA3005PV2.0
But of course it would be great to have your model directly supported in libsigrok. Therefore you have to add your device to the models array and then make a PR over at github. But be aware, that some models have an additional byte trailing the device id string. You can test your change with sigrok-cli or of course with SmuView (both build against your patched libsigrok). You can find detailed build instructions for libsigrok, sigrok-cli and SmuView in the sigrok wiki:  https://sigrok.org/wiki/Linux#Building_.28manually.29

Alternativly you can send me the exact model id string (extracted with e.g. minicom, screen, Putty, ...), voltage/current range, model name, ect. and I can submit a commit to libsigrok.

Cheers
Frank

Edit: Doh, totally overlooked that you already discovered the force_detect feature  :)
« Last Edit: January 17, 2021, 10:16:17 am by knarfS »
 
The following users thanked this post: symp


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf