T
Thurston Phoremost
Guest
Just a couple of questions about the SWCAD potentiometer demo that's
been posted here a few times.
This is the subckt file -
-----------------
* This is the potentiometer
* _____
* 1--|_____|--2
* |
* 3
*
..SUBCKT potentiometer 1 2 3
..param w=limit(wiper,1m,.999)
R0 1 3 {Rtot*(1-w)}
R1 3 2 {Rtot*(w)}
..ENDS
--------------------
Question 1.
I'm interested in line 8 -
..param w=limit(wiper,1m,.999)
I can't find this "limit" function documented in the help file, and I
would like to know if there are any other potentially useful functions
like this that aren't documented?
Question 2.
In the associated schematic file there is this line -
text 168 420 Left 0 !.STEP LIN PARAM p2 0 1.0 0.1
Before I ran this, I expected to see a stair-step waveform as the
potentiometer was turned up one tenth, left for a while, then turned
up another tenth, etc. Instead, what I see is a voltage which rises
linearly from 0 to 100 %. However many or however few steps you have,
it never displays the expected stair steps.
Am I doing something wrong? Or is there something different that I
have to do in order to simulate the effects of turning the
potentiometer up in increments?
Oh... did I happen to mention that I am a newbie at all this?
TIA.
been posted here a few times.
This is the subckt file -
-----------------
* This is the potentiometer
* _____
* 1--|_____|--2
* |
* 3
*
..SUBCKT potentiometer 1 2 3
..param w=limit(wiper,1m,.999)
R0 1 3 {Rtot*(1-w)}
R1 3 2 {Rtot*(w)}
..ENDS
--------------------
Question 1.
I'm interested in line 8 -
..param w=limit(wiper,1m,.999)
I can't find this "limit" function documented in the help file, and I
would like to know if there are any other potentially useful functions
like this that aren't documented?
Question 2.
In the associated schematic file there is this line -
text 168 420 Left 0 !.STEP LIN PARAM p2 0 1.0 0.1
Before I ran this, I expected to see a stair-step waveform as the
potentiometer was turned up one tenth, left for a while, then turned
up another tenth, etc. Instead, what I see is a voltage which rises
linearly from 0 to 100 %. However many or however few steps you have,
it never displays the expected stair steps.
Am I doing something wrong? Or is there something different that I
have to do in order to simulate the effects of turning the
potentiometer up in increments?
Oh... did I happen to mention that I am a newbie at all this?
TIA.