Products > Test Equipment
Open source lxi-tools v2.0 released
lundmar:
--- Quote from: PeDre on February 07, 2022, 07:46:13 pm ---Hello lundmar,
I looked in your code out of interest, because I wanted to know which programming language you use. I don't know C, but I poked around in the code a bit and I noticed the structure with the flags. You use the operation flags 'WaitLock' and 'End'. I don't use flags in my programs, and so I could fix the error with DM3068. But I may be wrong, I just looked in the browser at Github.
--- Code: ---vxi11.c
int vxi11_send(void *data, const char *message, int length, int timeout)
183 {
...
193 write_params.flags = 0x9;
...
--- End code ---
Peter
--- End quote ---
It's okay - we figured out the problem here: https://github.com/lxi-tools/lxi-tools/issues/42
lxi-tools is working perfectly fine with the DM3068 - it was simply a user misconfiguration of the device that prevented it from responding.
It's been a long time since I've written the vxi11 client code so I had to take a quick look at the vxi11 spec and it turns out that even though I'm setting the waitlock flag, it does not have any effect because I set the lock_timeout value to 0. This means it will return with an error immediately in case the device is locked by another link, which is basically the same as not using the waitlock flag. I probably should change the flag but this code has been tested with many instruments and so far none have failed yet.
Sergeant82d:
Martin,
I finally had time to work on my home lab RPI4, reworking it and getting it back up and running. New SD Card, new OS install, all updates, installed and updated Snapd, and snap installed v2.1. I did edit the "original" file that was preventing it, but... :(
It is installed, and works from the command line, but only gives GTK errors for the lxi-gui version.
--- Quote ---
pi@raspberrypi:~ $ lxi-tools.lxi-gui
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.159: Theme parser error: Default-light.css:3:20-21: Expected ':'
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.169: Theme parser warning: Default-light.css:1389:19-208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.169: Theme parser warning: Default-light.css:118:32-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.169: Theme parser warning: Default-light.css:100:1164-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.169: Theme parser warning: Default-light.css:95:111-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.170: Theme parser warning: Default-light.css:95:75-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.170: Theme parser warning: Default-light.css:95:39-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.170: Theme parser warning: Default-light.css:93:92-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.170: Theme parser warning: Default-light.css:93:11-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.170: Theme parser warning: Default-light.css:91:66-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.170: Theme parser warning: Default-light.css:62:786-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.170: Theme parser warning: Default-light.css:62:693-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.171: Theme parser warning: Default-light.css:37:99-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.171: Theme parser warning: Default-light.css:16:195-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.171: Theme parser warning: Default-light.css:16:162-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.171: Theme parser warning: Default-light.css:16:35-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.171: Theme parser warning: Default-light.css:7:898-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.171: Theme parser warning: Default-light.css:7:836-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.171: Theme parser warning: Default-light.css:7:402-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.171: Theme parser warning: Default-light.css:4:583-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.172: Theme parser warning: Default-light.css:3:15-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.172: Theme parser warning: Default-light.css:3:13-1389:208: Unterminated block at end of document
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.172: Theme parser error: gtk.css:1:75-76: Expected a valid selector
(lxi-gui:2036): Gdk-ERROR **: 19:18:26.686: Resource path /org/gtk/libgtk/icons/16x16/actions/value-decrease-symbolic.symbolic.png is not a valid image: Error reading png (IDAT: CRC error)
Trace/breakpoint trap
--- End quote ---
As I said - from the command line, it works fine. But... I don't want to use the command line! This is hobby stuff - I don't use it all day, or often enough to remember all the commands. Sorry. :-//
Thanks for your help. Very much looking forward to seeing my lineup of Siglent machines on there!
lundmar:
--- Quote from: Sergeant82d on February 10, 2022, 01:33:52 am ---As I said - from the command line, it works fine. But... I don't want to use the command line! This is hobby stuff - I don't use it all day, or often enough to remember all the commands. Sorry. :-//
--- End quote ---
That's perfectly fine - I made lxi-gui for those who prefer graphical applications. Unfortunately I suspect the problem is that the ARM build is inherently broken with GTK4 for now. The errors I see makes little sense.
Update: I've talked to some of the GTK4 developers. They say that GTK4 for arm64 is largely untested so they are not surprised there are errors.
I'll update GTK4 once they do the next official release and then maybe the problem goes away.
lundmar:
--- Quote from: Sergeant82d on February 10, 2022, 01:33:52 am ---
--- Quote ---
pi@raspberrypi:~ $ lxi-tools.lxi-gui
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.159: Theme parser error: Default-light.css:3:20-21: Expected ':'
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.169: Theme parser warning: Default-light.css:1389:19-208: Unterminated block at end of document
...
(lxi-gui:2036): Gtk-WARNING **: 19:18:25.172: Theme parser error: gtk.css:1:75-76: Expected a valid selector
(lxi-gui:2036): Gdk-ERROR **: 19:18:26.686: Resource path /org/gtk/libgtk/icons/16x16/actions/value-decrease-symbolic.symbolic.png is not a valid image: Error reading png (IDAT: CRC error)
Trace/breakpoint trap
--- End quote ---
--- End quote ---
Please try latest snap edge version on your RPI4:
--- Code: ---$ snap refresh lxi-tools --edge
--- End code ---
It uses an older version of GTK4 which prepares the resources such as Default-light.css in a different way. If it works I will work with the GTK4 devs to get it fixed in their latest version.
Sergeant82d:
Thank you, Martin - it works!
Now that I'm in it, I do miss the "Live View" option on the screen shots tab. But otherwise, too new for me to comment on.
Thank you again.
Brad
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version