ercolino wrote on Mar 20th, 2010, 6:00pm:Hi
I need to run several transient simulations for an analog circuit with a voltage source with the pulse function to study the behavior of a PWM circuit. In each simulation I have to modify several parameters including the pulse value voltage (V2) and the initial conditions at some nodes. These parameters' values are linked by simple math relationships. Is there a way to set only one parameter, say the pulse value, and automatically calculate and set the others during each simulation run? The "pedestrian" approach that I took so far is to calculate the dependent parameters' values by hand and changed in the source before each run. I'm using MacSpice that relies in Spice 3f5.
Thanks in advanced
ercolino
Yes, this is exactly the kind of task MacSpice has been developed for. Its scripting language is a superset of the original 'Spice 3f5/Nutmeg' language, but with the bugs and memory leaks fixed. The MacSpice website has a full set of documentation, links to tutorials and examples:
http://www.macspice.com/One of the example files:
http://www.macspice.com/eg/Advanced.html#alterdoes something similar to what you want. Use the support/feedback link on the MacSpice website to request further assistance if you require it.
All the best
Charles