LTSpice custom component with *.cir file

Discussion in 'General Electronics Chat' started by geekprincess, Jun 16, 2011.

  1. geekprincess

    Thread Starter New Member

    Jun 15, 2011
    1
    0
    Hi,

    I am working on a custom component OPA320 op amp model from TI. The file from TI is in *.tsm format, so I had to convert it to *.cir so that LTSpice can read it.

    I placed the OPA320.cir file in the sub folder
    and made a symbol named OPA320.asy in the sym folder

    However, after inserting spice derivative .include OPA320.cir in the schematic and tried to run it, it gave me this result:


    Error: .include filename missing
    Circuit: * C:\Program Files\LTC\LTspiceIV\TestingOPA320.asc

    Fatal Error: Unknown subcircuit called in:
    xu1 n001 0 n002 n004 0 opa320

    I don't know how to fix it, and I've followed every single detail I can find on the web on how to create a custom component.

    Thank you
     
    Last edited: Jun 16, 2011
  2. ifixit

    Distinguished Member

    Nov 20, 2008
    638
    108
    Hi geekprincess,

    Without seeing inside your files I'll take a guess...

    Inside your symbol you need to ensure the "Value" line is set to: OPA320

    Right-click on the symbol, then right-click on the Value line and type in OPA320.

    Also the Prefix must be: X

    Also, ensure the pinout order in the symbol matches what the subcircuit has.

    Good Luck,
    Ifixit
     
Loading...