get_decode_result
Fetch decoded protocol events from oscilloscope decode buses (1-4). Requires stopped acquisition and prior configure_decode with event_table enabled. Optionally set max_events.
Instructions
Read the decoded event table of a decode bus (bus 1-4).
Call configure_decode with enabled=true and event_table=true first; otherwise no table is read and the reason is returned in warnings. Stop the acquisition (stop) before reading, or the table keeps changing between reads and is only a snapshot.
The column names depend on the protocol and on the device (for example time_s, tx_rx, data, error for UART/RS232); read columns instead of assuming a fixed layout. time_s is in seconds relative to the trigger, and the other cells are strings formatted as the data_format of configure_decode selects (hex / ascii / dec / bin).
max_events returns only the first N events; event_count is always the total number of events on the device before truncation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bus | No | ||
| max_events | No |