Skip to main content
Capture and analyze digital signals using the logic analyzer functionality of mixed-signal oscilloscopes.
Known limitations on the Rigol MSO5000. Channel control, capture, measurements, and the edge and SPI triggers work. The pulse, UART, I2C and CAN triggers raise an error that says the scope supports edge and SPI triggers, before anything reaches it. Bus decoders are refused the same way: creating one raises an error that says the scope does not decode buses through lager.

Import

Methods

Method Reference

Net.get(name, type=NetType.Logic)

Get a logic analyzer net by name.
Parameters: Returns: Logic analyzer Net instance

enable()

Enable the logic channel display.

disable()

Disable the logic channel display.

start_capture()

Start continuous waveform acquisition.

stop_capture()

Stop waveform acquisition.

start_single_capture()

Start single-shot capture (captures one triggered event).

force_trigger()

Force a trigger event immediately.

set_signal_threshold(voltage)

Set the logic level threshold voltage.
Note: Channels 0-7 share one threshold, channels 8-15 share another.

display_position(position)

Set the channel display position.

size_large() / size_medium() / size_small()

Set the display size for enabled channels.

Trigger Settings

Logic analyzer nets support advanced triggering through trigger_settings:

Edge Trigger

Edge trigger methods:

Pulse Trigger

Protocol Triggers

UART Trigger

I2C Trigger

SPI Trigger

SPI trigger methods:

CAN Trigger

Valid Ranges

These ranges apply to the SPI trigger, the only protocol trigger the MSO5000 accepts. A value outside them raises ValueError, and the message names the valid range.

Measurements

Logic analyzer nets support digital timing measurements:

Bus Decoding

A Rigol MSO5000 does not decode buses through lager. Each constructor below raises an error before anything reaches the scope.
For protocol analysis, create bus decoders using multiple logic channels:

UART Bus

I2C Bus

SPI Bus

CAN Bus

Examples

Basic Digital Signal Capture

Protocol Timing Verification

Digital Channels

Supported Hardware

Notes

  • Logic channels are numbered D0-D15
  • Channels D0-D7 share one threshold voltage, D8-D15 share another
  • Bus decoders are refused; creating one raises UnsupportedScopeFeature
  • Use NetType.Logic for digital channels, NetType.Analog for analog
  • Only the edge and SPI triggers work; the others raise UnsupportedScopeFeature
  • The trigger can use any combination of analog and digital channels