Plecs Analyze
plecs_analyzeRun a named PLECS analysis on a model to obtain AC, impulse, or steady-state response data. Enable summary to get magnitude/phase ranges, gain crossover, and phase margin.
Instructions
Run an analysis (blocking).
analysis_name is the analysis NAME property (e.g. "Loop Gain (AC Sweep)"), not the
tree node label ("AC Sweep"). AC/Impulse/Multitone return {F, Gr, Gi};
Steady-State returns {Time, Values}. summary=true replaces raw arrays with
magnitude/phase ranges plus gain crossover and phase margin.
SolverOpts.Timeout is injected (verified: AnalysisOpts.Timeout is rejected).
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": {
"model_name": "<model_name>",
"analysis_name": "<analysis_name>"
},
"name": "plecs_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | ||
| save_to | No | ||
| summary | No | ||
| timeout | No | ||
| overwrite | No | ||
| max_points | No | ||
| model_name | Yes | ||
| analysis_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||