• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Time varying function on LTspice

Firenze02

New Member
Hi,

I would like to create a variable resistor as shown in the attached pictures.
How can I create a variable resistor depending on the value of current?

I saw the following tutorial, but I don't know hot to replicate my function (where some parameters change during the time but not varyin current).

Is it possible in LTspice?

Immagine.png


Thank you.
 

Firenze02

New Member
Thank you.

I would have a further question.

How can I change alfa1, alfa2, alfa3 depending on the value of i(r1)?
 

alec_t

Well-Known Member
Most Helpful Member
My edit to post #2 didn't upload.
Here's an example for varying resistance on the fly, as a function of current. The expression for R would need to be much more complex (more 'if' clauses) to handle the various alapha values :
NonlinearR.PNG
 

Latest threads

EE World Online Articles

Loading

 
Top