How do you run a simulation with a push-button? https://www.circuitlab.com/circuit/kt3257qd37jw/toggle-switch/ |
by bit2man
June 16, 2017 |
One of many possible ways is to use a voltage-controlled switch. Then, have it be controlled by a piecewise-step signal (PWS for short) that turns on and off at the appropriate times. Here's one with that looks closed at t=1 and open again at t=2: Click it and run the simulation. See what V(control) and V(output) look like. See Expressions in the CircuitLab documentation for more info about PWS and related expressions. |
+1 vote by mrobbins June 17, 2017 |
Thanks Mike - I'm still struggling with the interface. I really didn't think I had to think about cos/sin to test-drive a circuit :) Thanks for pointing out the error of my ways. |
by bit2man
June 25, 2017 |
No cosine and sines necessary -- those are just other expressions that are also available! :) PWS is pretty simple. It just says to be a some voltage at some time, and then jump to another value at/after a different time. |
by mrobbins
June 25, 2017 |
You must log in or create an account (free!) to answer a question.
Anyone can ask a question.
Did you already search (see above) to see if a similar question has already been answered? If you can't find the answer, you may ask a question.
CircuitLab's Q&A site is a FREE questions and answers forum for electronics and electrical engineering students, hobbyists, and professionals.
We encourage you to use our built-in schematic & simulation software to add more detail to your questions and answers.
Acceptable Questions:
Unacceptable Questions:
Please respect that there are both seasoned experts and total newbies here: please be nice, be constructive, and be specific!
CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.