LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

three position toggle switch

Normally in LabVIEW the Binary ( two position ) switches are available. But i need three position switch. like center, up and Down. Depending on the position i should get output. If anybody made custom made switches pls share it.
0 Kudos
Message 1 of 12
(6,681 Views)
Hello Bose,

you may try a vertical pointer slide, set to integer representation. At least it appears similar to a switch...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 12
(6,665 Views)

@Bose wrote:
... i need three position switch. ... If anybody made custom made switches pls share it.


Bose,
The slider (or dial) with representation set to integer works for many and example attached.
If you want something that looks like a real 3-way vertical switch, the best is Ed Dicken's package available on the OpenG site here. I think (and stand to be corrected) the package uses some subVIs from the OpenG package, so you may need to download it as well.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 3 of 12
(6,659 Views)
Hi Bose,

I personally would choose a "Vertical Slide" from the "Classic Controls >> Classic Numeric" palette, to represent a multi-choice switch. Another great option is using the "Dialog Controls >> Dialog Vertical Slide" (see attached VI). It looks great on Windows XP (modern look), but be aware that its look is OS dependant, so it might not be desirable on your OS.

Have fun!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 4 of 12
(6,616 Views)
Hi all,

count me in!  I just posted the following on another thread after searching "three-way switch" and not getting any hits....

Hi everyone,

I would like to build a three way digital switch, a rocker that is true when up false when down, but comes back to a neutral position.  Imagine a trim switch on a motor boat.  Logically, I can do this with two push buttons that switch until latched, but on the front panel this would result in two buttons.  I would prefer one button.  I notice however that the factuory LabVIEW rockers have only two positions.  Is there a way to modify these rockers into a sleek, three position switch on the front panel?  I can easily enough wire the block diagram...

Thanks,
Brad

As you can see by the description, it is not quite suited by the three-integer slide switch.  I am currently wiring the two push button option, and I will try to customize that into a single control.  I'll check back later to see if anyone has found a better solution before I get my wiring done.


0 Kudos
Message 5 of 12
(6,480 Views)
Here's what I'm working on.  It is clunky and maybe (certainly) someone can clean this up.  I will get back to it and try to make a custom control, although I haven't done this before and it may take a good while.  the four boolean outputs represent a power supply to two pins and a ground to the same  two pins.  Power can't be hooked to power and ground can't be hooked to ground, so this prevents those possibilities.  One push button switch creates a circuit across the two pins in one direction, the other creates a circuit in the opposite direction. 
0 Kudos
Message 6 of 12
(6,467 Views)

Brad,

I think you could easily implement what you are looking for by using a picture ring control containing pictures of the up, center, and down switch positions. An example of this has actually already been implemented and posted on this thread. It uses the classic control version of a switch, but you could easily apply the same concept to the modern version.

Kind Regards,

E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 7 of 12
(6,440 Views)
0 Kudos
Message 8 of 12
(6,417 Views)
Perfect!  Just what I had in mind.  Thanks for the link.....

Brad
0 Kudos
Message 9 of 12
(6,403 Views)

here is a momentary 3-way toggle

0 Kudos
Message 10 of 12
(5,321 Views)