get_waveform
Capture and analyze oscilloscope waveform data from Rigol DS1000Z series. Retrieve signal parameters like frequency, amplitude, and shape, or access raw time/voltage arrays for detailed examination.
Instructions
Download and analyse the current waveform for a channel (screen buffer, ~1200 points). Stop or single-trigger the scope first for consistent data. By default returns a plain-text analysis: signal shape, frequency/period, amplitude, DC offset, cycle count, and data-quality warnings (e.g. mid-cycle edges, invalid frequency). Set raw_data=true to get the full time/voltage JSON arrays instead. After reading, act on any warnings — if FREQUENCY would be 9.9E37 widen the timebase; if edges are not near the DC mean, adjust offset so right edge = N×(period/2) − 6×scale.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | ||
| raw_data | No | Return raw time/voltage JSON arrays instead of text analysis (default false) |