1
\$\begingroup\$

enter image description here

I want to make capacitor value C1=C2=C3 and change it at once.

I know the .STEP PARAM command, but it needs at least two values.

I want to set all values equal, and change it simultaneously.

Like this. If I do set C=10u, All the capacitor's size is set to 10u. Is there any command or method to realize this?

\$\endgroup\$

2 Answers 2

4
\$\begingroup\$

Use the .param command

.param C 10u
\$\endgroup\$
1
  • 1
    \$\begingroup\$ OP, just to be clear: .param sets the value of the parameters (the ones you have enclosed in the curly braces), while .step steps between some values for a parameter. The .step comand doesn't need to have a .param defined elsewhere, that's why it works to have it as standlone. But any value that uses parameters enclosed in curly braces needs to have that parameter defined somewhere. If there is no .step command then a .param must be used. \$\endgroup\$ Commented Jun 8, 2021 at 22:33
0
\$\begingroup\$

While on the subject of changing parameters, it might be worth mentioning this method described in the question:

How to use .step param with more than two parameters in LTSpiceIV

Basically, the .step directive is used with an index variable and the table() function is used to lookup parameter values based on the index. The example from the above question:

.step param Rx list 1 2 3
.param R1 table(Rx,1,1k,2,1Meg,3,1k)
.param R2 table(Rx,1,10k,2,1Meg,3,10Meg)

This is useful if two or more parameters are not equationally related to each other.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.