1
\$\begingroup\$

I am using LTSpice for a Monte-Carlo simulation, I typically use the function {mc(x,y)} for componant variability

I also want to introduce spread in the feedback pin voltage of a DCDC converter by adding a series voltage source:

enter image description here

This obviously does not work as it is multiplying zero with a tolerance.

How would you induce a uniform distribution around zero?

\$\endgroup\$
3
  • 2
    \$\begingroup\$ Not sure how you could get much more elegant than two extra characters. You might want to be DRY and replace the 1's with a parameter! \$\endgroup\$
    – Neil_UK
    Commented Jul 4 at 16:25
  • 1
    \$\begingroup\$ Agreed. Your solution is very elegant. I would edit the solution out and post it as the answer. It’s a worthwhile question to have an accepted answer for. \$\endgroup\$
    – Ste Kulov
    Commented Jul 5 at 20:31
  • 1
    \$\begingroup\$ Ok, I will, thanks! \$\endgroup\$ Commented Jul 6 at 22:37

1 Answer 1

1
\$\begingroup\$

enter image description here

This works, the tolerance is directly in Volts (flat distribution of +/- 10 mV in that case)

(For the copy-paste: {mc(1,tol)-1} 😉)

\$\endgroup\$

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