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 90812 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 #325 on: January 16, 2022, 07:33:18 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.

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.
« Last Edit: January 16, 2022, 08:13:06 pm by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 
The following users thanked this post: nctnico, N0NB

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #326 on: January 16, 2022, 10:57:01 pm »
Please correct me and explain the syntax.

FYI - the lxi-tools specific lua API is now documented here: https://github.com/lxi-tools/lxi-tools/blob/master/doc/lua-api.txt
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 
The following users thanked this post: N0NB

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #327 on: January 25, 2022, 08:28:12 pm »
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.

https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 
The following users thanked this post: RoGeorge

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #328 on: January 27, 2022, 06:10:41 pm »
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.

« Last Edit: January 27, 2022, 06:17:31 pm by lundmar »
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 
The following users thanked this post: RoGeorge

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools and liblxi v1.0 released for GNU/Linux
« Reply #329 on: February 02, 2022, 12:38:20 am »
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!
https://lxi-tools.github.io - Open source LXI tools
https://tio.github.io - A simple serial device I/O tool
 

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6203
  • Country: ro
Re: Open source lxi-tools v2.0 released - soon in all major *nix repositories!!!
« Reply #330 on: February 02, 2022, 08:39:07 am »
The drawback is that everybody who posted here, won't stay updated with the new thread unless they write something there, in the new thread, a drawback of SMF Forums platform, there is no "subscribe to thread" button.

Just FYI, alternatives to making a new thread by changing the title, could be:
- any OP title can be edited by the OP, either to change it only in the OP message, or to make it change along all the existing replies, along the whole thread.
- at any reply, anybody replying can change the "Subject:" textbox during a reply, for example I've made this post to say v2.0, to bamboozle everyone.

Thank you for lxi 2.0, see you there!  :-+

Offline lundmarTopic starter

  • Frequent Contributor
  • **
  • Posts: 436
  • Country: dk
Re: Open source lxi-tools v2.0 released - soon in all major *nix repositories!!!
« Reply #331 on: February 05, 2022, 06:43:43 pm »
The drawback is that everybody who posted here, won't stay updated with the new thread unless they write something there, in the new thread, a drawback of SMF Forums platform, there is no "subscribe to thread" button.

Just FYI, alternatives to making a new thread by changing the title, could be:
- any OP title can be edited by the OP, either to change it only in the OP message, or to make it change along all the existing replies, along the whole thread.
- at any reply, anybody replying can change the "Subject:" textbox during a reply, for example I've made this post to say v2.0, to bamboozle everyone.

Thank you for lxi 2.0, see you there!  :-+

Right, oh well. We'll do that next time. I'm fine with letting this one RIP.

Moving to https://www.eevblog.com/forum/testgear/open-source-lxi-tools-v2-0-released/
« Last Edit: February 05, 2022, 07:29:48 pm by lundmar »
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