Connect with us

Frequency dependent current controlled voltage source in Pspice

Discussion in 'General Electronics Discussion' started by Bala_01, May 31, 2016.

  1. Bala_01

    Bala_01

    6
    0
    May 30, 2016
    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
     
  2. Alec_t

    Alec_t

    2,691
    712
    Jul 7, 2015
    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 likes this.
  3. Bala_01

    Bala_01

    6
    0
    May 30, 2016
    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.
     
  4. CDRIVE

    CDRIVE Hauling 10' pipe on a Trek Shift3

    4,960
    648
    May 8, 2012
  5. eetech00

    eetech00

    95
    8
    Nov 17, 2014
    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.
     
  6. Bala_01

    Bala_01

    6
    0
    May 30, 2016
    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.
     
  7. eetech00

    eetech00

    95
    8
    Nov 17, 2014
    No...haven't use CST but am very familiar with spice code and netlist.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-