LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
BrianPP

Reversed select switch

Status: Already Implemented
Already possible with the "Swap Values" function

It would often be useful to have a Boolean function that worked like a reversed Select. That is, instead of two inputs and one output, it would have one input and two outputs, but still switched by a Boolean input. Of course you can do this with a Case structure but it takes up more space and it is unwieldy. A Select is much neater and clearer to interpret.

The new Reversed Select should be on the Boolean palette, not the Comparison palette.

6 Comments
crossrulz
Knight of NI

One input for two outputs?  What would the other output be?

 

It sounds like this could be done with the Swap Values.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
AristosQueue (NI)
NI Employee (retired)

BrianPP: I'm afraid I'm going to need a picture. Your text description doesn't explain to me what this node would do.

altenbach
Knight of NI

 

Please show us the equivalent code using a case structure (that you mentioned!) so we get a better idea what this is all about. 😉

BrianPP
Member

You are right Crossrulz. It can be done with Swap Values. Two values are clearly needed for the outputs. I hereby withdraw my idea.

altenbach
Knight of NI

But "swap values" has two data inputs (plus a selector input). You said you wanted one input. can you see our confusion?

 

Is this like LabVIEW Zen? (similar to the sound of one hand clapping :D)

Darren
Proven Zealot
Status changed to: Already Implemented
Already possible with the "Swap Values" function