Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

New component for simulation

Hello,

I'm having some trouble to get my new component to simulate.

It's a photoMOS and I downloaded some data for a this component from the develpers homepage.

But I don't know much about Pspice so I'm pretty lost how to insert it into the component.

 

The first thing I did was to cut out the data for only one component (the .lib-file felt like it was made for a lot of different components). Then I tried to make a component in Multisim by using "component wizard". Then I inserted my "new" file (AQY21S.lib) during some step.

The scematic and PCB symbol works fine. But when I start to simulate I get some errors (and the simulation never starts).

 

Could anyone expalin for me how to insert a SPICE file from a manufactor for simulation. What in the file is needed and how to insert it in a component. Or if someone could point out a good tutorial for a newbe in Spice.

 

I also attach 2 files, ps_aqv21s.zip is the original from the manufactor and AQY21S.zip is my try attempt to cut out only one component fromit.

 

Thankful for help

 

Download All
0 Kudos
Message 1 of 8
(6,656 Views)
Pspice is not fully supported in Multisim, Spice is supported. Anyways, the models RES and CAP had to be changed to R and C respectively. I am not sure how to make a simulation of your circuit, however, after changing these parameters I did not got any error when trying to simulate only that component by itself... it just asked for a GND signal. Try this model:
 
*AQY21S
.SUBCKT AQY210S PIN1 PIN2 PIN3 PIN4
D_D26         N00758 N00785 SC
M_Q5         N21894 N01383 PIN5 PIN5 DMOS          
R_R2         PIN4 N21894 RON 12
D_D19         N00562 N00589 SC
E_E1         N76771 N01383 PIN4 N01383 0.97
D_D42         PIN3 N82760 DMIN
D_D27         N00785 N00812 SC
R_R3         N26592 PIN3 RON 12
M_Q6         N26592 N01383 PIN5 PIN5 DMOS          
D_D20         N00589 N00616 SC
D_D28         N00812 N01551 SC
E_E2         N76924 N01383 PIN3 N01383 0.97
G_ABMI1         N01383 N01551 VALUE ( -0.0008*I(V_V1)   )
M_Q3         N01383 N01551 PIN5 PIN5 DIC_NC          
D_D21         N00616 N20858 SC
C_Cgs1         PIN5 N01383  6p 
D_D12         N01383 N00427 SC
D_D22         N20858 N00677 SC
D_D13         N00427 N00454 SC
D_D30         PIN5 PIN4 D_DMOS
V_V1         N01162 PIN2 0Vdc
C_Cgs2         N01383 PIN5  6p 
D_D33         N01383 N82760 DGD
D_D31         PIN5 PIN3 D_DMOS
D_D14         N00454 N00481 SC
D_D40         N01383 N635380 DGD
D_D23         N00677 N00704 SC
M_Q4         PIN5 PIN5 N01551 N01551 DIC_NO          
D_D41         PIN4 N635380 DMIN
C_C1         PIN4 N76771 CTEMP 30p
D_D15         N00481 N00508 SC
D_D24         N00704 N00731 SC
C_C2         N76924 PIN3 CTEMP 30p
D_D16         N00508 N00535 SC
D_D25         N00731 N00758 SC
R_R1         N01551 PIN5  2.5E6 
D_D29         PIN1 N01162 LED
D_D18         N00535 N00562 SC
 
.MODEL RON R
+ TC1=10E-3
+ TC2=7.5E-5

.MODEL DGD D
+ IS=1E-30
+ N=10
+ CJO=80E-12
+ IBV=1E-6
+ VJ=0.8
+ M=0.8

.MODEL DMIN D
+ IS=1E-21
+ CJO=400E-12
+ VJ=2
+ M=0.75
+ IBV=1E-6
+ FC= 0.5

.MODEL Ctemp C
+ TC1=40E-3
+ TC2=100E-6
+ VC1=-10E-3

.MODEL D_DMOS D
+ N=1.03
+ IS=1.35e-012
+ RS=0.7
+ M=.5
+ IKF=0.006
+ CJO=30E-12
+ VJ=.4
+ NR=1.2
+ ISR=15.00E-12
+ BV=351
+ IBV=100.00E-6
+ TT=5.0000E-9

.MODEL DMOS NMOS
+ LEVEL=1
+ L=500E-6
+ W=500E-6
+ KP=20
+ VTO=3

.MODEL LED D
+IS=160E-15
+N=1.8
+RS=3.6
+IKF=6.4E-15
+CJO=40E-12
+M=.3333
+VJ=.75
+ISR=100E-12
+BV=5
+IBV=100E-6
+TT=5E-9

.MODEL SC D
+IS=120E-15
+RS=10
+N=1.25
+CJO=30E-12

.MODEL DIC_NC NMOS
+LEVEL=3
+L=100E-6
+W=100E-6
+KP=1.2E-3
+VTO=-0.54

.MODEL DIC_NO NMOS
+LEVEL=3
+L=100E-6
+W=100E-6
+KP=0.13E-3
+VTO=0.45
.ENDS
Nestor
0 Kudos
Message 2 of 8
(6,621 Views)

Hello,

I’m still having some trouble to get my component to start working correctly in MultiSim.

I have cut out some lines in to make it smaller and easier to find the problem, see the attached file.

 

 

As it is now, the first diod will work, but not the second and third. If  I change name on LEDA to LED it will work. WHY?!?

Can’t I use any name I want here?

This is what the SPICE “spec” says (from a book on internet):

.MODEL MODName D (IS= N= Rs= CJO= Tt= BV= IBV=)

 

I try the component by placing only the component on a schematic and then chose “Transfer -> Export to netlist” and then open this netlist. The I get the errors in a external window.

 

Could anyone explain to my why I can’t use any word I like there, and how to make it work.

 

/Alis

0 Kudos
Message 3 of 8
(6,579 Views)
Have you tried leaving a space between LED and A?... "LED A"... instead of "LEDA", did you tried the code I placed here before? Did it worked?
Nestor
0 Kudos
Message 4 of 8
(6,576 Views)

Thank's for your replay Nestor,

Yes I tried your code, and that brought me one step future. But it still won't work.

With your code I still get a lot of faults. If you just make a circuit with a component wich have your code, and then export it (“Transfer -> Export to netlist”) and then open this netlistfile you created, you will see that you get alot of strange messages (and faults). Most components will be virtual, and some pins wont be connected.

This is very strange.

And why would it be a difference between using LED A and LEDA? Must this be a special word here? I thought that I could chose my own name for it.

Thanks for all the help!

0 Kudos
Message 5 of 8
(6,568 Views)
Hello NI
Unfortunately, I did not find the component LM3146A or CA3146A (High Voltage Transistor Array) in the NI Multisim,So I shall be very appreciative if someone from the NI Group is able to provide me with this component in order to simulate my circuit.Thanks alot.
my best regards
Download All
0 Kudos
Message 6 of 8
(6,126 Views)
I have created a model file for your component. I used Ideal Transistors to make it so I don't know if this will suit your purpose. I will post the model and if you need to you can adjust the transistor specification inside the model to what you need. I have tested it and it does seem to work. Here's the model:
Kittmaster's Component Database
http://ni.kittmaster.com

Have a Nice Day
0 Kudos
Message 7 of 8
(6,101 Views)
I made an error in my design of this component. I had transistor Q2 flipped in the wrong direction. I have corrected this error and will post the new component model file below.
Kittmaster's Component Database
http://ni.kittmaster.com

Have a Nice Day
0 Kudos
Message 8 of 8
(6,059 Views)