Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

getting SPICE netlist error in schematic...: Invalid subckt definition '21' and '33' on user added component

In some design work I was doing I needed to use a vacuum tube type that is not available in Multisim. After some research on how to add a component I tracked down a spice model of this part and used the component wizard to add it. After adding it and putting it in a circuit it will simulate fine for a few moments then errors will occur and it will not allow me to restart the simulation there after. Here is the spice model I'm using, and I've attached a screen cap of the error messages. Any help fixing the errors would be appreciated. *----------------------------------------------------------------------- * Filename: SV6AS7.inc V1 25/8/97 * Simulator: PSpice * Device type: Power triode * Device model: Svetlana 6AS7 * * Author: Duncan Munro * Date: 25/8/97 * Copyright: (C)1997-2000 Duncan Amplification * * The following parameters are not modelled: * * (1) Heater is not modelled. * * (2) Grid current is not modelled. * * Please note that this model is provided "as is" and * no warranty is provided in respect of its suitability * for any application. * * This model is provided for educational and non-profit use. * * Email queries to postmaster@duncanamps.com * * Pins A Anode * G Grid * K Cathode * *----------------------------------------------------------------------- .SUBCKT 6AS7 A G K * * Calculate reduction in mu at large negative * grid voltages * Emu mu 0 VALUE={PWRS(V(G,K),0.88)} * * Emission reduction due to low Va * Eel el 0 VALUE={ATAN(LIMIT(V(A,K),0,1E6)/10)} * * Calculate change in shape with reducing grid voltage * Eshape shape 0 VALUE={(220+V(G,K))/220} * Egs gs 0 VALUE={LIMIT(V(A,K)+V(mu)*2.8,0,1E6)} Egs2 gs2 0 VALUE={PWRS(V(gs)*V(shape),1.5)*410E-6} Ecath cc 0 VALUE={V(gs2)*V(el)} * * Calculate anode current * Ga A K VALUE={V(cc)} * * Capacitances * Cgk G K 8p Cga A G 11p Cak A K 3p .ENDS
0 Kudos
Message 1 of 4
(7,013 Views)
Well since the attachment of the error screen cap seems to have failed I'll try it again... [URL=http://s1095.photobucket.com/user/ElectronicMemory/media/CaptureMSerror_zps2873cbf6.png.html][IMG]ht...
0 Kudos
Message 2 of 4
(7,012 Views)
okay I guess the screen cap won't work. Here is the copy pasted error code I'm getting ------ Checking SPICE netlist for Reverse Futterman OTL 1.2 - Saturday, July 20, 2013, 2:36:07 PM ------ SPICE Netlist Error in schematic RefDes 'u2', element 'xu2_b': Invalid subckt definition name '33' SPICE Netlist Error in schematic RefDes 'u2', element '': Due to errors, the subckt instance 'xu2_b' has been omitted from the simulation SPICE Netlist Error in schematic RefDes 'u2', element 'xu2_a': Invalid subckt definition name '21' SPICE Netlist Error in schematic RefDes 'u2', element '': Due to errors, the subckt instance 'xu2_a' has been omitted from the simulation ======= SPICE Netlist check completed, 4 error(s), 0 warning(s) ======= Error message from simulation: doAnalyses: Timestep too small Error message from simulation: tran simulation(s) canceled
0 Kudos
Message 3 of 4
(7,007 Views)

Your link to photobucket does not work either.

 

I was able to insert an image a few moments ago in another thread. Do the screen capture. Save it as a .png file. Then from the reply to message window click on the "tree" image in the toolbar at the top of the text entry box to the right of the Link button).  That is the Insert Image button. In the dialog which pops up Browse to the .png file of your screen capture, then select Insert Image.

 

I suspect that you have the wrong number of nodes listed on the subcircuit call line.

 

Lynn

0 Kudos
Message 4 of 4
(6,991 Views)