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 fail. Every bus decoder fails when you create it. A method that fails raises an error that contains Function not found. Issue #418 tracks this work.

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

CAN Trigger

Valid Ranges

A value outside these ranges raises ValueError, and the message names the valid range.

Measurements

Logic analyzer nets support digital timing measurements:

Bus Decoding

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
  • Protocol decoding requires enabling bus analysis mode
  • Use NetType.Logic for digital channels, NetType.Analog for analog
  • Bus decoders work with both Logic and Analog nets as sources
  • The trigger can use any combination of analog and digital channels