12-19-2018 01:25 PM
More Kudos to altenbach. Using your old 3waySwitchSingle as inspiration I submit the SPDTVerticalToggleSwitch for comment/modifications. I think it accurately mimics the action of an electronic SPDT switch. The mechanical action of either switch can be changed to give momentary action on either side, or both.
12-19-2018 01:44 PM
Now, if there are any artists out there (as I certainly am not), I could use this converted to an horizontal SPDT at about twice the size. Just to be picky, and as an added challenge, the base of the toggle should be slightly tapered.
Thanks for any and all replies. You guys rock!
12-19-2018 01:49 PM
@rkesmodel wrote:
The mechanical action of either switch can be changed to give momentary action on either side, or both.
I thinks will give you the same effect, even when changing to "switch until released". Try it.
(there could also be a use case to be able to immediately switch from up to down (or vice versa), but that might need more logic).
(The absence of value properties now also allow latch actions, but make sure to keep both enabled at all times in that case)
12-19-2018 01:55 PM
@altenbach wrote:
@rkesmodel wrote:
The mechanical action of either switch can be changed to give momentary action on either side, or both.
I thinks will give you the same effect, even when changing to "switch until released". Try it.
(there could also be a use case to be able to immediately switch from up to down (or vice versa), but that might need more logic).
(The absence of value properties now also allow latch actions, but make sure to keep both enabled at all times in that case)
Thanks. I'll check that out tomorrow (about to leave for the day). No need for immediate switch from top to bottom if mimicking a true SPDT as that is impossible.
12-19-2018 02:16 PM
Another option might be to use a radiobutton control as follows (make sure to "allow no selection").
12-20-2018 09:50 AM
@altenbach wrote:
Another option might be to use a radiobutton control as follows (make sure to "allow no selection").
Thanks. That works, too. I'm copying it into my 'Switches' folder. However, it takes away the ability to change the Mechanical Action.
12-20-2018 09:53 AM
@rkesmodel wrote:
@altenbach wrote:
@rkesmodel wrote:
The mechanical action of either switch can be changed to give momentary action on either side, or both.
I thinks will give you the same effect, even when changing to "switch until released". Try it.
(there could also be a use case to be able to immediately switch from up to down (or vice versa), but that might need more logic).
(The absence of value properties now also allow latch actions, but make sure to keep both enabled at all times in that case)
Thanks. I'll check that out tomorrow (about to leave for the day). No need for immediate switch from top to bottom if mimicking a true SPDT as that is impossible.
You are correct, and your version is cleaner. Thanks. Here is the better version, if any are interested. I am a little disappointed that no one took me up on creating the horizontal version. I will see what I can come up with.
12-20-2018 11:16 AM - edited 12-20-2018 11:21 AM
@rkesmodel wrote:
Here is the better version, if any are interested. I am a little disappointed that no one took me up on creating the horizontal version. I will see what I can come up with.
One more thing. Note that if you would change any of the LEDs to TRUE at edit time and run the VI, they will remain lit until the 3way switch is operated at least once. To fix that, got to VI properties...execution and enable "clear indicator when called". Now they reset whenever you run the VI without the need of any additional code.
12-20-2018 11:18 AM
@altenbach wrote:
@rkesmodel wrote:
Here is the better version, if any are interested. I am a little disappointed that no one took me up on creating the horizontal version. I will see what I can come up with.
One more thing. Note that if you would change any of the LEDs to TRUE at edit time and run the VI, they will remain lit until the 3way switch is operated at least once. To fix that, got to VI properties...execution and enable "clear indicator when called". Now that reset whenever you run the VI without the need of any additional code.
Cool. Thanks.
01-09-2019 08:38 PM
altenbach,
I hope you are out there. I need help. I have completed the art work (except for the background) and tried to combine the controls the way you did, without success. The controls work fine, as long as you don't run the vi. What is wrong?
Thanks.