Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

variable resistor in LTspice?

Status
Not open for further replies.

fanshuo

Full Member level 5
Joined
Jun 21, 2007
Messages
266
Helped
8
Reputation
16
Reaction score
4
Trophy points
1,298
Location
Netherlands
Activity points
2,746
ltspice variable resistor

how to create a variable resistor whose resistance could be changed in an arbitrary way, say sine wave, square wave and etc.


Thanks.
 

variable resistor ltspice

fanshuo said:
how to create a variable resistor whose resistance could be changed in an arbitrary way, say sine wave, square wave and etc.

Here's an example. Let's say you want a resistor to vary its resistance sinusoidally between 500 ohms and 1500 ohms at a frequency of 1 Hz. All you do is add a resistor to the schematic as you would do normally but instead of specifying the resistor with a fixed value use this function instead:

R=1000+500*SIN(2*PI*TIME)

Look for .PARAM in the help topics for more functions you could try.

David
 

variable resistor in ltspice

I tried
.param RN=10+sin(400k*pi*time)
and I defined the value of the R1 is RN
the simulation shows warning that
"can't solve .param RN=10+sin(400k*pi*time)"


also I tried to set the resistor value directly as
sin(400k*pi*time)
then it react as"can not find the definition of model sin"


what should I do?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top