simulate
Run headless circuit analysis with Proteus ProSPICE to return voltages, currents, gain, stats, and CSV results without a GUI.
Instructions
Simulate a circuit headless with Proteus's own engine (ProSPICE) and return numbers. Fast (~2 s), no GUI. spec = {"parts":[{"ref":"R1","kind":"R","nodes":["in","out"],"value":"1k"}, ...], "analysis": {"type":"op"} | {"type":"transient","tstop":"5m","tmax":"5u"} | {"type":"ac","fstart":10,"fstop":"1M","points":20,"mode":"dec"} | {"type":"dc","source":"V1","start":0,"stop":5,"step":0.1}, "probes":["v(out)","i(R1)"], # default: all node voltages; i(ref) inserts a current probe (current INTO pin 1) "models":{"MYD":{"type":"D","params":{"IS":"1n"}}}, "temp":27} kinds: R C L (value: 1k 10u 2.2M... ISIS notation: m=milli, M=mega) | V I (value=DC; "wave":{"type":"sine","amp":1,"freq":1000} | pulse{low,high,delay,rise,fall,width,period} | exp | sffm | pwl{points:[[t,v]]}; "ac":true marks the AC source) | D Q QP J JP M MP (nodes D:[A,K] Q:[C,B,E] J:[D,G,S] M:[D,G,S,B]; "model": a Proteus library name like 2N3904, 1N4148 or one in spec.models) | E G (nodes [out+,out-,ctrl+,ctrl-], value=gain) | OPAMP (ideal, nodes [in+,in-,out], optional gain/rout) | X (SPICE subcircuit: "subckt":"TL072" from Proteus's libraries or text in spec["subckts"]; nodes in the subcircuit's port order, e.g. op-amps [in+, in-, V+, V-, out]). Node "0" is ground. SPICE sign conventions for I and G. Returns summary numbers (stats / gain / op), a downsampled table and a full CSV path; use measure() for more.
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": {
"spec": "<spec>"
},
"name": "simulate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | sim | |
| spec | Yes | ||
| max_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | ||
| csv | Yes | ||
| gain | No | ||
| name | Yes | ||
| noise | No | ||
| stats | No | ||
| table | No | ||
| family | No | ||
| probes | Yes | ||
| digital | No | ||
| x_range | Yes | ||
| analysis | Yes | ||
| csv_rows | No | ||
| warnings | No | ||
| partition | No | ||
| distortion | No | ||
| solver_options | No |