configure_bus
Set up decoding buses BUS1-BUS4 on a Rigol MHO98 oscilloscope by choosing protocol, display, threshold, and protocol-specific parameters.
Instructions
Configure decoding bus BUS1..BUS4 (common + protocol settings).
protocol: PARallel|RS232|SPI|IIC|LIN|CAN|IIS|FLEXray|M1553 (:BUS:MODE).
Common settings (manual 3.4.1-3.4.9), every None argument is left unchanged: display: bus decoding display on/off format: event-table numeral system HEX|ASCii|DEC|BIN event: event-table display on/off (enable before :EEXPort/:DATA?) label: bus label display on/off - a bool per manual 3.4.5, not text position: bus vertical position, integer -250..250 threshold / threshold_type: per-source threshold in V, sent as ":BUS:THReshold ,", e.g. threshold=1.65, threshold_type="TX". Legal types: PAL|PALCLK|TX|RX|SCL|SDA|CS|CLK| MISO|MOSI|LIN|CAN|CANSub1|FLEX|1553|I2SClk|DATA|WS|CH1..CH4. Legal voltage range: +/-5 vertical divisions around the channel offset.
Typed protocol parameters, routed to the active protocol (if protocol= is omitted, the current bus mode is queried first): source: single line source, CAN|LIN|FLEXray|M1553 only baud: RS232 (1 bps..20 Mbps) | CAN (10 kbps..5 Mbps) | LIN (2.4 kbps..20 Mbps) | FLEXray (2.5/5/10 Mbps, discrete) dbits: RS232 (5..9) | SPI (4..32) parity: RS232 NONE|ODD|EVEN | LIN bool (include parity bit) polarity: POSitive|NEGative for RS232/PARallel/IIS, HIGH|LOW for SPI (cross-spellings are mapped) endian: MSB|LSB for RS232/SPI/IIS
Any other keyword goes through extra as {"": value}; KEY is the
SCPI sub-path validated against a whitelist from the manual, e.g.
RS232: {"RS232:TX": "CH1", "RS232:BAUD": 115200, "RS232:DBITs": 8}
IIC: {"IIC:SCLK:SOURce": "CH1", "IIC:SDA:SOURce": "CH2"}
SPI: {"SPI:SCLK:SOURce": "CH1", "SPI:MOSI:SOURce": "CH2"}
CAN: {"CAN:SOURce": "CH1", "CAN:BAUD": 500000}
Legal keywords per protocol (manual 3.4.10-3.4.18):
PARallel: BUS CLK SLOPe WIDTh BITX SOURce ENDian POLarity
RS232: TX RX POLarity PARity ENDian BAUD DBITs SBITs
IIC: SCLK:SOURce SDA:SOURce EXCHange ADDBits
SPI: SCLK:SOURce SCLK:SLOPe MISO:SOURce MOSI:SOURce POLarity
MISO:POLarity MOSI:POLarity DBITs ENDian MODE TIMeout:TIME
SS:SOURce SS:POLarity
CAN: SOURce STYPe BAUD FDBaud SPOint FDSPoint
LIN: SOURce STANdard BAUD PARity
FLEXray: SOURce BAUD SPOint STYPe CHANnel
IIS: SOURce:CLOCk SOURce:DATA SOURce:WSELect ALIGnment CLOCk:SLOPe
RWIDth RECewidth WSLow ENDian POLarity
M1553: SOURce
Protocol prefixes match case-insensitively (I2C->IIC, FLEX->FLEXray,
1553->M1553) and keywords accept unambiguous SCPI short forms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bus | Yes | ||
| baud | No | ||
| dbits | No | ||
| event | No | ||
| extra | No | ||
| label | No | ||
| endian | No | ||
| format | No | ||
| parity | No | ||
| source | No | ||
| display | No | ||
| polarity | No | ||
| position | No | ||
| protocol | No | ||
| threshold | No | ||
| threshold_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |