lxi(1)

๐Ÿ“ฆ
version 2.8 ยท 5 versions
, in debian trixie, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

๐Ÿ’– lxi(1) โ€” bestie's guide to the lxi command ๐Ÿ’–

okay so real talk: this is the manual page for lxi, a User Commands situation, and it's literally your group chat with every LXI instrument you own. pull up a chair ๐Ÿซถ


โœจ NAME โœจ

lxi โ€” a tool for managing LXI compatible instruments.


๐ŸŒธ SYNOPSIS ๐ŸŒธ

lxi [--help] [--version] <command> [<args>]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

lxi is a commandline tool for controlling LXI compatible instruments such as modern oscilloscopes, power supplies, spectrum analyzers, etc. no cap, it's giving lab-bench main character energy โœจ


๐Ÿ’… OPTIONS ๐Ÿ’…

  • -h, --help โ€” Display help. when you're lost, she's got you ๐Ÿฅบ
  • -v, --version โ€” Display program version. the "who even am i" button ๐ŸŽ€

๐Ÿ‘‘ COMMANDS ๐Ÿ‘‘

  • discover [<options>] โ€” Search available networks for LXI devices. it's giving detective ๐Ÿ•ต๏ธโ€โ™€๏ธ
  • scpi [<options>] <scpi-command> โ€” Send SCPI command. say it with your chest ๐Ÿ’ฌ
  • screenshot [<options>] [<filename>] โ€” Capture screenshot. ๐Ÿ“ธ
  • benchmark [<options>] โ€” Benchmark. let's see what you're working with ๐Ÿ’€
  • run <filename> โ€” Run Lua script. ๐Ÿงš

๐ŸŽ€ DISCOVER OPTIONS ๐ŸŽ€

  • -t, --timeout <seconds> โ€” Timeout in seconds. patience is a virtue bestie โณ
  • -m, --mdns โ€” Search via mDNS/DNS-SD. the fancy discovery route โœจ

๐Ÿ”ฅ SCPI OPTIONS ๐Ÿ”ฅ

  • -a, --address <ip> โ€” IP address of LXI device. who are we talking to ๐Ÿ‘€
  • -p, --port โ€” Use port.
  • -t, --timeout <seconds> โ€” Timeout in seconds. โณ
  • -x, --hex โ€” Print response in hexadecimal. nerd mode activated ๐Ÿงฎ
  • -i, --interactive โ€” Enter interactive mode. she wants a conversation ๐Ÿ’ฌ
  • -r, --raw โ€” Use raw/TCP protocol. no filter, just vibes ๐ŸŒˆ

๐ŸŒˆ SCREENSHOT OPTIONS ๐ŸŒˆ

  • -a, --address <ip> โ€” IP address of LXI device.
  • -t, --timeout <seconds> โ€” Timeout in seconds. โณ
  • -p, --plugin <name> โ€” Use screenshot plugin by name. pick your fighter ๐Ÿ’…
    • If this option is omitted the tool will automatically try to select the most suitable plugin. she'll choose for you, trust ๐Ÿค
  • -l, --list โ€” List available screenshot plugins. the menu ๐Ÿ“
To write screenshot image to stdout simply use '-' as the output filename. yes literally a dash, iconic behavior

โญ BENCHMARK OPTIONS โญ

  • -a, --address <ip> โ€” IP address of LXI device.
  • -p, --port โ€” Use port.
  • -t, --timeout <seconds> โ€” Timeout in seconds. โณ
  • -c, --count <count> โ€” Number of request messages. how many times we goin' ๐Ÿ”
  • -r, --raw โ€” Use raw/TCP protocol. ๐ŸŒˆ

๐Ÿงš EXAMPLES ๐Ÿงš

Search for LXI instruments:

lxi discover

Search for LXI instruments using mDNS/DNS-SD:

lxi discover --mdns

Send SCPI command:

lxi scpi --address 10.0.0.42 "*IDN?"

Send SCPI command and dump response to file:

lxi scpi --address 10.0.0.42 "*IDN?" > response.txt

Capture screenshot from a Rigol 1000Z series oscilloscope:

lxi screenshot --address 10.0.0.42 --plugin rigol-1000z

Or by using screenshot plugin autodetection simply:

lxi screenshot --address 10.0.0.42
Note: Some LXI devices are slow to process SCPI commands, in which case you might need to take care to increase the timeout value. fr fr, don't blame the tool, blame the instrument ๐Ÿ˜ญ

๐Ÿซถ WEBSITE ๐Ÿซถ

Visit https://lxi-tools.github.io โ€” go say hi, she's lovely ๐Ÿ’–


๐Ÿ’œ AUTHOR ๐Ÿ’œ

Written by Martin Lund <martin.lund@keep-it-simple.com>


and that's the whole page bestie ๐ŸŽ€ this one shipped as part of lxi-tools, dated 2024-11-30, and it lives in section lxi(1) of the manual. mwah ๐Ÿ’‹ slay, go talk to your oscilloscope ๐Ÿฆ‹โœจ

๐Ÿ“ฆ where this page comes from