I was having a problem with one of my circuits in CircuitLab, and traced it down to my sources always enabled, even if I switch them off by connecting to an open switch. This seems to be so simple, but I can't figure out it.
Here is a simplified circuit showing the behavior. I have a 5 V voltage source V1 on the left, disconnected from ground because switch SW1 is open. I have a second 5 V voltage source V2 on the right, connected to ground because switch SW2 is closed.
When doing a DC simulation, I would expect node "off" to be 0 V, and node "on" to be 5 V. But they are both 5 V as shown in the simulation window. Why?