PSpice 9.1 Several Values for Components

Discussion in 'The Projects Forum' started by Analog_, Feb 7, 2013.

  1. Analog_

    Thread Starter New Member

    Oct 23, 2012
    17
    1
    Hi there!
    I'm currently developing an electronic project in PSpice, and by now all the sim's look right.
    But, in order because I have to simulate a huge quantity of values, I'm wondering if is there any possibility of representing a passive element with a value table instead of a single value.
    Actually, I have to start simulating a R and a Capacitor which values change with frecuency, in a range from 35kHz to 45kHz, so: Can I put somehow a table or a value list for each component, so I can get the whole simulation without changing values one by one each time?

    Hope you can help me.
    Regards,
    D.
     
  2. blah2222

    Well-Known Member

    May 3, 2010
    554
    33
    I'm not sure if you can vary two parameters simultaneously but you can definitely sweet a parameter while doing an AC sweep.

    Give the variable component a global variable name in curly braces "{}" and give it a nominal value. When setting up the simulation click on AC sweep and also click on Parametric sweep and choose the variable component with it's sweep range.

    I don't have a copy of PSpice on here but see if you can have two parametric variables.
     
  3. Analog_

    Thread Starter New Member

    Oct 23, 2012
    17
    1
    Thank you blah2222.
    Maybe you know how, but is it possible to create a "black-box" instead of the two parameters (R and C) and create the parametric sweep with its equivalent impedance (real and complex part) as the parameter that is changing the value?
    Regards,
    D.
     
  4. Analog_

    Thread Starter New Member

    Oct 23, 2012
    17
    1
    In other words, I want to simulate an impedance-block which values (Real from a Resistor and Complex from a Capacitor) change with the frecuency variation, but not always increasing in a linear way (as a normal Parametric behavior in PSPice). For example:

    @35kHz--> R=1800, C=3.4nF
    @36kH--> R=1850, C=3.3nF
    ...
    @40kHz; R=1700, C=3nF

    Hope its more understandable now...
    Regards,
    D.
     
  5. Analog_

    Thread Starter New Member

    Oct 23, 2012
    17
    1
    Wow, thank you!
     
  6. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    No need to be ungrateful. Most people here use LTSpice, so won't be able to help you. Not everyone has an answer to every question you ask. Roll with it and go ask on a Cadence forum!
     
  7. Analog_

    Thread Starter New Member

    Oct 23, 2012
    17
    1
    Ok, I've installed LTSpice.

    Any Ideas of how to do it there?
    I've seen the Capmeter element, which is described as "A vector Impedance Meter"
    But not sure it's what I'm looking for.

    Thank you!
     
    Last edited: Feb 22, 2013
  8. Analog_

    Thread Starter New Member

    Oct 23, 2012
    17
    1
    What the excuse now?
     
  9. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    Your delusion of entitlement.
     
  10. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    These articles seem to suggest what you want is possible:
    http://www.wseas.us/e-library/transactions/electronics/2008/27-1422.pdf

    http://www.seas.upenn.edu/~jan/spice/PSpice_ReferenceguideOrCAD.pdf

    http://newton.ex.ac.uk/teaching/CDHW/Electronics2/userguide/sec5.html

    To do that, though, you may need to get into the SPICE syntax and modify the circuit there. The components will each have a set of equations that are mapped into a vector element for each test point, so it may be possible to overwrite this vector after it has been written. I haven't heard of someone defining the vector before the simulation takes place, but that might be possible...
     
  11. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    We do this to help people out both to pick up tips and tricks, brush up in some areas, and MOSTLY because it's a good feeling to know you've helped somebody out.

    We are NOT simply engineers sitting here, providing solutions for free, and on "demand". That's too much like work.

    Thinking the world owes you, personally, something just because others have gotten help generally doesn't persuade people to assist.

    It's all about attitude. I'd suggest you join the orcad forums and ask there, if you don't get an answer, call their support line (there may be a fee).
     
    bance likes this.
  12. Analog_

    Thread Starter New Member

    Oct 23, 2012
    17
    1
    I dont really think it must be so that hard to simulate an element which impedance changes in frequency...

    Please if you don't have anything for helping me or further users, keep out the thread :)
     
  13. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    You must have missed the post where you asked what the problem was. That was the answer, quite relevant to the thread.

    You must also have missed the following post where I gave possible information as to how to accomplish what you want.

    Good luck in your endeavors.
     
Loading...