That was the first thing I checked. There's only one extention on the
file. Does the rest of the code check out?
toggle quoted message
Show quoted text
--- In LTspice@..., Panama Mike <panamatex@y...> wrote:
Is the file really called "MYLIBRARY1.LIB" or
"MYLIBRARY1.LIB.txt"? I turn off
"Hide file extension for known file types"
in Explorer=>Tools=>Folder Options=>View
"MYLIBRARY1.LIB" needs to be the full name
of the file and it must be an ASCII file.
--Mike
--- "bunnyblues2001 <bunnyblues2001@y...>"
<bunnyblues2001@y...> wrote:
OK where did I go wrong, I'm getting - Could not
open include file
"MYLIBRARY1.LIB"
I copied the switch out of help, and the library is
in the sub
directory.
MYLIBRARY1.lib
*SYM=CSW
.MODEL CSWITCH1 1 2
W1 out 0 Vsense CSWITCH1
Vsense a b 0.
.model CSWITCH1 CSW(Ron=.1 Roff=1Meg Vt=0 Vh=-.5)
.ENDS
Version 4
SHEET 1 892 692
WIRE 448 384 448 448
WIRE 448 528 448 560
WIRE 448 560 208 560
WIRE 208 560 208 384
WIRE 208 560 208 576
WIRE 208 304 448 304
FLAG 208 576 0
SYMBOL C:\PROGRAM\
FILES\LTC\SWCADIII\lib\sym\voltage 208 288 R0
WINDOW 123 24 132 Left 0
WINDOW 39 24 160 Left 0
WINDOW 0 42 52 Left 0
SYMATTR Value2 AC 20
SYMATTR SpiceLine Rser=1
SYMATTR InstName V1
SYMATTR Value SINE(0 20 5000)
SYMBOL C:\PROGRAM\ FILES\LTC\SWCADIII\lib\sym\csw
448 304 R0
WINDOW 0 55 20 Left 0
SYMATTR InstName W1
SYMATTR Value CSWITCH1
SYMBOL C:\PROGRAM\ FILES\LTC\SWCADIII\lib\sym\res
432 432 R0
SYMATTR InstName R1
SYMATTR Value 10
TEXT 488 560 Left 0 !.include MYLIBRARY1.lib
TEXT 174 600 Left 0 !.tran 0 .1 .001 .001
* C:\Program Files\LTC\schematics\current.asc
V1 N002 0 SINE(0 20 5000) AC 20 Rser=1
W1 N002 N001 CSWITCH1
R1 N001 0 10
.include MYLIBRARY1.lib
.tran 0 .1 .001 .001
.backanno
.end
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more