Maker Pro
Maker Pro

Frequency dependent current controlled voltage source in Pspice

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
 
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.
 
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.
 
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.
 
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.
 
Top