Products > Test Equipment
Open source lxi-tools and liblxi v1.0 released for GNU/Linux
lundmar:
--- Quote from: N0NB on January 16, 2022, 06:34:26 pm ---Looks good.
I think you're said the script language is Python, but what I see doesn't look like the Python I know. I was guessing it to be LUA which seems to be popular for embedded scripting these days.
Please correct me and explain the syntax.
--- End quote ---
Correct, it is Lua.
If you are not familiar with Lua you can a find this quick guide https://github.com/lxi-tools/lxi-tools/blob/master/test/basics.lua which explains the basic primitives - it's very easy and elegant and offers very fast execution. The new lxi-gui script functions such as clock_new(), chart_new(), connect() etc. will be documented before the upcoming v2.0 release. For now, more examples can be found here: https://github.com/lxi-tools/lxi-tools/tree/master/test
There really is no limit to what kind of GUI elements we can attach to the scripting language to aid what we want to do with our instruments. At first I expect more chart types to be added.
lundmar:
--- Quote from: N0NB on January 16, 2022, 06:34:26 pm ---Please correct me and explain the syntax.
--- End quote ---
FYI - the lxi-tools specific lua API is now documented here: https://github.com/lxi-tools/lxi-tools/blob/master/doc/lua-api.txt
lundmar:
I've implemented a few different chart types - should be good for representing various data types.
So now you can retrieve data from your instrument and represent it live in e.g. a linear gauge for quick monitoring.
If anyone can think of other useful chart types to add for your instrument feel free to come with suggestions.
lundmar:
So, I have finally arrived at the point where I have implemented the required features to produce the perfect example on how to use the lxi-gui script feature as I envision it.
The following screenshot shows how one can easily create a script that retrieves voltage samples from a DC power supply for 100 seconds while drawing a live chart of the incoming data and finally save the sampled data to CSV and PNG files!
I do not believe it can be done much simpler than this! It is a very clean cut environment that even novice script writers can use. However, it also allows for experienced programmers to make some pretty cool and complex scripts to fit their needs.
lundmar:
Now that lxi-tools v2.0 is released I think it is time to retire this v1.0 thread.
I suggest moving to https://www.eevblog.com/forum/testgear/open-source-lxi-tools-v2-0-released/ for future lxi-tools discussions.
Thanks!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version