Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

how to implement my SPICE model into Multisim

Hi everyone, 

 

I'm a beginner with Multisim so if someone can explain to me how to do this it would be greatly appreciated. 🙂

 

I am trying to implement the SPICE battery model in http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=574106 into multisim.  

 

Do I use an Arbitrary SPICE block and just copy and paste all the text into it?  After that, can I just wire it into my circuit as a battery?

 

Thanks,

Kevin 

0 Kudos
Message 1 of 3
(4,057 Views)

Kevin,

 

The recommended approach is that you wrap the model using a .subckt and then use the component wizard to create a component for the model.

 

Yes, you can use the Arbitrary SPICE block by dumping the model into. But all that will do is append the text to the netlist - there will be no node/wire management and you will be basically loose most of the value that comes from the schematic capture.

 

 

Thanks,

Max
National Instruments
0 Kudos
Message 2 of 3
(4,020 Views)

So I pasted the SPICE model from the last 2 pages of the article in my original post into the component wizard after choosing the NON_IDEAL_BATTERY symbol from the Database to base my new component off of.  

 

My error message was:

 

------ Checking SPICE netlist for Design1 - Wednesday, February 16, 2011, 11:43:22 AM ------ 
SPICE Netlist Error in schematic RefDes 'u1', element 'table':  Not enough nodes found
SPICE Netlist Error in schematic RefDes 'u1', element 'table':  Not enough terminals for device type 'Tranline'
SPICE Netlist Error in schematic RefDes 'u1', element 'liion__lithium_ion_battery__1__1':  Due to errors, the component 'table' has been omitted from the simulation
SPICE Netlist Error in schematic RefDes 'u1', element 'e_cell':  Unknown controlled source table syntax in 'e_cell:liion__lithium_ion_battery__1__1'
SPICE Netlist Error in schematic RefDes 'u1', element 'liion__lithium_ion_battery__1__1':  Due to errors, the component 'e_cell' has been omitted from the simulation
SPICE Netlist Error in schematic RefDes 'u1', element 'xu1':  Not enough nodes found
======= SPICE Netlist check completed, 6 error(s), 0 warning(s) ======= 
Can someone look at the code and tell me how I have to use the component wizard to get it to work?
Thanks a ton in advance, 
Kevin

 

0 Kudos
Message 3 of 3
(3,992 Views)