simulate
Run SPICE netlists through Micro-Cap to return waveform data for transient, AC, DC, distortion, and stability analyses.
Instructions
Run a SPICE netlist through Micro-Cap and return the waveform data.
The netlist is plain SPICE. Rules that will bite you if ignored:
Node
0is ground and must exist. Every node needs a DC path to it, or the run fails to converge.A
.PRINTline is mandatory — it names the outputs you want. Without it Micro-Cap emits only an operating-point dump and no waveforms.Match the analysis to the question:
acfor frequency response and gain/phase,transientfor time-domain behaviour and start-up,dcfor bias points and transfer curves.Set the time span from the circuit's own constants. A
.TRANrunning for 10 s on a circuit with microsecond edges returns a flat line.Active parts need their supplies wired; an op-amp without rails does nothing.
Args:
netlist: full SPICE deck, first line is the title, ending in .END.
analysis: transient | ac | dc | harmonic_distortion |
intermodulation_distortion | dynamic_ac | dynamic_dc | stability.
defines: values for .DEFINE symbols in the deck, e.g. {"R": "1K"}.
max_points: cap on returned samples; the run itself is unaffected.
Returns: Columns, units, sampled data, solver statistics, and any warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| defines | No | ||
| netlist | Yes | ||
| analysis | No | transient | |
| max_points | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||