sim_setup_analysis
Configure transient, AC, and DC SPICE analyses and output expressions in a project's .simcfg so simulation runs use the intended settings.
Instructions
Set the analyses sim_run will use, in the project's .simcfg.
Values are SPICE values: a number in SI units, or a string with a SPICE suffix ("5u", "10n", "1k", "100meg").
Args: transient: {"stop", "step", "start" (default 0), "max_step" (default step)}. ac: {"start", "stop", "points", "sweep": "dec" | "oct" | "lin"}. Points are per decade or octave, or in total for lin. dc: {"source" (a source designator such as "V1", or "Temp"), "start", "stop", "step"}. outputs: expressions to plot in each analysis set here, e.g. ["v(out)", "i(v1)"]. project_path: the project; empty uses the focused one.
WHAT A RUN DOES, MEASURED: a run started from a script performs an operating point, a DC sweep, a transient and an AC analysis together, whatever is switched off in the dashboard. The values set here are what those analyses use. An analysis you do not need still runs on its last settings; sim_get_results(analysis=...) returns just the one you want.
Altium's own settings are saved first, so changes made in the Simulation Dashboard are kept, then the file is changed and reloaded into Altium. A project without a .simcfg gets one.
Returns: Dict with simcfg (the file), set (the keys written), reloaded, and created when the file is new.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ac | No | ||
| dc | No | ||
| outputs | No | ||
| transient | No | ||
| project_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||