Query binary SCPI block
query_binaryRead IEEE binary blocks from SCPI instruments safely, returning stats and a short preview. Optionally save full records to CSV or get a capped numeric array.
Instructions
Read an IEEE binary block. By default returns stats + a short preview.
Pass save_path= to keep the full record, or return_values=true for a capped array. For oscilloscope traces prefer scope_capture_waveform / export_waveform. Do not use query() for binary — the terminator byte can appear inside the payload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command that returns an IEEE binary block | |
| datatype | No | struct format: B, b, h, H, i, I, f, d | B |
| resource | No | ||
| save_path | No | If set, write values as CSV (one number per line) to this path | |
| max_return | No | ||
| is_big_endian | No | ||
| return_values | No | Include the full numeric array (capped by max_return) | |
| preview_points | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| notes | No | ||
| values | No | ||
| command | Yes | ||
| preview | No | ||
| datatype | Yes | ||
| n_values | Yes | ||
| resource | Yes | ||
| max_value | No | ||
| min_value | No |