LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Darin.K

Move (or at least copy) the Select function to the Boolean palette

Status: New

I find myself asking two questions fairly frequently.  (1) Why is the Select function on the Comparisons palette?  (2) Why isn't the Select function on the Boolean palette?

 

MoveSelect.png

 

Not only is the Boolean palette the proper location (IMO) for the conditional operation (not a comparison), but that palette appears in the right-click menu for items in both the Comparison palette as well as the Boolean palette.

20 Comments
JÞB
Knight of NI

I still think the stronger analogy is to Boolean to (0,1) where...?

 

Yes, it is in multiple locations.  As is string to byte array and it's inverse! as is bool array to/ from int! as are dynamic events and the event structure,  and the entire "Numeric" pallette. (I will chose not to mention how many palattes Express VIs show up on)

 

I do not mind the palette comitee!  Just get them to say "yes" more oftenSmiley Surprised  QD is not really effected!


"Should be" isn't "Is" -Jay
Darin.K
Trusted Enthusiast

The analogy to Boolean to (0,1) compared to the Case structure is in terms of functionality.  Personally, I think there is a necessary distinction between the Case Structure and the Select function, so I try not to equate or relate the two.  Boolean to (0,1) is the closest analogy to the proper use of Select, a simple choice between two scalar values which either require little or no calculation (ie. constants), or a choice between two scalar values which are calculated by necessity.  Otherwise you should be using a Case Structure or Swap.  I do not often use Select, that is why it bugs me since muscle memory is better utilized for more common functions. 

 

Of course the performance of Select could and should be improved (about a factor of 2 for large datatypes).  I figure there is no way I get very many votes to move Swap.

 

You are right, sometimes there is a good reason for multiple locations, like the Event structure which is there with and without the dynamic event termnal.  (trick question: how do you choose between those two when you use QD).

 

 

 

JÞB
Knight of NI

 (trick question: how do you choose between those two when you use QD).

Who drops just a Event Structure? Which, supplies a method for out -tricking the question.  You use vits!

Capture.PNG1!.PNG


"Should be" isn't "Is" -Jay
elset191
Active Participant

@Darin.K wrote:
(trick question: how do you choose between those two when you use QD)

Is there an answer to that?  Quick Drop doesn't know the difference between Wait (ms) and OpenG's Wait (ms)

--
Tim Elsey
Certified LabVIEW Architect
crossrulz
Knight of NI

It looks like quickdrop uses the short name and probably keeps the first one it found if there are duplicates.


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
JÞB
Knight of NI

@Darin.K wrote:
(trick question: how do you choose between those two when you use QD)

Is there an answer to that? Quick Drop doesn't know the difference...


 

Unless you give it a difference.  You don't QD a wait without a constant at the same time do you? The time it takes to create those VI Templates is time saved if you are QD-ing.  What good is an event structure without a loop?  Aleady Have a loop and want to add an event structure QD Event, But usually I build from the ground up.  An Event structure in a while loop with a Stop case is common enough that I QD the whole shooting match.  Want a Dynamic Event Flavor? Add it!

Capture.PNG

It helps to have a My Templates folder though:D

Capture1.PNG


"Should be" isn't "Is" -Jay
Darren
Proven Zealot

Now seems like a good time to point out the Ctrl-Shift-G shortcut that allows you to select a section of code and turn it into a single droppable item from Quick Drop.

JÞB
Knight of NI

Duly noted! I'll knew Ctrl+G.Smiley Surprised Shift will save me some time


"Should be" isn't "Is" -Jay
shb
Active Participant
Active Participant

There is the Swap Values function in the Memory Control palette which does someting similar as Select. (The same as two selects, but optimized.) It should be moved or copied to the same palette as Select.

Darin.K
Trusted Enthusiast

Quoting myself from above:

 

>I figure there is no way I get very many votes to move Swap.

 

At least one vote.  Smiley Happy