Pspice simulation in orcad 16 version for designing various components

Status
Not open for further replies.

indiraji

Newbie level 6
Joined
May 19, 2014
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
83
i have written the pspice model for designing thermistor and attached to the component designed. after this when i try to use the part in the circuit and simulate it i get error like

SUBCKT NTC used by u1_x is undefined .

pls help me in resolving it..
 

Post your model file please and your netlist of your design.
 

This is my pspice model for thermistor:
Code:
.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


MY NETLIST GENERATED
 
Last edited by a moderator:

As you created your symbol, did you used the word "NTC" somewhere? Or just rename "THERMISTOR" into "NTC".
 

As you created your symbol, did you used the word "NTC" somewhere? Or just rename "THERMISTOR" into "NTC".


As i am new to orcad pspice ...pls explain me your statement. and did u check my pspice model ...? is that enough for a thermistor?
 

Code:
.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

->

Code:
.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
 

ya altered it when i again simulated i got error like this


**** INCLUDING SCHEMATIC1.net ****
* source SIMULATION1
R_R1 0 N00322 1k TC=0,0
I_I1 N00313 0 DC 1Adc
X_T1 N00313 N00322 THERMISTOR PARAMS: T0=25, R0=1000, B=3892

**** RESUMING simulate.cir ****
.END


**** EXPANSION OF SUBCIRCUIT X_T1 ****
X_T1.Btherm N00313 X_T1.3 X_T1.V X_T1.I Vsense
----------------------------------------$
ERROR(ORPSIM-16147): Invalid parameter
what is the error here... i suppose the error is in my pspice model... pls help me
 

Code:
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.
 



k i agree.. i tried simulating memristor pspice model

Code:
.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

i get the same error as before

Code:
**** 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


Please do someone help me in writting pspice model for thermistor...pls
 

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.
 



ya after importing the subcircuits correctly for memristor . Now am getg this error

Code:
**** 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


i guess somethng goes wrong in my circuit ...pls explain me wr should i correct n wat .
 

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.
 

I took your design, made a symbol of your model and run simulation without errors.

then y am nt able to do . i am using orcad 16.6 version (student version). can u pls help me out in this... r u getg dc sweep graph...?

- - - Updated - - -

Code:
**** EXPANSION OF SUBCIRCUIT X_U1 ****
X_U1.Etherm N000360 X_U1.3 X_U1.V X_U1.I Vsense
-----------------------------------------$
ERROR(ORPSIM-16152): Invalid number

now am getg this error .

and my subckt used is

Code:
.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


pls do help me ....
 

Upload please again this project, you showed in your last post, because the previous uploaded project looks different.
 

you told u have simulated my project which was previously posted with out any error rite.. for thermistor...that ly i am tryg with different codes... so u just tell me where am i gng wrong...n in what kind of circuit u implemented the component? can u upload ur circuit file? pls giv me some links to learn how to write pspice module for each components .
Thank you
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…