Skip to main content
Before you use instruments with the Lager Client, you must identify and organize the connected devices. This applies to both the CLI and the Python library.

View Connected Instruments

To view all instruments currently connected to a specific Lager Box, run:
This command detects and lists all physical instruments connected to the Lager Box via USB or network. Example output:
To view configured nets (logical mappings to instruments), use:
This shows the nets you’ve created, their types, and which instruments they’re mapped to.

Example Output:

Automatic Net Creation

When you plug an instrument into a Lager Box, Lager creates a default Net for each supported function.
  • A simple, single-function device like a power supply will create one Supply Net.
  • A multi-function device such as a LabJack T7 DAQ creates several Nets. It creates one each for GPIO, ADC and DAC, plus I2C and SPI when you configure them.
  • An I2C/SPI adapter supports both protocols. A Total Phase Aardvark, for example, creates an I2C Net and an SPI Net.
Some instruments carry several channels of the same type, such as a 4-channel oscilloscope. You can assign and configure a Net for each channel.

Modify or Assign Nets Using the TUI

The interactive TUI (text user interface) assigns new Nets on a multi-channel instrument such as a LabJack or a PicoScope. It also renames an existing Net. To launch the Net TUI, run:

Within the TUI, you can:

  • Add new Nets
  • Rename existing Nets
  • Delete unused Nets

RS-232 Instruments (Manual Assignment)

Some instruments have no USB control port. They connect through a USB-serial adapter instead, such as a Rigol DP711 power supply on its RS-232 port. The Lager Box sees only the adapter cable. It cannot tell which instrument is behind that cable, so nothing appears automatically.
Rigol DP711 — crossover cable required. The DP711’s RS-232 port is wired as DTE, the same as the RS232-to-USB adapter Rigol ships with it. Connecting the two directly will not work — TX talks to TX and nothing gets through. You must insert a null-modem (crossover) cable or adapter between the DP711 and the USB-serial adapter so the TX/RX lines are swapped. Without it the cable shows up in lager nets assign --list but the supply never responds to commands.
Tell the box what the cable is connected to, once per cable:
The Net TUI (lager nets tui) offers the same flow under the Assign Device button. Pick the cable, pick the instrument, and name the net. After you assign it, the instrument appears in lager instruments and in the TUI like any auto-detected device. You add nets for it in the usual way. The box stores the assignment, which survives a reboot and a replug. See the nets assign reference for port-pinned assignments, baud-rate overrides, and removal.

Debug Nets

For debug instruments (e.g., Segger J-Link, ST-Link), you must specify the target MCU when creating the net. This is easily done through the TUI, as it will prompt you to input the MCU type.
Important: The MCU type must match a valid target device supported by your debug probe. If the MCU type is not recognized, the debugger will not function correctly.

Next Steps

With your instruments configured, start controlling them: