indiraji
Newbie level 6
- Joined
- May 19, 2014
- Messages
- 13
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 83
SUBCKT NTC used by u1_x is undefined .
.subckt THERMISTOR 1 2 Params: T0=25, R0=1000, B=3892
Btherm 1 3 V = I(Vsense)*(R0)*EXP(B*((1/(V(TEMP)+273))-(1/(T0+273)))))
Vsense 3 2 DC 0
.ends
.PROBE64 V(alias(*)) I(alias(*)) W(alias(*)) D(alias(*)) NOISE(alias(*))
.INC "..\SCHEMATIC1.net"
**** INCLUDING SCHEMATIC1.net ****
* source CCK
X_U1 N004660 N004661 C619_22000 PARAMS: TOL=0
V_V1 N004660 0 DC 5Vdc AC 1Vac
R_R1 0 N004661 1k TC=0,0
**** RESUMING nara.cir ****
.END
ERROR(ORPSIM-15108): Subcircuit NTC used by X_U1.X1 is undefined
As you created your symbol, did you used the word "NTC" somewhere? Or just rename "THERMISTOR" into "NTC".
.subckt THERMISTOR 1 2 Params: T0=25, R0=1000, B=3892
Btherm 1 3 V = I(Vsense)*(R0)*EXP(B*((1/(V(TEMP)+273))-(1/(T0+273)))))
Vsense 3 2 DC 0
.ends
.subckt NTC 1 2 Params: T0=25, R0=1000, B=3892
Btherm 1 3 V = I(Vsense)*(R0)*EXP(B*((1/(V(TEMP)+273))-(1/(T0+273)))))
Vsense 3 2 DC 0
.ends
Btherm 1 3 V = I(Vsense)*(R0)*EXP(B*((1/(V(TEMP)+273))-(1/(T0+273)))))
You are trying to use LTSpice private behavioral syntax in PSpice. Review the PSpice reference for legal behavioral expressions. They should use a E controlled source, if I remember right.Code:Btherm 1 3 V = I(Vsense)*(R0)*EXP(B*((1/(V(TEMP)+273))-(1/(T0+273)))))
.SUBCKT memristor 1 2 6
Eres 1 9 POLY(2) (8,0) (10,0) 0 0 0 0 1
Vsense 9 4 DC 0v
Fcopy 0 8 vsense 1
Rstep 8 0 1k
Rser 2 4 10
Gmem 6 0 VALUE={I(Vsense)*max(v(6,0)*(1-v(6,0)), 0)}
Cmem 6 0 50nf
Ecpy 6 0 VALUE={min(max(v(6,0),0),1)}
Rsp 6 0 1000Meg
.ENDS
**** INCLUDING SCHEMATIC1.net ****
* source SIMU2
R_R1 N00149 0 1k TC=0,0
V_V1 N00140 0
+SIN 0 1Vdc 500hz 0 0 0
R_R2 N001821 N00323 1G TC=0,0
V_V2 N001821 0 0.5Vdc
X_M1 N00140 N00149 N00323 MEMRISTOR
**** RESUMING mem.cir ****
.END
ERROR(ORPSIM-15108): Subcircuit MEMRISTOR used by X_M1 is undefined
Apparently you had been able to resolve this error later on, otherwise post #7 would never have been written. So I presume you know how to import subcircuits correctly.i get the same error as before
Apparently you had been able to resolve this error later on, otherwise post #7 would never have been written. So I presume you know how to import subcircuits correctly.
Regarding the "invalid parameter" error in post #7, the memristor subcircuit shows how behavioral circuits can be described in PSpice.
**** INCLUDING SCHEMATIC1.net ****
* source SIMU2
R_R1 N00149 0 1k TC=0,0
V_V1 N00140 0
+SIN 0 1Vdc 500hz 0 0 0
R_R2 N001821 N00323 1G TC=0,0
V_V2 N001821 0 0.5Vdc
X_M1 N00140 N00149 N00323 MEMRISTOR
**** RESUMING mem.cir ****
.END
ERROR(ORPSIM-15141): Less than 2 connections at node X_M1.10.
ERROR(ORPSIM-15142): Node X_M1.10 is floating
Can you compress and upload your whole project, maybe I can check, it's much easier in the program?
You didn't uploaded the whole project, please upload again and make sure the *.obj and your model is included.
I took your design, made a symbol of your model and run simulation without errors.
**** EXPANSION OF SUBCIRCUIT X_U1 ****
X_U1.Etherm N000360 X_U1.3 X_U1.V X_U1.I Vsense
-----------------------------------------$
ERROR(ORPSIM-16152): Invalid number
.subckt TH 1 2 Params: T0=25, R0=1000, B=3892
Etherm 1 3 V = I(Vsense)*(R0)*EXP(B*((1/(V(TEMP)+273))-(1/(T0+273)))))
Vsense 3 2 DC 0
.ends
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?