Poll

What OS platform would you like to see lxi-tools ported to next?

Windows
macOS
Other
Don't port it - Linux is the future for all!

Author Topic: Open source lxi-tools and liblxi v1.0 released for GNU/Linux  (Read 89556 times)

0 Members and 1 Guest are viewing this topic.

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #75 on: November 25, 2017, 12:37:08 pm »
Howdy,

I keep running into issues with LXI-TOOLS...
so far support from Lundar has been great. Jet spamming GitHub with issues that might only be my system isn't too great.

I have been following install instructions on this forum jet I got stuck here:
after installing LIB, and TOOLS trying to start the program on the command line.
Code: [Select]
$ lxi --help
lxi: error while loading shared libraries: liblxi.so.1: cannot open shared object file: No such file or directory

i am running
Code: [Select]
Linux LAB 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Or
Code: [Select]
Linux Mint 18.1 Cinnamon 64-bit if that floats your goat.

As solving this issue has many solutions hence I wanted to ask first before fumbling around.

Hi 3hristian,

No worries, you just keep spamming github as much as you like - that is what is what the issue tracker is for ;)

I'm sorry about your installation issue - luckily it's a temporary situation. I'm working on getting lxi-tools/liblxi into Debian so that they will eventually be included in distributions like Ubuntu and Mint. This way users don't have to bother with the challenges of manual installation. Currently software packages are being updated for Fedora. I hope to find a lxi-tools/liblxi maintainer for Debian soon.

Assuming you followed the git install instructions in the top of this thread to the letter then you shouldn't run into any issues with lxi-tools not finding liblxi. However, the issue you see can be bypassed by using for example this command:
Code: [Select]
$ LD_LIBRARY_PATH=$HOME/opt/lxi/lib ./lxi --version
v1.12

Or by simply exporting the variable like so and running the lxi tool:
Code: [Select]
$ export LD_LIBRARY_PATH=$HOME/opt/lxi/lib
$ lxi --version
lxi v1.12

Assuming your install location is $HOME/opt/lxi as suggested in the git install instructions.
« Last Edit: November 25, 2017, 12:39:19 pm by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #76 on: November 26, 2017, 03:40:10 am »
I realize that many people are not comfortable building and installing stuff from source. Unfortunately it takes quite some effort and time to find package maintainers for the various distributions and even then there is usually a large turnaround time to update packages :(

To try bypass these issues I've created a snap for lxi-tools.

This means that it is now possible to install the latest release version of lxi-tools on the most popular distributions like so:

Code: [Select]
$ snap install lxi-tools

The great thing about snaps is that I maintain the snap directly and when I update my lxi-tools snap it will be immediately available for users to install. No delay!  :-+

It's pretty cool, check it out.

I've tested it on Fedora 27 and Ubuntu 17.10 but it should work on various other distributions too (Mint, ArchLinux, Debian, Gentoo, OpenSuse, Manjaro, etc.).

See https://snapcraft.io for how to install snap on your distribution.

P.s.: There is one minor issue though: after installing the lxi-tools snap the tool command is 'lxi-tools.lxi' and not 'lxi'. Will be fixed later.
P.p.s: lxi-tools snap details can be seen here: https://dashboard.snapcraft.io/dev/snaps/8744
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26752
  • Country: nl
    • NCT Developments
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #77 on: November 26, 2017, 12:28:59 pm »
I realize that many people are not comfortable building and installing stuff from source. Unfortunately it takes quite some effort and time to find package maintainers for the various distributions and even then there is usually a large turnaround time to update packages :(
The easy way around that is to pack everything (including libraries) into a distribution independant package like firefox does. A statically linked binary should work well too.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #78 on: November 26, 2017, 01:35:03 pm »
I realize that many people are not comfortable building and installing stuff from source. Unfortunately it takes quite some effort and time to find package maintainers for the various distributions and even then there is usually a large turnaround time to update packages :(
The easy way around that is to pack everything (including libraries) into a distribution independant package like firefox does. A statically linked binary should work well too.

That is true. However, there are some advantages to the snap solution because it actually includes and runs lxi-tools inside its own containerized Ubuntu core image runtime that runs specific versions of dynamic services like e.g. avahi that lxi-tools rely on for mDNS/DNS-SD discovery. If I do a static it is likely that the avahi dbus interface protocol will not work on various distributions because of version differences of their avahi daemon. Also, it's a big plus for end users that they can use the simple snap install command to manage their lxi-tools package and when I push updates they will have a super easy way to upgrade ('snap refresh lxi-tools'). In the end, that is simpler than messing with and setting up a static tarball that might or might not work. The snap support will only improve and spread to more distributions so for application distribution this is the future and I'm jumping right in he he. Once I get the last details of my lxi-tools snap sorted out it will be perfect.
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #79 on: November 27, 2017, 03:06:24 pm »
FYI - it is now possible to install latest development version using snap:

Code: [Select]
$ snap install lxi-tools --edge

The lxi-tools snap from the edge channel automatically follows the latest git version via automatic CI using https://build.snapcraft.io

Also, the lxi-tools snap is now built for the following architectures: amd64, i386, armhf

For those interested, here is the snapcraft configuration for the lxi-tools snap: https://github.com/lxi/lxi-tools.snapcraft
« Last Edit: November 27, 2017, 03:21:04 pm by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #80 on: November 27, 2017, 09:37:15 pm »
FYI - I've renamed the website from lxi.github.io to lxi-tools.github.io

Also, there are new releases of lxi-tools and liblxi which include latest fixes and documentation changes.

New snaps are also available for instant upgrade. For those who already have lxi-tools snap installed try (note that it might already be automatically updated):
Code: [Select]
snap refresh lxi-tools

Or, if you don't have it installed already, simply:
Code: [Select]
snap install lxi-tools

After snap is installed, you will have to run this command:
Code: [Select]
$ snap alias lxi-tools.lxi lxi

To make the normal 'lxi' command work. Else only 'lxi-tools.lxi' will work. It's a temporary situation until my snap is approved automatic alias support by vote of the snap guys.

I've also created a new logo for the project just to spruce things up a bit :)

If anyone runs into issues installing using snap please let me know. Thanks.
« Last Edit: November 28, 2017, 04:11:21 am by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline dpenev

  • Regular Contributor
  • *
  • Posts: 183
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #81 on: November 28, 2017, 12:55:54 pm »
Hi lundmar,

Just to confirm that lxi snap and aliasing seem to be working fine on my Ubuntu 14.04 box.
 
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #82 on: November 28, 2017, 01:24:31 pm »
Hi lundmar,

Just to confirm that lxi snap and aliasing seem to be working fine on my Ubuntu 14.04 box.

Thats interesting, I didn't expect snaps to be supported on such old Ubuntu installations but I guess it only demonstrates how powerful snaps are.

Thanks for the feedback :-+

Btw. I haven't heard from Siglent yet regarding the screenshot file format on the SSA3000 - I think most people are off due to extended Thanksgiving holidays.
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline dpenev

  • Regular Contributor
  • *
  • Posts: 183
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #83 on: November 28, 2017, 03:32:24 pm »
Oh it is not that old actually but yes I had to install snap demon and it doesn't come pre-installed out of the box 
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #84 on: November 28, 2017, 04:27:35 pm »
Oh it is not that old actually but yes I had to install snap demon and it doesn't come pre-installed out of the box

Still impressive though.

Oh by the way, I just got a response from Siglent and they provided me an undocumented SCPI command for doing a full screenshot capture on the SSA3000 series :)

In fact, I've already pushed a fix for the siglent-ssa300x plugin so you will be able  to test it immediately via the snap edge channel:

Code: [Select]
$ snap install lxi-tools --edge

Or, if you have it already installed, you can make sure it is up-to-date and using the edge channel like so:
Code: [Select]
$ snap refresh lxi-tools --edge

Please let me know if the plugin now works for you. You might have to take care to increase the default timeout as the image BMP data is rather large.
« Last Edit: November 28, 2017, 08:26:35 pm by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline BloodyCactus

  • Frequent Contributor
  • **
  • Posts: 482
  • Country: us
    • Kråketær
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #85 on: November 29, 2017, 01:13:24 am »
hmmm

Code: [Select]
> /snap/bin/lxi --version
cannot change current working directory to the original directory: Permission denied

> sudo /snap/bin/lxi --version
cannot change current working directory to the original directory: Permission denied

> cd /tmp
> lxi --version
lxi v1.13

oh, solved my own problem, posting here for posterity. You get the above error if you run it when your in an NFS mounted directory/path.


oh and screenshot fails on hmo-rs1000 (I have hmo1202)
Code: [Select]
> lxi screenshot -p rs-hmo1000 -a scope
Saved screenshot image to screenshot_scope_2017-11-28_19:55:38.png

> file screenshot_scope_2017-11-28_19\:55\:38.png
screenshot_scope_2017-11-28_19:55:38.png: data

you can see the
Code: [Select]
'G' 0D 0A 1A 0A 00 00 00 0D
but we are missing
Code: [Select]
89 50 4E the start of the PNG magic...



putting in the missing header shows a valid PNG from the scope

Code: [Select]
> file qq.png
qq.png: PNG image data, 640 x 520, 8-bit colormap, non-interlaced



« Last Edit: November 29, 2017, 01:19:15 am by BloodyCactus »
-- Aussie living in the USA --
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #86 on: November 29, 2017, 02:16:48 am »
hmmm

Code: [Select]
> /snap/bin/lxi --version
cannot change current working directory to the original directory: Permission denied

> sudo /snap/bin/lxi --version
cannot change current working directory to the original directory: Permission denied

> cd /tmp
> lxi --version
lxi v1.13

oh, solved my own problem, posting here for posterity. You get the above error if you run it when your in an NFS mounted directory/path.

Yeah, sorry about that.

It has to do with the way that snaps work. All snaps are running in a security enabled Linux container which means that the snap is only allowed access to certain subsystems. For example, in case of lxi-tools, it can only access your network and home directory (if it was not NFS network mounted). The main upside of having such level of security is that I am allowed to distribute updates quickly and directly to end users without having to go through the slow package update procedures of the various Linux distributions which can take weeks or even months sometimes. And the downsides... well, you just found one he he. That being said, I will investigate if it possible to reconfigure the snap to gain access to network mounted file systems.

oh and screenshot fails on hmo-rs1000 (I have hmo1202)
Code: [Select]
> lxi screenshot -p rs-hmo1000 -a scope
Saved screenshot image to screenshot_scope_2017-11-28_19:55:38.png

> file screenshot_scope_2017-11-28_19\:55\:38.png
screenshot_scope_2017-11-28_19:55:38.png: data

you can see the
Code: [Select]
'G' 0D 0A 1A 0A 00 00 00 0D
but we are missing
Code: [Select]
89 50 4E the start of the PNG magic...

Fixed! Thanks for the detailed debug info. It was very helpful :-+

It's fixed in this commit: https://github.com/lxi-tools/lxi-tools/commit/04a7cbf9a61af9ead886d4a4a29ddc11b61cbe34

The git commit automatically triggers an update of the lxi-tools snap in the edge channel so you should be able to update to it immediately:

Code: [Select]
snap refresh lxi-tools --edge

By the way, can you please try fire this command?

Code: [Select]
$ lxi screenshot -a scope
Which should automatically load the correct screenshot plugin. If it fails please provide me the IDN string of your instrument.

Thanks
« Last Edit: November 29, 2017, 02:22:37 am by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline BloodyCactus

  • Frequent Contributor
  • **
  • Posts: 482
  • Country: us
    • Kråketær
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #87 on: November 29, 2017, 02:49:38 am »
Code: [Select]
[ sgeorge @ workstation ] - [ /tmp ] 
[$]> lxi screenshot -a scope
Error: Read error (timeout)
Error: Failed to receive message
Error: Unable to retrieve instrument ID

needs a -p, so here is my IDN

Code: [Select]
Found "Rohde&Schwarz,HMO1202,nnnnnnnnn,05.886"
The "05.886" is firmware version.
The "nnnnnnnnn" is numeric serial number (I blanked mine out).
The "HMO1202" can change, depending on bandwidth ID code installed.

Doing
Code: [Select]
lxi screensscreenshot -p rs-hmo1000 -a scope
Saved screenshot image to screenshot_scope_2017-11-28_21:43:12.png

does not actually put "screenshot_scope_2017-11-28_21:43:12.png" on disk. not in my home directory, or anywhere...

ok. found them in
Code: [Select]
/tmp/snap.1000_lxi-tools_ql0gGm/tmp/
which is
Code: [Select]
drwx------   3 root    sgeorge 4.0K Nov 28 19:50 snap.1000_lxi-tools_ql0gGm
how very strange.

PNG do load correctly tho.
-- Aussie living in the USA --
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #88 on: November 29, 2017, 03:30:18 am »
Code: [Select]
[ sgeorge @ workstation ] - [ /tmp ] 
[$]> lxi screenshot -a scope
Error: Read error (timeout)
Error: Failed to receive message
Error: Unable to retrieve instrument ID

Hmm, strange. I didn't expect it to fail retrieving the ID. Can your please verify that the following command works for you?
Code: [Select]
$ lxi scpi -a scope "*IDN?"

If that also fails please try with IP address instead of 'scope'.

Doing
Code: [Select]
lxi screensscreenshot -p rs-hmo1000 -a scope
Saved screenshot image to screenshot_scope_2017-11-28_21:43:12.png

does not actually put "screenshot_scope_2017-11-28_21:43:12.png" on disk. not in my home directory, or anywhere...

ok. found them in
Code: [Select]
/tmp/snap.1000_lxi-tools_ql0gGm/tmp/
which is
Code: [Select]
drwx------   3 root    sgeorge 4.0K Nov 28 19:50 snap.1000_lxi-tools_ql0gGm
how very strange.

Yes, since your home directory is NFS network mounted, the lxi-tools snap can't access your home directory. And when you are in /tmp the security container redirects the files to the tmp of the snap. magic...

The good news is that the NFS home issue is apparently something which has been resolved and a fix should soon be available with newly released snap subsystems. Unfortunately, only recent Ubuntu and Fedora systems are deploying latest versions of snap/snapd. In other words, if you are running a recent Ubuntu version (e.g. 17.10)  chances are it will soon be available.

PNG do load correctly tho.

Good :-+
« Last Edit: November 29, 2017, 03:35:05 am by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline BloodyCactus

  • Frequent Contributor
  • **
  • Posts: 482
  • Country: us
    • Kråketær
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #89 on: November 29, 2017, 03:55:26 am »
Hmm, strange. I didn't expect it to fail retrieving the ID. Can your please verify that the following command works for you?
Code: [Select]
$ lxi scpi -a scope "*IDN?"

Code: [Select]
lxi scpi -a scope "*IDN?"
Rohde&Schwarz,HMO1202,nnnnnnnnn,05.886

lxi screenshot -a 192.168.0.107 also fails, without -p

Quote
Yes, since your home directory is NFS network mounted, the lxi-tools snap can't access your home directory. And when you are in /tmp the security container redirects the files to the tmp of the snap. magic...

my home dir isnt nfs mounted. (everything off my ~ is nfs mounted, but ~/ is physical). it works in my home dir. I was actually in /tmp (which is also phsycal), but I guess snap cant run from /tmp for security.

-- Aussie living in the USA --
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #90 on: November 29, 2017, 04:19:40 am »
Code: [Select]
lxi scpi -a scope "*IDN?"
Rohde&Schwarz,HMO1202,nnnnnnnnn,05.886

Ok good. Then something is different when the ID is retrieved using the screenshot command. I will have to review the code to see if I can spot the bug - I'll get back to you on this tomorrow.

my home dir isnt nfs mounted. (everything off my ~ is nfs mounted, but ~/ is physical). it works in my home dir. I was actually in /tmp (which is also phsycal), but I guess snap cant run from /tmp for security.

Ok, got it. Then the problem is not too bad then, except it is of course annoying for your use case that you can't have it write directly to your NFS share. Some say that it is possible for a snap to write to an NFS share if you use the 'mount --bind <location of nfs> <some mount dir in your home>' command to basically map/mount your NFS share into your home and this way the snap will see it as a normal dir.
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #91 on: November 29, 2017, 02:16:38 pm »
Code: [Select]
lxi scpi -a scope "*IDN?"
Rohde&Schwarz,HMO1202,nnnnnnnnn,05.886

Ok good. Then something is different when the ID is retrieved using the screenshot command. I will have to review the code to see if I can spot the bug - I'll get back to you on this tomorrow.

Ok, I've found and fixed the bug. It was a very silly and simple bug :-[

The bug basically truncated the timeout to 1 ms when using the screenshot command which made retrieval of the instrument ID fail in your case.

The fix should be available via the edge channel now. Let me know if it works for you. Thanks.
« Last Edit: November 29, 2017, 02:21:07 pm by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline BloodyCactus

  • Frequent Contributor
  • **
  • Posts: 482
  • Country: us
    • Kråketær
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #92 on: November 29, 2017, 10:37:42 pm »
Ok, I've found and fixed the bug. It was a very silly and simple bug :-[

The bug basically truncated the timeout to 1 ms when using the screenshot command which made retrieval of the instrument ID fail in your case.

The fix should be available via the edge channel now. Let me know if it works for you. Thanks.

Code: [Select]
lxi screenshot -a scope -p rs-hmo1000 works.

Code: [Select]
> lxi screenshot -a scope
Loaded rs-hmo1000 screenshot plugin
hangs.

no change when using IP. still hangs.

with gdb, I get (but probably not much good to you).

Code: [Select]
#0  0x00007ffff76b76f0 in __poll_nocancel () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ffff76f14e3 in readtcp (ctptr=0x60a6b0 "\004",
    buf=0x60e3d0 "d, Robert Gauthier, Floyd Wilder, Mark Drissel, Kenny Lyons,\n#  Paul Dunne, Tirath Pannu, Mike L", len=4000) at clnt_tcp.c:480
#2  0x00007ffff76ea946 in fill_input_buf (rstrm=0x60a770) at xdr_rec.c:567
#3  get_input_bytes (len=4, addr=0x7fffffbecbac "", rstrm=<optimized out>) at xdr_rec.c:586
#4  set_input_fragment (rstrm=<optimized out>) at xdr_rec.c:605
#5  xdrrec_getbytes (xdrs=<optimized out>, addr=addr@entry=0x7fffffbecbfc "\377\177", len=len@entry=4)
    at xdr_rec.c:262
#6  0x00007ffff76eab83 in xdrrec_getlong (xdrs=<optimized out>, lp=0x7fffffbecc18) at xdr_rec.c:218
#7  0x00007ffff76f6aab in __GI_xdr_u_long (xdrs=xdrs@entry=0x60a718, ulp=ulp@entry=0x7fffffbecca0) at xdr.c:214
#8  0x00007ffff76e9791 in __GI_xdr_replymsg (xdrs=xdrs@entry=0x60a718, rmsg=rmsg@entry=0x7fffffbecca0)
    at rpc_prot.c:135
#9  0x00007ffff76f12ae in clnttcp_call (h=0x60a690, proc=10, xdr_args=0x7ffff7bd07f1 <xdr_Create_LinkParms>,
    args_ptr=0x7fffffbecdb0 "\220\246`", xdr_results=0x7ffff7bd0ad1 <xdr_Create_LinkResp>,
    results_ptr=0x60a0e8 "\210\v\230\367\377\177", timeout=...) at clnt_tcp.c:287
#10 0x00007ffff7bd01e8 in create_link_1 () from liblxi.so.1
#11 0x00007ffff7bcedb2 in vxi11_connect () from liblxi.so.1
#12 0x00007ffff7bcea0e in lxi_connect () from liblxi.so.1
#13 0x0000000000404339 in rs_hmo1000_screenshot ()
#14 0x0000000000403525 in screenshot ()
#15 0x0000000000402384 in main ()

-- Aussie living in the USA --
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #93 on: November 29, 2017, 11:30:02 pm »
Code: [Select]
> lxi screenshot -a scope
Loaded rs-hmo1000 screenshot plugin
hangs.

Fixed!

New snap available.

What happened is that the automatic screenshot plugin detection first connects to the device to obtain the device ID which is used to automatically match which plugin to load and then it disconnects before it connects again later to retrieve the screenshot but someone forgot to disconnect |O and that obviously causes a hang for instruments that only support 1 active connection.

Thanks for the testing/debug :-+

This is exactly the type of testing I'm looking for - the more instruments tested the better so we can catch and eliminate bugs like this.

Btw. I've added a new benchmark command which can be useful for comparing the VXI-11 request/response performance of instruments:

Code: [Select]
lxi benchmark -a <ip>

Example:
Code: [Select]
$ lxi benchmark -a 192.168.1.210
Benchmarking by sending 100 ID requests. Please wait...
Result: 19.5 requests/second
« Last Edit: December 01, 2017, 03:46:19 am by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline dpenev

  • Regular Contributor
  • *
  • Posts: 183
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #94 on: November 30, 2017, 12:21:29 pm »
Hello,

I got this:
dpenev@yni:~$ sudo snap refresh lxi-tools --edge     
snap "lxi-tools" has no updates available
dpenev@yni:~$ lxi -v
lxi v1.13
dpenev@yni:~$ lxi screenshot -a 192.168.1.61   
Loaded siglent-ssa3000x screenshot plugin
Error: Failed to receive message
dpenev@yni:~$

 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #95 on: November 30, 2017, 03:24:39 pm »
Hello,

I got this:
dpenev@yni:~$ sudo snap refresh lxi-tools --edge     
snap "lxi-tools" has no updates available
dpenev@yni:~$ lxi -v
lxi v1.13

Thats's good. On some systems snaps automatically updates to the latest version available in their active channel (stable, candidate, beta, or edge).

dpenev@yni:~$ lxi screenshot -a 192.168.1.61   
Loaded siglent-ssa3000x screenshot plugin
Error: Failed to receive message
dpenev@yni:~$

Hmm. It looks like your SSA3000X instrument does not respond to or recognize the "SCDP." command.

I also notice you seem to be running the latest firmware :-+

I'll talk to Siglent again to verify that the "SCDP." command is actually supported by latest public firmware.

Thanks for testing.
« Last Edit: November 30, 2017, 03:49:54 pm by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #96 on: November 30, 2017, 05:50:59 pm »
FYI - I've updated the original post that started this thread to include install instructions/hints for getting lxi-tools working with Windows.

Perhaps some would like to share their experience with VMs and lxi-tools.
« Last Edit: November 30, 2017, 05:54:40 pm by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline dpenev

  • Regular Contributor
  • *
  • Posts: 183
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #97 on: November 30, 2017, 09:16:29 pm »
Hi Lundmar,

I don't find SCDP command in the SSA3000X programming manual.
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #98 on: November 30, 2017, 09:39:40 pm »
Hi Lundmar,

I don't find SCDP command in the SSA3000X programming manual.

Hi,

True - I'm told it is an undocumented command that should work with SSA3000X. However, I suspect that maybe it is only available in firmware that has not been released yet. I'll check with Siglent to make sure and get back to you. It would be nice if we could get the screenshot plugin working seamlessly with this nice instrument.
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #99 on: December 01, 2017, 01:15:16 am »
I don't find SCDP command in the SSA3000X programming manual.

I've updated the siglent-ssa3000x plugin - I've added some termination characters to the capture command which might make a difference for this particular instrument.

Let me know if that gets it going.

FYI - snap revision 110 or later:

Code: [Select]
$ snap info lxi-tools
name:      lxi-tools
summary:   Open source LXI tools
publisher: lundmar
description: |
  Lxi-tools is a collection of open source software tools that enables control
  of LXI compatible instruments such as modern oscilloscopes, power supplies,
  spectrum analyzers etc.
snap-id: yha3V4dqfwJwpjSWgMFEMViAlQ2iMdL7
commands:
  - lxi-tools.lxi
tracking:    edge
installed:   1.13 (110) 14MB -
refreshed:   2017-12-01 02:08:58 +0100 CET
channels:               
  stable:    1.12 (42)  14MB -
  candidate: ?               
  beta:      ?               
  edge:      1.13 (110) 14MB -
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf