| Author |
Message |
fonik

Joined: Jun 07, 2006 Posts: 3950 Location: Germany
Audio files: 23
|
Posted: Thu Jun 04, 2009 6:53 am Post subject:
LTSpice V Subject description: how to import spice models? |
 |
|
hi all,
i am currently working with a very old edu version of electronic workbench. easy to use but one cannot import 3rd party models and i do missing OTA's.
i just downloaded LTSpice V and tried to import nationals LM13700 spice model, following the instructions of the LTSpice manual - without success. obviously i cannot establish a correct connection of symbol and model. i must be doing something wrong with the symbols attributes?
what i did so far:
i drew a symbol and placed pins, using the numbers from the lm13700.mod file.
i then renamed the lm13700.mod file to lm13700.lib and moved it into the 'sub' subdirectory.
i edited the symbols attributes:
Symbol type: Cell
Prefix: x
SpiceModel: lm13700.lib
Description: LM13700 OTA
i left all other fields empty
when i place the component to an empty schematic and run the simulation i get following error message:
| Code: | Fatal Error: Unknown subcircuit called in:
xu1 nc_01 nc_02 nc_03 nc_04 nc_05 nc_06 nc_07 nc_08 nc_09 lm13700.lib |
could anybody help me here?
[EDIT: got more specific] _________________
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source |
|
|
Back to top
|
|
 |
Oli

Joined: May 21, 2008 Posts: 250 Location: i think before i ambient
G2 patch files: 1
|
Posted: Wed Jun 17, 2009 12:51 am Post subject:
|
 |
|
Hi,
I'm having the same problem using LTSPiceIV. I think LTSpice likes to have subcircuits defined in a .sub file, rather than a .lib, and add a SPICE directive manually .include *.sub .
I'm still coming to terms with the details of this though.
I think the manual is a bit inadequate/misleading. I think many users have had the same issue.
There is a Yahoo! group for LTSpice users. I think I'll join up there, as I am finding the program useful for simulating SMPSs. It gave me some interesting results which I wouldn't have guessed from reading data sheets. I'm yet to confirm the results in test.
Cheers,
Oli _________________ Good good study, day day up! |
|
|
Back to top
|
|
 |
fonik

Joined: Jun 07, 2006 Posts: 3950 Location: Germany
Audio files: 23
|
Posted: Wed Jun 17, 2009 1:04 am Post subject:
|
 |
|
thanks for the reply. BTW i solved it!
you have to copy your model and symbol file into the same directory as your schematic (i.e. 'Projects') and specify the path in the component you created.
then you have to add a command line to the schematic with the include argument.
this is described in detail in the LTSpice yahoo group. _________________
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source |
|
|
Back to top
|
|
 |
bearblock

Joined: Sep 27, 2006 Posts: 90 Location: uk
Audio files: 1
|
|
|
Back to top
|
|
 |
|