Skip to main content
Control logic analyzer Nets through the Lager CLI for digital signal capture, protocol decoding, and trigger configuration.
Known limitations on the Rigol MSO5000. Channel control, capture, measurements, cursors, and the edge and SPI triggers work. The pulse, UART and I2C triggers fail when an option configures them. Each failure prints Error: Function not found: <method> and exits 1. The CAN trigger and every bus decoder also fail. Issue #418 tracks this work.

Syntax

Global Options

Commands

Exit Codes

A command that fails prints the error and exits 1. This includes a net name that is not a logic net, and an error from the box. A command that succeeds exits 0.

Command Reference

enable

Enable logic analyzer channel for the specified net.
If the logic analyzer of the scope is off, enable turns it on. It then shows the channel of the net and makes that channel active. The channel must be D0 to D15.

disable

Disable logic analyzer channel.
disable hides the channel of the net. When no digital channel stays shown, disable also turns off the logic analyzer.

start

Start continuous waveform capture.

start-single

Start single waveform capture (one-shot).

stop

Stop waveform capture.

Measure Subcommands

measure period

Measure signal period.

measure freq

Measure signal frequency.

measure dc-pos / measure dc-neg

Measure positive or negative duty cycle.

measure pw-pos / measure pw-neg

Measure positive or negative pulse width.

Trigger Subcommands

trigger edge

Set edge trigger configuration.
Options:
  • --mode - Trigger mode: normal, auto, single (default: normal)
  • --coupling - Coupling mode: dc, ac, low_freq_rej, high_freq_rej (default: dc)
  • --source NET - Trigger source net
  • --slope - Trigger slope: rising, falling, both
  • --level FLOAT - Trigger level in volts

trigger pulse

Set pulse trigger configuration. On the Rigol MSO5000, this trigger does not work yet. See the limitations at the top of this page.
Options:
  • --mode - Trigger mode
  • --coupling - Coupling mode
  • --source NET - Trigger source
  • --level FLOAT - Trigger level
  • --trigger-on - Trigger on: gt (a pulse wider than --upper), lt (a pulse narrower than --lower), or gtlt (a pulse between --lower and --upper). The condition does not select a polarity. Without the width it needs, the command changes no width condition and prints a note.
  • --upper FLOAT - Upper pulse width
  • --lower FLOAT - Lower pulse width

trigger i2c

Set I2C protocol trigger. On the Rigol MSO5000, the options that configure this trigger do not work yet. See the limitations at the top of this page.
Options:
  • --mode - Trigger mode
  • --coupling - Coupling mode
  • --source-scl NET - SCL trigger source
  • --source-sda NET - SDA trigger source
  • --level-scl FLOAT - SCL trigger level
  • --level-sda FLOAT - SDA trigger level
  • --trigger-on - Trigger on: start, restart, stop, nack, address, data, addr_data
  • --address INT - Address value (for address trigger), as a decimal integer. The maximum is 127 for a 7-bit address, 255 for 8-bit, and 1023 for 10-bit.
  • --addr-width - Address width: 7, 8 or 10 bits
  • --data INT - Data value (for data trigger), as a decimal integer
  • --data-width - Data width: 1-5 bytes
  • --direction - Direction: write, read, rw

trigger uart

Set UART protocol trigger. On the Rigol MSO5000, the options that configure this trigger do not work yet. See the limitations at the top of this page.
Options:
  • --mode - Trigger mode
  • --coupling - Coupling mode
  • --source NET - Trigger source
  • --level FLOAT - Trigger level
  • --trigger-on - Trigger on: start, error (a framing error), cerror (a parity error), data
  • --parity - Parity: even, odd, none
  • --stop-bits - Stop bits: 1, 1.5, 2
  • --baud INT - Baud rate (110 to 20000000)
  • --data-width INT - Data width in bits: 5 to 8
  • --data INT - Data value to trigger on, as a decimal integer

trigger spi

Set SPI protocol trigger.
Options:
  • --mode - Trigger mode
  • --coupling - Coupling mode
  • --source-mosi-miso NET - MOSI/MISO source
  • --source-sck NET - SCK source
  • --source-cs NET - CS source
  • --level-mosi-miso FLOAT - MOSI/MISO level
  • --level-sck FLOAT - SCK level
  • --level-cs FLOAT - CS level
  • --data INT - Trigger data value, as a decimal integer. The maximum is 2^width − 1.
  • --data-width INT - Data width in bits: 4 to 32
  • --clk-slope - Clock slope: positive, negative
  • --trigger-on - Trigger on: timeout, cs
  • --cs-idle - CS idle state: high, low. With --trigger-on cs, high triggers while CS is low, and low triggers while CS is high.
  • --timeout FLOAT - Timeout length. --trigger-on timeout changes nothing unless you also give --timeout.

Cursor Subcommands

cursor set-a / cursor set-b

Set cursor A or B position.

cursor move-a / cursor move-b

Shift cursor position.

cursor hide

Hide the cursor.

Examples


Supported Hardware


Notes

  • Logic nets capture digital signals (high/low states)
  • Protocol triggers (I2C, UART, SPI) require proper level configuration
  • Use lager nets to see available logic nets
  • Analog and Logic nets can be combined for mixed-signal analysis
  • Integer options such as --address and --data take decimal values. A hex string such as 0x50 is refused.