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.

external component import

can you please exaplain how to import external component in pspise for ti?

also i have tried to import  below pspise model,but that is not working

.SUBCKT ALKALINE +OUTPUT -OUTPUT SOC RATE + PARAMS: CAPACITY=1, RESISTANCE=1
    C_CellCapacity 50 0 { 3600 * CAPACITY * 1.01 }
    R1 50 0 1G
    E_Resistance 20 10 VALUE = {I(V_Sense) * RESISTANCE * V(Cell_Res)}
    E_Cell_R Cell_Res 0 TABLE { V(50) } = (0,2) (0.2,1) (1,1)
    R3 Cell_Res 0 1G
    V_Sense -OUTPUT 20 0
    E_Invert Invert 0 TABLE { V(SOC) } = (0,1) (1,0)
    R4 Invert 0 1G
    E_Rate RATE 0 VALUE = { I(V_Sense)/CAPACITY }
    R2 RATE 60 10 
    C1 60 0 1
    G_Discharge SOC 0 VALUE = { I(V_Sense) } 
    E_Lost_Rate 50 SOC TABLE { V(60) } =
* * Use one of the following tables!!! * *
;----- Use this table for N cells -----
;+ (0.0,0.0) (0.019,0.056) (0.043,0.13) (0.072,0.28)
;+ (0.12,0.39) (0.21,0.58) (0.31,0.69)
;----- Use this table for AAA and AA cells -----
;+ (0.0,0.0) (0.018,0.08) (0.043,0.14) (0.08,0.2)
;+ (0.14,0.3) (0.26,0.48) (0.4,0.6)
;----- Use this table for C cells -----
;+ (0.0,0.0) (0.17,0.13) (0.035,0.31) (0.055,0.45)
;+ (0.093,0.53) (0.17,0.65) (0.27,0.73)
;----- Use this table for D cells -----
;+ (0.0,0.0) (0.0091,0.091) (0.017,0.15) (0.032,0.36)
;+ (0.058,0.42) (0.079,0.61) (0.13,0.73) (0.18,0.82)
    E_Cell +OUTPUT 10 TABLE { V(Invert) }=
+ (0.000E+00 1.528E+00) (2.320E-03 1.511E+00) (4.640E-03 1.500E+00)
+ (9.280E-03 1.481E+00) (1.392E-02 1.468E+00) (1.856E-02 1.457E+00)
+ (2.552E-02 1.442E+00) (3.248E-02 1.430E+00) (3.944E-02 1.419E+00)
+ (4.872E-02 1.406E+00) (5.800E-02 1.394E+00) (6.728E-02 1.380E+00)
+ (7.656E-02 1.370E+00) (1.206E-01 1.326E+00) (2.691E-01 1.230E+00)
+ (5.522E-01 1.126E+00) (8.213E-01 1.021E+00) (9.025E-01 9.901E-01)
+ (9.257E-01 9.792E-01) (9.443E-01 9.676E-01) (9.559E-01 9.564E-01)
+ (9.628E-01 9.445E-01) (9.698E-01 9.299E-01) (9.744E-01 9.181E-01)
+ (9.791E-01 9.043E-01) (9.814E-01 8.937E-01) (9.837E-01 8.800E-01)
+ (9.860E-01 8.654E-01) (9.884E-01 8.470E-01) (9.907E-01 8.040E-01)
+ (9.930E-01 6.417E-01) (9.953E-01 3.795E-01) (9.976E-01 3.354E-01)
+ (1.0 0.0)
    .ENDS

  • Hi Aswin,

    You need to open or create a project, then click tools > generate part. Select the .LIB file, then click yes:

    You can use the default symbol (rectangle) or associate an existing symbol:

    Here's the symbol library file created:

    ALK.OLB

    Regards,
    JC

  • WHEN I STIMULATED.I GOT BELOW ERROR.CAN YOU PLEASE HELP ME TO FIX THIS ISSUE?


    ** Creating circuit file "JHH.cir"
    ** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT SIMULATIONS

    *Libraries:
    * Profile Libraries :
    * Local Libraries :
    * From [PSPICE NETLIST] section of C:\cds_spb_home\cdssetup\OrCAD_PSpiceTIPSpice_Install\17.4.0\PSpice.ini file:
    .lib "C:\Users\aswin.k\Desktop\mean\ALK.LIB"

    *Analysis directives:
    .TRAN 0 1000ns 0
    .OPTIONS ADVCONV
    .OPTIONS FILEMODELSEARCH
    .PROBE64 V(alias(*)) I(alias(*)) W(alias(*)) D(alias(*)) NOISE(alias(*))
    .INC "..\SCHEMATIC1.net"

    **** INCLUDING SCHEMATIC1.net ****
    * source MORE
    X_U1 N00120 0 0 0 0 ALKALINE PARAMS: CAPACITY=1, RESISTANCE=1
    R_R2 0 N00120 1 TC=0,0

    **** RESUMING JHH.cir ****
    .END

    INFO(ORPSIM-15423): Unable to find index file ALK.ind for library file ALK.LIB.

    INFO(ORPSIM-15422): Making new index file ALK.ind for library file ALK.LIB.

    Index has 1 entries from 1 file(s).


    **** EXPANSION OF SUBCIRCUIT X_U1 ****
    X_U1.C_CellCapacity X_U1.50 0 { 3600 * CAPACITY * 1.01 }
    X_U1.R1 X_U1.50 0 1G
    X_U1.E_Resistance X_U1.20 X_U1.10 VALUE {I(V_Sense) * RESISTANCE * V(Cell_Res)}
    X_U1.E_Cell_R X_U1.Cell_Res 0 TABLE { V(50) } 0 2 0.2 1 1 1
    X_U1.R3 X_U1.Cell_Res 0 1G
    X_U1.V_Sense 0 X_U1.20 0
    X_U1.E_Invert X_U1.Invert 0 TABLE { V(2#) } 0 1 1 0
    X_U1.R4 X_U1.Invert 0 1G
    X_U1.E_Rate 0 0 VALUE { I(V_Sense)/CAPACITY }
    X_U1.R2 0 X_U1.60 10
    X_U1.C1 X_U1.60 0 1
    X_U1.G_Discharge 0 0 VALUE { I(V_Sense) }
    X_U1.E_Lost_Rate X_U1.50 0 TABLE { V(60) }
    ------------------------------------------$
    ERROR(ORPSIM-16397): Missing polynomial

  • You need to edit the model according to the instructions:

  • can you please show me the edited example,your schematic and simulated output?

  • Please share your project.

    -JC

  • no.i need to understant how to edit that model.please take as example N cells

  • Aswin,

    The model file is self-explanatory. You need to uncomment the lines below the N cell. Please refer to the E_CELL line below that as an example. Please contact who provided you this model if you have any other questions. This is not a simulator issue.

    -JC