*SRC=DMG6968U;DI_DMG6968U;MOSFETs N;Enh;20.0V 6.50A 25.0mohms  Diodes Inc MOSFET
*SYM=POWMOSN
.SUBCKT DMG6968U   10 20 30
*     TERMINALS:  D  G  S
M1   1  2  3  3  DMOS L=1U W=1U
RD  10  1  10.9m
RS  40  3  1.62m
RG  20  2  33.7
CGS  2  3  119p
EGD 12  0  2  1  1
VFB 14  0  0
FFB  2  1  VFB  1
CGD 13 14  226p
R1  13  0  1.00
D1  12 13  DLIM
DDG 15 14  DCGD
R2  12 15  1.00
D2  15  0  DLIM
DSD  3 10  DSUB
LS  30 40  7.50n
.MODEL DMOS NMOS(LEVEL=3 VMAX=41.7k THETA=80.0m
+ ETA=2.00m VTO=0.900 KP=31.8)
.MODEL DCGD D (CJO=226p VJ=0.600 M=0.680)
.MODEL DSUB D (IS=27.0n N=1.50 RS=55.4m BV=20.0
+ CJO=176p VJ=0.800 M=0.420 TT=247n)
.MODEL DLIM D (IS=100U)
.ENDS


I cannot open the file with LTspice (if I try opening it from within LTspice, it does absolutely nothing; if I drag-n-drop the file into the LTspice workspace, it gives me an "Encountered an Improper Argument" error). Please help!

Actually, the above is not exactly the downloaded code — all of the .model directives were missing the closing bracket (parenthesis), so I added them, but I'm still getting the same error.

• spice isn't spice, it was probably created for another spice – PlasmaHH Aug 13 '18 at 20:10
• I have had trouble using Diodes Inc models in LT Spice, they will act as if the body diode is wrong way around. Once I was able to get an LTSpice model from them by asking on their their contact-us page, but YMMV... – The Photon Aug 13 '18 at 20:19
• Also, don't just open this file in LTSpice, put a .include <file> into your top-level design. – The Photon Aug 13 '18 at 20:19
• @ThePhoton -- the procedure that I've found easiest is to just create a symbol; I open the file in LTspice (it gives me a "text editor with syntax highlight" window). Then, right-click on the .subckt keyword, and the pop-up menu gives me the option to "Create a Symbol". It then shows up in the [Autogenerated] folder when I click on the "Component" toolbar button to add components to the schematic. – Cal-linux Aug 13 '18 at 20:28
• I just copied your subckt into LTspice and hooked up a symbol to it and grounded the source and gate and did a run. Seems okay, so far as it goes. No errors displayed. – jonk Aug 14 '18 at 22:40