simulate_schematic
Run a Micro-Cap .CIR schematic and return its simulation data, with automatic processing of export settings to ensure usable results.
Instructions
Run a Micro-Cap .CIR schematic and return its data.
Use this to adapt a reference: fetch one with get_example (its
format will be microcap_schematic), change a component value or two
in the text, and run the modified schematic here. simulate is for plain
SPICE netlists; this is for the coordinate-carrying .CIR format.
Numeric export is switched on automatically, NPts is overridden to
points (the shipped setting is often 0, which exports one row), and
the symbolic transient bound TMIN is repaired for batch mode — all the
things that make a stock schematic yield no data otherwise.
Args:
schematic: full .CIR text.
analysis: which of the circuit's analyses to run.
defines: values for any .DEFINE symbols the schematic uses.
points: resolution to compute at; see simulate_example.
max_points: cap on returned samples.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | No | ||
| defines | No | ||
| analysis | No | ac | |
| schematic | Yes | ||
| max_points | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||