This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

INA216: PSpice Model Error

Part Number: INA216

Customer is having troubles simulating the INA216A3 with INA216A3 PSpice Model (Rev. B) using PSpice A/D OrCAD Capture 16.6

They've tried to run the example sim but are getting this issue:

 **** RESUMING SIM1.cir ****

.END

.SUBCKT GND_FLOAT  VDD VSS GNDF

EGNDF  GNDF 0 VALUE = {(V(VDD)+V(VSS))*0.5}

.END

$

ERROR(ORPSIM-16363): Command invalid in subcircuit

----$

ERROR(ORPSIM-16499): Missing .ENDS in .SUBCKT

WARNING(ORPSIM-15256): <X_U1.XU1.XU9.VMINIO> not a subcircuit param

WARNING(ORPSIM-15256): <X_U1.XU1.XU9.VMAXIO> not a subcircuit param

They also get the same error when using that specific part in the design. They've been able to add other parts of the circuit from manufacturer websites without issue.

Do you have any ideas?

Regards,
Mark

 

  • Hello Mark,

    Thanks for reaching out on the forum. From what I can tell it looks as though a line has been removed from your spice code. The code should read as :
    .SUBCKT GND_FLOAT VDD VSS GNDF
    EGNDF GNDF 0 VALUE = {(V(VDD)+V(VSS))*0.5}
    .ENDS
    .END
    *$
    This would explain this error: ERROR(ORPSIM-16499): Missing .ENDS in .SUBCKT
    Was your customer having difficulty running this spice model before they removed the ".ENDS", thereby prompting them to remove it? Or was this possibly an accidental delete?
  • Hi Patrick,

    Thank you, we resolved the issue.

    Regards,
    Mark