TroubleshootingΒΆ
waiteventalways times out: make sure you actually started the background run ($sim command bg_run) and you allow the Tcl event loop to process events (update) between waits when appropriate.Circuit is not loaded: ensure your circuit issues
.enddirective.Complex data surprises: if you expected real data but get
{re im}pairs, your vector is complex per ngspice. Handle both cases in your Tcl code if needed.Multiple runs: clear old event data between runs if you want pristine event counters and messages buffer:
$sim messages -clearand$sim eventcounts -clear. Data buffer and saved vectors resetted after run of the new simulation to prevent data mixing.
Copyright (c) George Yashin