get_waveform
Capture waveform data from a channel, scaled to volts and seconds, returning summary statistics and decimated sample arrays. Two modes: 'screen' for displayed points, 'memory' for full depth with stopped scope.
Instructions
Capture waveform data from a channel, scaled to volts and seconds.
Returns summary statistics (vmin/vmax/vpp/vavg/vrms) plus decimated time/voltage arrays. In 'memory' mode the scope must be stopped first (use run_control 'stop'); the full memory depth is read and decimated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'screen' reads the ~1000 displayed points; 'memory' reads deep memory (scope must be STOPped) | screen |
| channel | No | ||
| max_points | No | Max points returned (data is decimated to fit) | |
| include_data | No | If false, return only statistics, no sample arrays |