3
\$\begingroup\$

enter image description here

I saw the ability to control R by time in someone's drawing, tried it, and it worked fine. Then, I thought that I could use that "time" keyword also to control the voltage of a DC source. However it didn't work. It gives an error:

Error on line 2 : vcc n001 0 time*2 Unknown parameter "time*2" Vcc: Missing value, assumed 0V @ DC .OP point found by inspection.

So, is there an easy way, as easy as it is with the resistor value, to do what I want?

\$\endgroup\$
  • \$\begingroup\$ If in doubt, try to wrap your expression with {}. So you may write {time*2} and see how that works. \$\endgroup\$ – jonk Dec 1 '19 at 20:38
  • \$\begingroup\$ @jonk nope, didn't work \$\endgroup\$ – muyustan Dec 1 '19 at 20:50
4
\$\begingroup\$

The problem is you try to make an alterating voltage source with a DC source.
Use Arbitrary behavioral voltage source (BV) instead. You don't need curly braces for that, just V=time*10m

\$\endgroup\$
  • \$\begingroup\$ I can't find an "arbitrary behavioral voltage source" \$\endgroup\$ – muyustan Dec 1 '19 at 20:52
  • 3
    \$\begingroup\$ @muyustan look for bv \$\endgroup\$ – Huisman Dec 1 '19 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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