pspice model to ngspice

Thread Starter

speklap

Joined Jan 11, 2017
7
Hello

I'm trying to import the spice model of the INA128 instrumentation amplifier into gschem. However, it doesn't recognize the files. I've googled and most people said pspice models are mostly compatible and shouldn't raise any problems.
http://www.ti.com/product/INA128/toolssoftware

Can someone see what is wrong or point me into the right direction? An error logfile would also help.

Thanks
 

ElectricSpidey

Joined Dec 2, 2017
734
I have heard that pspice models are encrypted.

Un-encrypted models are available, but I have no idea how to get one.

EDIT:

Ok, so I checked into this and only certain PSpice files are encrypted, not all.
Sorry...
 
Last edited:

eetech00

Joined Jun 8, 2013
1,715
Hello

I'm trying to import the spice model of the INA128 instrumentation amplifier into gschem. However, it doesn't recognize the files. I've googled and most people said pspice models are mostly compatible and shouldn't raise any problems.
http://www.ti.com/product/INA128/toolssoftware

Can someone see what is wrong or point me into the right direction? An error logfile would also help.

Thanks
I looked at the model file. Its not encrypted and looks OK to me.

eT
 

Alec_t

Joined Sep 17, 2013
10,446
I don't use gschem and haven't checked the file, but perhaps just changing the file extension might make it acceptable to gschem?
 

Thread Starter

speklap

Joined Jan 11, 2017
7
So the files on the ti website didn't help me much further. I couldn't get gschem recognize any files. I found also these files, that I uploaded as a zip. I changed INA128.asy to INA128.sym, and copied also the .sub file to my library directory. Gschem was able to see the .sym file, but it gives an error in the preview screen, 'failed to parse circle object'.

My understanding was that LTSpice uses SPICE just as NGSpice and that PSpice is the odd one out. So there shouldn't be much difference between to two. I can be wrong in this though.
 

Attachments

h_vogt

Joined May 18, 2013
2
Among the three files contained in INA128_z.zip, two are LTSPICE-specific (symbols for schematic entry, circuit netlist and simulation). INA128.sub contains the spice model file for INA128 (compatible to LTSPICE, PSPICE, ngspice-28).
If you download from http://www.ti.com/product/INA128/toolssoftware, all files are PSPICE-specific (symbols, netlist etc.), except for INA128.lib, that is again the spice model file for the circuit (and is identical to INA128.sub).
ngspice-28 will only understand INA128.sub (or .lib), it does not have a schematic entry.
gschem (I do not use it) probably has other file formats at least for circuit entry and its symbols. It will generate a netlist which should be compatible with ngspice, and this netlist has to get to know about and include the spice model INA128.lib.
 
Top