analyze_waveform
Get waveform summary statistics (min, max, mean, RMS, std, Vpp) and FFT dominant frequency/peaks from an oscilloscope channel, without transferring raw samples.
Instructions
Analyze a waveform on the host and return only the summary.
The raw samples are never returned; use capture_waveform when the data itself is needed. analyses is a subset of ["stats", "fft"] (all of them when omitted). stats gives min/max/mean/rms/std/vpp in volts; fft gives the dominant frequency and the strongest peaks. Frequency accuracy is limited by frequency_resolution_hz, so do not read more digits than that.
channel is "CH1"-"CH4" or a math trace "MATH1"-"MATH4". A math trace using the fft operator is rejected: its x axis is already frequency, so time-domain statistics and a host-side FFT are meaningless. Read the instrument's own peak table with get_math_state, or fetch the spectrum points with capture_waveform.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | CH1 | |
| analyses | No | ||
| max_points | No |