Maker Pro
Maker Pro

Frequency dependent current controlled voltage source in Pspice

Bala_01

May 30, 2016
6
Joined
May 30, 2016
Messages
6
Hi,
I need to create a frequency dependent current controlled voltage source in Pspice netlist. The netlist is the following:

************ Test ***************
.subckt Test01
+ 1 2
*
*
R1 1 11 5
H11 11 2 V1 {R_CM}
L1 1 12 5e-6
V1 12 2 0
*
**********************
***Where R_CM = 2*Frequency
**** Here Frequency is the simulation frequency
*** only needs to consider numerical value of frequency not unit
**********************
.ends

How can I define this R_CM in Pspice ?

Best regards,

Bala
 

Alec_t

Jul 7, 2015
3,212
Joined
Jul 7, 2015
Messages
3,212
Don't know about Pspice, but for LTspice you could put a directive on the schematic, e.g. for a frequency of 60Hz the directive would be .param R_CM = 2*60.
 

Bala_01

May 30, 2016
6
Joined
May 30, 2016
Messages
6
Hi Alec_t,
I know how to implement it in LTSpice. But I need a PSpice netlist model. Later I want to import this pspice model in CST DS and use it in my simulation. Thanks for your reply.
 

eetech00

Nov 17, 2014
95
Joined
Nov 17, 2014
Messages
95
you should be able to use the subckt as is with the following modification:
1. add a parameter statement, with a default value, right after the subckt statement:

.subckt Test01 PARAMS: R_CM="a default value w/o quotes"

Then place the part on the schematic and set the R_CM parameter on the part.
 

Bala_01

May 30, 2016
6
Joined
May 30, 2016
Messages
6
Hi eetech00,
Thanks for your reply. It will work if you run it in PSpice. But my aim is to use it in CST DS. There I can only import the spice netlist file. I can not write any pspice command in CST DS schematic. I have to write everything in pspice netlist. I do not know whether you have experience with CST.
 

eetech00

Nov 17, 2014
95
Joined
Nov 17, 2014
Messages
95
No...haven't use CST but am very familiar with spice code and netlist.
 
Top