LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Momentary On-Off-On Front Panel Toggle

Has anyone created an FP On-Off-On momentary toggle switch (preferably horizontal)?   I am testing a piece of equipment and need to indicate this action on the FP. 

0 Kudos
Message 1 of 10
(4,023 Views)

Just change the Mechanical Action of any switch to one of the latching types

0 Kudos
Message 2 of 10
(4,002 Views)

I think the question is more complicated than this.  It sounds like a 3 position switch, where you can click on the right or left, but then it snaps back to a center off position.  This might require special graphics and programming to implement.  Probably an enum rather than a boolean since it has 3 states (left on, right on, center off) rather than the normal 2 for a boolean (on or off, true or false.)

 

You'll probably need an event structure to handle it.

0 Kudos
Message 3 of 10
(3,988 Views)

@RavensFan wrote:

I think the question is more complicated than this.  It sounds like a 3 position switch, where you can click on the right or left, but then it snaps back to a center off position.  This might require special graphics and programming to implement.  Probably an enum rather than a boolean since it has 3 states (left on, right on, center off) rather than the normal 2 for a boolean (on or off, true or false.)

 

You'll probably need an event structure to handle it.


You're right.  I think I misread the question.

 

Try this thread

0 Kudos
Message 4 of 10
(3,986 Views)

@Mancho00 wrote:

Just change the Mechanical Action of any switch to one of the latching types


Thanks for the reply, I guess I wasn't specific.  I know how to make a momentary switch. What I need is a three position toggle.  Right-On right, middle Off, left-On left.  The equivalent of an SPDT (Single-Pole, Double-Throw) switch in electronics.  Where the right and left positions are momentary.  That is the 'big' challenge.  I would be satisfied at this point if I had a three-position toggle indicator with the same action.  I have two BOOLEAN controls: right-on/off and left on/off that I need to have control a single three-position toggle indicator.

0 Kudos
Message 5 of 10
(3,981 Views)

That link Manchoo posted is excellent.

It is a combination of two switches, and they are grouped together to keep them attached.

 

All you need to do is change the mechanical action on the lower one.  And change the pictures on both so they reflect a horizontal switch.

 

Oh, and change the output logic.  This one ORs the two results to be a single Boolean.

0 Kudos
Message 6 of 10
(3,966 Views)

How would you activate a three position toggle?  IRL, you push it to the left or to the right and it snaps back.  However in software, that's not really feasible to do unless you CTRL+click to go left and CLICK to go right (or some other modifier). 

aputman
0 Kudos
Message 7 of 10
(3,965 Views)

@aputman wrote:

How would you activate a three position toggle?  IRL, you push it to the left or to the right and it snaps back.  However in software, that's not really feasible to do unless you CTRL+click to go left and CLICK to go right (or some other modifier). 


You click right side to go right.  Click left side to go left.  With the autosnap back, you the return to center is automatic.

0 Kudos
Message 8 of 10
(3,962 Views)

Yeah I just saw the link.  That's quite genius.  Very nice, Altenbach. 

aputman
0 Kudos
Message 9 of 10
(3,959 Views)

 I would be satisfied at this point if I had a three-position toggle indicator with the same action.  I have two BOOLEAN controls: right-on/off and left on/off that I need to have control a single three-position toggle indicator.


If you just need an indicator, use a Picture Ring with a few carefully chosen images:

 

ringcontrol.png

0 Kudos
Message 10 of 10
(3,926 Views)