Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsElectronicsBasicsRepairDesignCADComponentsEquipmentElectrical Engineering
ElectronicsKB.com
Contact UsLink To UsSearch & Site Map

Electronics Forum / CAD / April 2005



Tip: Looking for answers? Try searching our database.

Parametric sweep of model implementation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Klaus Kragelund - 28 Apr 2005 12:55 GMT
Hi

I´m using PSpice Capture 10.3

One of my simulations on a SMPS I´m using a BJT as a switch transistor

I would like to do a parametric sweep on the circuit with two
different BJTs models (lets say the transistors are BC547 and 2N2222)
to determine the optimum choice of transistor

My method sofar is to use two global values in the parametric sweep (1
and 2). Then in the position of the BJT there is a subcircuit with the
two BJTs with both transistors in parallel with resistors on all
connections

The value of the resistors is determined by an IF command, that when
the parametric value is 1 one set of resistors is 1mOhm and the other
set 1Meg and vice versa.

But this is a cumbersome method. The optimal would be that Pspice
would allow the implementation name to change according to the needed
model but that feature is not available

So the question, do any of you guys have a better method for this
problem?

Thanks

Klaus
Jim Thompson - 28 Apr 2005 15:17 GMT
>Hi
>
[quoted text clipped - 25 lines]
>
>Klaus

Klaus,

There is no provision for a library change in PSpice.  HSpice does it
with their .ALTER command.

HSpice actually reruns the simulation with changes as stated in the
.ALTER.

I've done it by concatenating .CIR files using an ordinary text
editor.  I've been known to concatenate as many as 32 different
library corners into one simulation.

Maybe I can convince the oldest son, the programmer, to write me
another utility :-)

You can also do it now with v10.3 by using the Save As command in
Probe.  Save a version, rerun with changes, then append the saved
data.

                                       ...Jim Thompson
|  James E.Thompson, P.E.                           |    mens     |
|  Analog Innovations, Inc.                         |     et      |
|  Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
|  Phoenix, Arizona            Voice:(480)460-2350  |             |
|  E-mail Address at Website     Fax:(480)460-2142  |  Brass Rat  |
|       http://www.analog-innovations.com           |    1962     |
           
I love to cook with wine.      Sometimes I even put it in the food.
Kevin Aylward - 28 Apr 2005 17:16 GMT
>> Hi
>>
[quoted text clipped - 34 lines]
> HSpice actually reruns the simulation with changes as stated in the
> .ALTER.

This is interesting. I would have though PSpice would implement
something similar to what is in In TISpice, it uses rerun cards

.Reruns
statments
.Rend

You just make a file with as many reruns as you like, with each rerun
specifying various parameters and libraries. SS does this for
parameters, but not lib, so to change a model in this way, one would
have to set each parameter of the model in a rerun. SS can generate this
automatically.

> I've done it by concatenating .CIR files using an ordinary text
> editor.  I've been known to concatenate as many as 32 different
> library corners into one simulation.

Oh dear..SuperSpice does this all within the GUI...
http://www.anasoft.co.uk/WCSETUP.GIF

All plots of all runs are all automatic.

> Maybe I can convince the oldest son, the programmer, to write me
> another utility :-)

Or have a look at another simuater:-)

Kevin Aylward
informationEXTRACT@anasoft.co.uk
http://www.anasoft.co.uk
SuperSpice, a very affordable Mixed-Mode
Windows Simulator with Schematic Capture,
Waveform Display, FFT's and Filter Design.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.