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 / March 2005



Tip: Looking for answers? Try searching our database.

SuperSpice .subckt and variable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
orangeKDS@mail.ru - 24 Mar 2005 09:40 GMT
I want my subcircuit to have variable/parameter/value. Something like
every resistor has resistance.. So, when I draw schematics, its very
easy to change resistor value and each and every resistor can have
different value. I want that same thing for my .subckt and not to have
to make different model for every possible value.

for eg. this is what i got and it works real nice:

.SUBCKT KP_XN _ssi_pin0 2
* _SS_Symbol [C:\Program
Files\AnaSoft\SuperSpice\System\SchematicBlocks.ssm] [2PinBlock]
B1 _ssi_pin0 2 I=13.5/V(_ssi_pin0,2)
.ENDS

but I wish for  something like this:

.SUBCKT KP_XN _ssi_pin0 2
* _SS_Symbol [C:\Program
Files\AnaSoft\SuperSpice\System\SchematicBlocks.ssm] [2PinBlock]
B1 _ssi_pin0 2 I=a/V(_ssi_pin0,2)
.ENDS

and to be able to change value of a when drawing schematics the same
way I change value of ordinary resistor.
Is it possible?

TIA
Jim Thompson - 24 Mar 2005 15:40 GMT
>I want my subcircuit to have variable/parameter/value. Something like
>every resistor has resistance.. So, when I draw schematics, its very
[quoted text clipped - 23 lines]
>
>TIA

Yes.  But I'm not all that conversive in "B" notation, so I'll leave
it to Kevin or another SS user to do the details.

In PSpice you would declare

.param a = <value>

                                       ...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.
 
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.