01-28-2010 06:30 AM - edited 01-28-2010 06:38 AM
I have established a model about APEX PA78, but the simulation reports some error, please help me!
Spreadsheet view report is followed:
------ Checking SPICE netlist for PA78 - 2010-01-28 20:12:00 ------
SPICE Netlist Error in schematic RefDes 'u2', element 'xu2': Unexpected '15' found on subckt instance line - too many nodes or parameter value missing name.
SPICE Netlist Error in schematic RefDes 'u2', element '<unknown>': Due to errors, the subckt instance 'xu2' has been omitted from the simulation
SPICE Netlist Error in schematic RefDes 'u1', element 'xu1': Unexpected '1' found on subckt instance line - too many nodes or parameter value missing name.
SPICE Netlist Error in schematic RefDes 'u1', element '<unknown>': Due to errors, the subckt instance 'xu1' has been omitted from the simulation
======= SPICE Netlist check completed, 4 error(s), 0 warning(s) =======
---------------------------------------------------------------------------------------------------
The accessory includes three files, they are:
PA78.TXT is the BERKELEY SPICE model about PA78 from
http://apex.cirrus.com/en/products/apex/design_software.html
PA78U_B.pdf is data sheet about PA78 from
http://apex.cirrus.com/en/products/pro/detail/P1163.html
PA78.ms10 is a bridge-connected configuration, but PA78 itself don't run a simulation.
Solved! Go to Solution.
01-28-2010 09:46 AM
Hi,
I found the problem with the netlist - the model only specifies 10 nodes:
.SUBCKT PA78_BERKELEY__TEST__3 7 6 1 2 12 4 8 11 10 3
but the component template is using 12:
x%p %tIL %tOUT %tCC- %t-VS %tNC1 %t-IN %t+IN %tCR+ %tNC2 %tCR- %tCC+ %t+VS %m
Either add the missing nodes to the definition, or remove them from the template so that the number of parameters matches.
Also, I noticed that the subcircuit is missing a .ENDS at the very end - you'll need to add that as well.
Angela
Software Developer
National Instruments Electronics Workbench Group
01-28-2010 09:54 AM
Hi Fangel,
The simulation error in this case is telling you that there are too many pins for the subcircuit. The APEX PA78 subcircuit that you have uses 10 nodes, but the netlist that Multisim is trying to simulate has 12 nodes. It looks like there are two pins (pin 9 and pin 5) that aren't supposed to be connected to anything, and shouldn't be used in the simulation, but Multisim doesn't know that they're not supposed to be there and is adding unconnected simulation nodes for them.
To mark those pins as unused in the model, edit the component in your database, go to the model tab, and change the model nodes for the pins that aren't used by the SPICE model to "NC" (Not Connected). It looks like the rest of the pins will need to be adjusted as well. Assuming I grabbed the right file from the links you provided, the subcircuit doesn't use the pins in the same order as the component defines them. The .lib file for the PA78 notes that the first node that needs to be provided is +IN, the second node -IN, etc, which means that the model to pin mapping needs to map symbol pin "+IN" to Model node"1", "-IN" to "2", "IL" to "3" and so on in the order they're written in the documentation in the SPICE subcircuit you're using (instead of the order in which they are numbered on the actual component).
After fixing up the pin mappings for the component in the database, you can use the "Update Circuit Components" command in the Tools menu to apply the fixes to the components already placed in your circuit.
01-29-2010 08:54 PM
Hi, Hi
Thank AngelaS and clansing!
It's very queer that Multisim must match the number of pins in sequence.
Even if Multisim is told that PA78 is 12 pin in component Wizard - Step
2 of 8,
whereas, the symbol of PA78 defines 10 pins for use, 5 and 9 is NC pins
not to define in Step 3,
as a result that Multisim only provides 10 pins in sequence so as that
pin mapping can't skip to match pins in Step 6. for example 11 and 12
aren't found to pick up in drop-down menu.
--------------------------------------------------------------------------------------------------
Now, I have add 5 and 9 NC pins in order to match model pins. According to AngelaS I also notice and add .ENDS at last of PA78 Spice, However, Spreadsheet view still reports error:
------ Checking SPICE netlist for PA78 -
------
SPICE Netlist Error in schematic RefDes '', element '<unknown>': Unmatched ".ENDS" statement
======= SPICE Netlist check completed, 1 error(s), 0 warning(s) =======
Please help me to debug, thank!
PA78 BERKELEY SPICE model still stay above.
PA78(modified and still error).ms11 stay this accessory.
02-01-2010 02:20 PM
* PINOUT ORDER +IN -IN IL OUT +VS -VS CR+ CC+ CR- CC-
* PINOUT ORDER 7 6 1 2 12 4 8 11 10 3
.SUBCKT PA78 7 6 1 2 12 4 8 11 10 3
The comments telling you the pinout order are telling you the order that the pins must be listed when using the PA78 .SUBCKT. As you can see from the .SUBCKT line and comments, even though IL is pin 1 on the component, it actually needs to be listed third when using the .SUBCKT. That's what Step 6 in the Component Wizard is asking you for. Step 6 lets you tell Multisim the order in which to use the pins. The comment tells you that +IN is model node 1, -IN is model node 2, IL is model node 3, etc, and then you tell Multisim this by setting the model node numbers
Hope that helps!
03-01-2010 03:02 PM
Hi Fangel,
I'm trying to implement PA78EU in to the muscle stimulation apparatus. However, non of footprints on the specs match your PA78 pin numbers. Please, clarify. BTW, thanks for creating and shearing the model, you saved me time:)
Vess
08-25-2010 05:33 AM
could you please post a working model of the PA78? Thanks.
10-25-2010 08:30 AM
Hi, Maybe this information can help someone.
I find one free to download book about Modeling and simulation.
This book collects original and innovative research studies concerning modeling and simulation of physical systems in a very wide range of applications, encompassing micro-electric-mechanical systems, measurement instrumentation, catalytic reactors, bio mechanical applications, biological and chemical sensors, magneto-sensitive materials, silicon photonic devices, electronic devices, optical fibers, electro-microfluidic systems, composite materials, fuel cells, indoor air-conditioning systems, active magnetic levitation systems and more.
You can find it here:
http://www.intechopen.com/books/show/title/modelling_and_simulation
03-08-2012 05:54 AM - edited 03-08-2012 05:55 AM
Hi everyone.
I created an ECC83 vacuum tube model an tried to simulate, but the same errors that appear to Fangel, appear to me. I've read the expert explanations and know where the problem is, but multisim doesn't let me editting the nodes... they have a fixed value I can't change. The result is attached.
I have 9 terminals for the model, 3 of which are NC, and multisim node mapping is 5, 6, 8, 9, 10, 11, instead of 1, 2, 3, 4, 5, 6... or something.
I'm completely stuck.
Thanks for helping!!
06-05-2013 08:01 AM
It worked,thank you very much!
,By the way,I want to know if a amplifier has eight nodes,but the number of OUT is 33,what should I do? Should I add 25 symbol pins as NC pins?