circuitjs1 icon indicating copy to clipboard operation
circuitjs1 copied to clipboard

Feature request: Being able to group switches

Open K0rrid0r opened this issue 2 years ago • 8 comments

I'm trying to recall if I have seen this before or not in falstad. I do have a vague memory of seeing that it was possible to have switches grouped so when one closes (or opens) all the other switches linked to that group are also affected.

This is true for bigger switches in the real world, here is an example from my job.

image

and here it is in the schematic:

image

So yeah, it would be cool if this was also possible in falstad like in this example:

image

Close the top switch and the lower one follows. This could be done in the edit window by applying a group name to a bunch of switches i guess.

/F

K0rrid0r avatar Jan 11 '23 19:01 K0rrid0r

This is possible for SPDT switches but not SPST switches.

pfalstad avatar Jan 11 '23 19:01 pfalstad

How is that possible for SPDT switches? As i understand it i can only switch an SPDT with applying power to the trigger.

Alright well maybe there could be an addition of a DPST switch, but as you see in the example there are physical switches that switch much more by physically moving a main switch (this you know of course)

image

I think grouping was a much easier solution.

K0rrid0r avatar Jan 11 '23 19:01 K0rrid0r

maybe you mean something like this

image

EDIT: yeah i guess in the context of falstad this works fine as a hacky solution hehe

K0rrid0r avatar Jan 11 '23 20:01 K0rrid0r

Yes.

So a two SPDT linked switches would be a DPDT switch.

pfalstad avatar Jan 11 '23 20:01 pfalstad

Yeah

I saw it the other day in a schematic like this, that's a physical on off switch for a power supply

image

But just like in the relay component window it could also be possible to add more switches to that switch configuration and then i guess it dosen't really have name except a big multilinked switch.

K0rrid0r avatar Jan 11 '23 20:01 K0rrid0r

Commenting here again, i think falstad really needs a way to group switches or at least have these three available.

image

(SPST already there of course)

The DPST have many real world usages, also in simulation id say, im just making a simulation right now where the only solution to a problem is a DPST.

K0rrid0r avatar Feb 22 '23 17:02 K0rrid0r

An DPDT is a solution.

I was looking again at the "hacky solution" picture you posted above and I'm not sure we're talking about the same thing. Are those relays? I was talking about linked SPDT switches.

You can create several SPDT switches and right click each one, edit, and change the "Switch Group" to a shared value. Sorry if I wasn't clear about that.

https://tinyurl.com/2m37kpe7

DPDT switches can be used as DPST. Just ignore the extra terminals.

pfalstad avatar Feb 22 '23 17:02 pfalstad

Ahhhh there it was, i had been looking for that function for ages, remember seeing it in some other simulation long ago. Thanks. Consider adding this "Switch Group" window to the SPST also. ( just for correctness ;) )

And also that hacky solution was completely wrong since that was cmos analog switches.

Thanks!

K0rrid0r avatar Feb 22 '23 19:02 K0rrid0r