Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

new component creat in multisim

hello, I need help on this issue, I have tried to creat a new component(max4249) in multisim with the following spice code, but the multisim return a error message:  

 

 

Two current sources were found to be in series.
Please check the following current sources:ibiase:xu2, i1:xu2
Simulation requires at least one ground
is this because the spice code I use can not be supported by multisim??
the following is spice code I use:
*   ====>      REFER TO MAX4249 DATA SHEET       <====
*
* connections:        non-inverting input
*                     |   inverting input
*                     |   |   positive power-supply
*                     |   |   |   negative power-supply
*                     |   |   |   |   output
*                     |   |   |   |   |
* OUTPUT CONNECTS:    1   2   99  50  97
*
*
.SUBCKT Max4250  1 2 99 50 97
****************INPUT STAGE**********************
I1 99 4 .5e-3
M1   5  2 4 99 MOSFET
R3   5 50 2828
M2   6  7 4 99 MOSFET
R4   6 50 2828
DP1  1 99 DA
DP2 50  1 DA
DP3  2 99 DB
DP4 50  2 DB
Ibiase 7 4 1pa
************************
************ GAIN, 1ST POLE, SLEW STAGE************
EH 99 98 99 50 0.5
G0  98  9 5 6 7.87e-1
VB 9 10 0V 
R0  98  9 127E4
C3 10 98 1.112e-7
*C3 10 98 1.3E-10
*** ***********
D107 10 99 Dx 
D103 10 100 Dx
D104 100 99 Dx
F100 100 99 POLY(1) VB -.32E-1 1
* was -1.6E-1
****
D108 50 10 Dx
D105 101 10 Dx
D106 50 101 Dx
F2 50 101 POLY(1) VB -.32E-1 -1
*** **********
D1 9 111 DX
D2 112 9 DX
V11 99 111 .68V
V12 112 50 .58V
************
I2 99 50 -.5ma
Isupply 99 50 400ua
VOS 7 1 0v
*CHANGE OFFSET VOLTAGE TO 0V FOR OPEN-LOOP, OTHERWISE VOS
*********COMMON-MODE ZERO STAGE********
******* POLE STAGE **********
G3 98 15 10 98 1E-3
R12 98 15 1E3
***************************
*********** change for second pole
*C5 98 15 8p
*  
*************OUTPUT STAGE****************
F5 99 38 VA8 1
D9 40 38 DX
D10 38 99 DX
VA7 99 40 0
G12 98 32 15 98 1E-6
***                ^ INSERT NODE FROM LAST STAGE HERE
R15 98 32 1E6
D3 32 36 Dx
D4 37 32 Dx
V5 97 37 1V
V4 36 97 1v
*V5,V4 SET ISC
R16 34 197 20
LOUT 197 97 8.0uh
E1 99 33 99 32 1
VA8 33 34 0V
******************************************
.MODEL DA D(IS=100E-14 RS=.5K)
.MODEL DB D(IS=100E-14 RS=.5K)
.MODEL DX D(IS=100E-14)
.MODEL Dp D(N=0.001)
.MODEL MOSFET PMOS(VTO=.250 KP=1.8E-3)
*VTO ESTABLISHES INPUT VOLT. RANGE  , was -1.7
*
.Ends

 

 

 

0 Kudos
Message 1 of 2
(3,054 Views)

Hello,

 

Thank you for posting your question on National Instruments' forums.

 

To my knowledge, there is no compatibility issue between SPICE and Multisim.

Therefore, the error you see can have several causes such as a problem in the SPICE code you are using, a wrong wiring of your component, or a missing step during the creation of your component in multisim.

 

For the first two possibilities, you'll have to check your code and your design to make sure that everything is correctly connected anr/or declared.

 

For the last option, you should have a look to the following links. they contain information about the best practices to create a custom component in Multisim.

 

How to Import a SPICE Model Into Multisim

 

Creating a Custom Component in NI Multisim

 

You can also have a look to the SPICE dedicated session of the developer zone, which contains a lot of information about SPICE and its use in multisim :

 

SPICE Simulation Fundamentals

 

 

I hope this information will help you.

 

Best regards,

Guillaume H.
National Instruments France

0 Kudos
Message 2 of 2
(3,005 Views)