I was looking for a way to run a transient analysis and at various times along the way perform an AC analysis. I found a way to do this via e.g.:
analysis('tran ?stop "250n" ?actimes list("0" "250n") ?acnames list("stb") )
analysis('stb ?start "10" ?stop "100M" ?dec "10" ?probe "/stage1/amp/I1/vinj" ?probe "/stage2/amp/I1/vinj" )
run()
However at the times I want to pause the transient analysis to perform the AC analysis I actually want to perform multiple AC analyses. An example reason is that my circuit is a multi-stage switched capacitor amplifier and in one phase all of the stages are disconnected so I can easily do separate stability analyses for each stage without them interfering with each other.
The method outlined in the code above only lets me do one AC analysis per paused transient time. I know there is a way to save the full transient state at various points during the transient simulation. Is there a way later to retrieve that state and force the circuit to use it for multiple subsequent AC analyses?