measure
Computes statistics, values at x, -3 dB bandwidth, THD harmonics, and edge timing from a finished circuit simulation run for probe-based analysis.
Instructions
Measure on a finished simulate() run. what: stats (min/max/mean/rms) | at (value at x) | bandwidth (-3 dB of an AC probe;
ref=first|peak) | harmonics (THD of a transient probe at fundamental f0 over the last periods periods) | edge (10-90 % time, overshoot).
interp: "linear" (default, how Proteus draws traces) or "hold" (step between solver samples; use for pulse edges and digital-like signals).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"what": "<what>",
"probe": "<probe>"
},
"name": "measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| f0 | No | ||
| ref | No | first | |
| name | Yes | ||
| what | Yes | ||
| after | No | ||
| nharm | No | ||
| probe | Yes | ||
| interp | No | linear | |
| periods | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||