I downloaded a spice model for an LM317 from TI’s website. I haven’t done this before, using a downloaded spice model from a 3rd party site.
When I try to select the .lib file. I get the error message as shown in the title.
Me KiCad version.
Application: KiCad x64 on x64
Version: 8.0.5, release build
Libraries:
wxWidgets 3.2.5
FreeType 2.13.2
HarfBuzz 9.0.0
FontConfig 2.14.2
libcurl/8.8.0-DEV Schannel zlib/1.3.1
Platform: Windows 11 (build 22631), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: Intel, Intel(R) Iris(R) Xe Graphics, 4.6.0 - Build 31.0.101.5333
Build Info:
Date: Sep 7 2024 02:39:48
wxWidgets: 3.2.5 (wchar_t,wx containers)
Boost: 1.85.0
OCC: 7.8.1
Curl: 8.8.0-DEV
ngspice: 42
Compiler: Visual C++ 1939 without C++ ABI
Build settings:
This is the content of the file. As far as I can see in VSCode every .SUBCKT has a .ENDS
**$ENCRYPTED_LIB
**$INTERFACE
* PSpice Model Editor - Version 16.2.0
*$
* LM317
*****************************************************************************
* (C) Copyright 2014 Texas Instruments Incorporated. All rights reserved.
*****************************************************************************
** This model is designed as an aid for customers of Texas Instruments.
** TI and its licensors and suppliers make no warranties, either expressed
** or implied, with respect to this model, including the warranties of
** merchantability or fitness for a particular purpose. The model is
** provided solely on an "as is" basis. The entire risk as to its quality
** and performance is with the customer.
*****************************************************************************
*
** Released by: WEBENCH Design Center, Texas Instruments Inc.
* Part: LM317
* Date: 11DEC2014
* Model Type: TRANSIENT
* Simulator: PSPICE
* Simulator Version: 16.2.0.p001
* EVM Order Number:
* EVM Users Guide:
* Datasheet:SLVS044V-SEPTEMBER 1999-REVISED FEBRUARY 2013
*
* Model Version: Final 1.00
*
*****************************************************************************
*
* Updates:
*
* Final 1.00
* Release to Web
*
*****************************************************************************
.SUBCKT LM317_TRANS IN ADJ OUT_0 OUT_1
$CDNENCSTART
eee8c5c7a2bc4b01f045f303678664e7916da0bae22e8cb0bba041dd67c69ce448ea70148a9ac1670c8926c1ac5057c8ccfcd77bf87ca9dc0f1da3cdb0bcd952
93d3808648446fd760c210771409cb2e74bc4f0599bfbbf307519d1cb35cd1138dc21df4a16cefd52f4564a395216e3baa51565a9cbfced303b439950312fe23
705d459f50f7a08caf1922b60cad7ad54cb34a6f6f4f982a83463dd640f012e500d3e0b087c73744360b9604c2593567ebda8738a77973e4053f77f5bd6ce4b6
615a28c46d72374094fbbbfac28a5c5c164c9e232793a5b0e99f6ae89c8b7ae3c738bf2365754e19411f8f776a1901f0f6398d1d10cc542cd24b9b57aa451b40
b0eb42ca922cce592fbfcc2b872ff946a30c69f2ad0860c8ce5ec34e6f8ad1cacef2f7fd91539e10d08d9c941a16e1242de074fb35dc5ff0f678c267c84f2c19
6fb17b3e36cbc8d0e71f71e187584171adc0b468eb1c3c4649b41c8dee16aef459468cc72553f5a0c2953a2ce3f60b6e18f436eb3b1396c9bfa4c738e1be534a
9afa1f10a7f457ea7674bbc8caf0d23de7a7ac7d39c4b64faed41d0d06901c485453634dcbb7e97a863395c48feb1756d04f9934eeaa4d2bd3b0dadb40759a45
f28257b2a3730294706b807646b8037134a68fcda26bfffa10e52fd7502b3890644126c9831a96bdadc0b468eb1c3c4649b41c8dee16aef4d3e7637903a5bb4d
e9f419af62bfe95ebc27f931268b4061543abfc1b2b7ee2bced8a743b8015434f182b98fc749cfc2ab6a91e907f651e278d9f63678c73f009d6bedf9d0034ac8
5d078000650a8fa5c3773be6f632e249608c60e84e4520dd0794cbd97559f9298dc21df4a16cefd52f4564a395216e3baa51565a9cbfced303b439950312fe23
a5d158a0fc11634f706b807646b8037134a68fcda26bfffa6702cca7a10a7935644126c9831a96bdadc0b468eb1c3c4649b41c8dee16aef4d3e7637903a5bb4d
b67df0d3ab862a12706b807646b80371861b4b276dab09e17e2b2ece12c41050644126c9831a96bdadc0b468eb1c3c4649b41c8dee16aef4d3e7637903a5bb4d
54653036f112a7e5706b807646b8037156f5943ba023e2cbb0e790381718b082747e94b597bc958d62d766f77596a54b863395c48feb1756299bd68e7d7902e5
a3ce589fda26bc39706b807646b803719169431d85032199fab5526103ec061a8f1d0e3b3309a749042f0c0c78bb0deb8dc21df4a16cefd5b7e571c3ebeef504
0be1bd08545f4ec3706b807646b8037181aec34a846648c9eeca062ffe77a659863395c48feb1756d04f9934eeaa4d2b7813d347d4dcaae1c1479fd22f43796b
82d2e7992b7a58af706b807646b80371629b419ea2176fe19cdab920125b3b0b4fae28fee4ef20ed70ece2f01112fa3ed3a3786b18ad80ab5b0f81211b67e8f3
88b96b7c831faa4a41097083f6b3a2098dc21df4a16cefd52f4564a395216e3baa51565a9cbfced3128640a168315f31d7fd27fd94d7239bb90a2e860ba38db6
bbf0a766f49a242c2637e9cac2aa5cea2cecad1ebf804c4bf467148f06ca8e43f442b6b54cb12d530dd86871c28e079ddeeefb045db09535213e5a68aff94686
22cc75479b3d980a706b807646b80371861b4b276dab09e1806a43345e6a5c213a8d0e744922d2c29852d44347c77c30dbe86c1f70c2d0d3c972a877d53f90ce
69ff18044fae7c89706b807646b8037173658656f6f1dced3d1d674018caacf77489a7895d210103f442b6b54cb12d530dd86871c28e079dff489d73e8b7784c
6dcc2999c2dfe559706b807646b8037116e82cf2888b8d42df328714255803be855e487a2800314bf442b6b54cb12d530dd86871c28e079dff489d73e8b7784c
e9f419af62bfe95ec12e63f53fc8b6c7b83b505ff8816a148d5b93a323f7ddf97208a85e1aefd30ae2518d80881ab63ba49172314c58f798147c4d3a4f8eb5d0
3bb931abd58d52ea6d35d8485846d699c738bf2365754e19411f8f776a1901f0f6398d1d10cc542cc9543eef57dfffbb6f098675792a4d8e9fe45d17c14d3553
1e36f10390632b7b706b807646b8037162cf1fd79a2e130c5bc50189e126b2f6d96e45c95d859606146c7f47970ca091ac6a06391c26b0c6a2c852a1a470e0c8
24fdfd9bb2e10b0790fbda3b38ad8b0bf07eb848d91c740bb48bd2fd0da6e2713515c44821a8d45ece3f0280df3ecbbea3fac8dda1cae1ff4d7e7249c28408bd
e9f419af62bfe95ecc0121b5e20e2076abf70e2d5ade6d761363388aaf31c63a9f7df7e1d85371370559ed12c66d162734edade468fa7c2f6477e87934fc70b3
1215ce9113834d8a3671ec67a9029d44e106d07fc4870c5fd9bba57504693320967aa7e2957a7c886d35d8485846d699c738bf2365754e19e8d2d35f45926ca2
afe317ae10e98155cfa2b28727d5c31d48a3b97d66f85591b032015482838020dbe86c1f70c2d0d390a59aac3b04ace7f6f903a6332b17b333c6941deeb7990a
c9df73872fc6045074e912e3af3ebe643939f2cbdff01fad990acf8aa1c2c01283b1b9263f0c052cdbe86c1f70c2d0d390a59aac3b04ace7e81c3fc6cc28912c
e0bee0f3fadd672460c210771409cb2e9e85c7d75c3b3f87dc1c366bd83c65f7383e44ab7bc2ec2664bcc0a497fc04ba90fbda3b38ad8b0bb01f5a93296591a4
b90e0c5fe970b38760c210771409cb2e92fe7f16cd97a385f24bf58ddadd36c74b84da9a526f50928996186a7016e01159423a129c2540f0f119948bf5578623
717cdf892ff6b6ffd811871cc3622e4a53e7b7d7fd04c659dbe86c1f70c2d0d390a59aac3b04ace7f6f903a6332b17b31b4a85f273dc0d82f71f826611273c58
2cfd781695004e38e78057dd1fecdd99665733228d4f2ccbbe612a3c3f31e214e733ac8f73b17e253fa5e448f128dbd718495025d6d89424d020173982ed1cba
eb277e1fd9355058c26c7dd2683e02ee863395c48feb1756d04f9934eeaa4d2b7813d347d4dcaae1206224a32d0ddc34f257e406fbbce751659aea30d75d0fec
62de40c9486cbee4dc593f38c797867c955a7921baea0bbd91dd7972162f5788dbf81899d13808368dc21df4a16cefd52f4564a395216e3bc43ddf34e0a94b80
$CDNENCFINISH
.ENDS LM317_TRANS
*$
.SUBCKT LM317_TRANS_F1 1 2 3 4
$CDNENCSTART
eee8c5c7a2bc4b01f045f303678664e7916da0bae22e8cb0bba041dd67c69ce448ea70148a9ac1670c8926c1ac5057c8ccfcd77bf87ca9dc0f1da3cdb0bcd952
ae601cf82fbefc0c31820e631d1d1d74872d6da6e74e75eedbe86c1f70c2d0d390a59aac3b04ace7f6f903a6332b17b31b4a85f273dc0d82f71f826611273c58
969b68e4450fa8bd6f31076d2b37e96b3a7bc5327c69eeaf360b9604c2593567ebda8738a77973e40a83b31f961706fa4c2eec829af8b9360da011cfdbaa7596
$CDNENCFINISH
.ENDS LM317_TRANS_F1
*$
.SUBCKT COMP_BASIC_GEN INP INM Y PARAMS: VDD=1 VSS=0 VTHRESH=0.5
$CDNENCSTART
eee8c5c7a2bc4b01f045f303678664e7916da0bae22e8cb0bba041dd67c69ce448ea70148a9ac1670c8926c1ac5057c8ccfcd77bf87ca9dc0f1da3cdb0bcd952
324d0b28bd3976fec3fa3d1e401a4503c7cd3c6de157579e2a235350161d1bcb644126c9831a96bdadc0b468eb1c3c4649b41c8dee16aef4d3e7637903a5bb4d
31a245cc4f39b9f1af5040d5c61521d091d34273a8fcd1de863395c48feb1756d04f9934eeaa4d2b7813d347d4dcaae1206224a32d0ddc3437903e4992f3850f
3b7f5ebe940d64624170694978eb4cf890fbda3b38ad8b0bf07eb848d91c740bb48bd2fd0da6e2713515c44821a8d45ece3f0280df3ecbbed2bd867acc49c127
b076ff8d9576189163285b2908224391adc0b468eb1c3c4649b41c8dee16aef459468cc72553f5a0c2953a2ce3f60b6e18f436eb3b1396c9bfa4c738e1be534a
$CDNENCFINISH
.ENDS COMP_BASIC_GEN
*$
.SUBCKT COMPHYS_BASIC_GEN INP INM HYS OUT PARAMS: VDD=1 VSS=0 VTHRESH=0.5
$CDNENCSTART
eee8c5c7a2bc4b01f045f303678664e7916da0bae22e8cb0bba041dd67c69ce448ea70148a9ac1670c8926c1ac5057c8ccfcd77bf87ca9dc0f1da3cdb0bcd952
9132b7121104d4358be44c41ab888f41b6e3a1568843d867dbe86c1f70c2d0d390a59aac3b04ace7f6f903a6332b17b31b4a85f273dc0d82f71f826611273c58
70d49a25931fcad5af5f0f227a33dfc56b574213c15e8d8904d73209bd6cb354e07469d76c73f504727902e71a3e75d8bb77e20fe987edd8d38aff4e12555a5d
d1579de13894cc53749d13634498f34b2814ec203481f38f6485690991963efc688dc2cfc32ec3a9609956094a2f05290f82827fc36822f076c03a7ef54c51e0
c985c90e830fff9457e2c5aa80851370f442b6b54cb12d530dd86871c28e079ddeeefb045db095354dae3f0ea10f4a3172cbe209c20ffc15619423c3a0dd0ed4
1fdb31c906bbcd7763285b2908224391adc0b468eb1c3c4649b41c8dee16aef459468cc72553f5a0c2953a2ce3f60b6e18f436eb3b1396c9bfa4c738e1be534a
13142c038a62aa150aa66cfdd7abddd7863395c48feb1756d04f9934eeaa4d2b7813d347d4dcaae1206224a32d0ddc34f257e406fbbce751659aea30d75d0fec
$CDNENCFINISH
.ENDS COMPHYS_BASIC_GEN
*$
.SUBCKT COMPHYS2_BASIC_GEN INP INM HYS OUT PARAMS: VDD=1 VSS=0 VTHRESH=0.5
+ T=10
$CDNENCSTART
eee8c5c7a2bc4b01f045f303678664e7916da0bae22e8cb0bba041dd67c69ce448ea70148a9ac1670c8926c1ac5057c8ccfcd77bf87ca9dc0f1da3cdb0bcd952
9132b7121104d4358be44c41ab888f41b6e3a1568843d867dbe86c1f70c2d0d390a59aac3b04ace7f6f903a6332b17b31b4a85f273dc0d82f71f826611273c58
0c881b9f157fe5ecac12f84a4e2deb016b574213c15e8d8904d73209bd6cb354e07469d76c73f504727902e71a3e75d849b9ab5e07010eebdcf6fce07e533960
4d5b1b73307b130390fbda3b38ad8b0bf07eb848d91c740bb48bd2fd0da6e2713515c44821a8d45ece3f0280df3ecbbea3fac8dda1cae1ff4d7e7249c28408bd
d1579de13894cc53749d13634498f34b2814ec203481f38fbc89d7217cff8ae439549005768d832e609956094a2f05290f82827fc36822f076c03a7ef54c51e0
c985c90e830fff9457e2c5aa80851370f442b6b54cb12d530dd86871c28e079ddeeefb045db095354dae3f0ea10f4a3172cbe209c20ffc15619423c3a0dd0ed4
f9ba76f060d2ab54974b4c9bd064e1d9863395c48feb1756d04f9934eeaa4d2b7813d347d4dcaae1206224a32d0ddc34f257e406fbbce751659aea30d75d0fec
13142c038a62aa155e75448842b9d224dbe86c1f70c2d0d390a59aac3b04ace7f6f903a6332b17b31b4a85f273dc0d8285212615812914f1c4f17621e4595e53
eb5079b5f31cc8a48efe6fd309740cfddbe86c1f70c2d0d390a59aac3b04ace7f6f903a6332b17b31b4a85f273dc0d8285212615812914f1c4f17621e4595e53
$CDNENCFINISH
.ENDS COMPHYS2_BASIC_GEN
*$
.SUBCKT D_D 1 2
$CDNENCSTART
eee8c5c7a2bc4b01f045f303678664e7916da0bae22e8cb0bba041dd67c69ce448ea70148a9ac1670c8926c1ac5057c8ccfcd77bf87ca9dc0f1da3cdb0bcd952
b3390a098a7d87069971e708c89445e6adc0b468eb1c3c4649b41c8dee16aef459468cc72553f5a0c2953a2ce3f60b6e18f436eb3b1396c9bfa4c738e1be534a
d7072740a938f0e70a2212ae8720ab0cad56a1ff9bbafc65e77e317e1ae8ea27caf7232baf4c7a64dbe86c1f70c2d0d390a59aac3b04ace7e81c3fc6cc28912c
$CDNENCFINISH
.ENDS D_D
*$
Can somebody tell me what is wrong and if and how I can fix this?
Kind regards,
Bas