LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Dave_Thomson

Boolean to (1,0) of selectable type

This is pretty trivial and not going to revolutionize LabVIEW, but how about a right-click option on the "Boolean to (1,0)" function that allows you to select the type of the output?  It just cleans up the diagram in a case like below by avoiding the coerce function.

 

DaveT

-------------------------------------------------------------
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
Certified Embedded Systems Developer
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary, and those who don't.
7 Comments
Intaris
Proven Zealot

Pet peeve of mine..... While I agree with the sentiment behind the idea, more hidden information makes my frown.

 

We really need easier ways to visualise such "hidden" configuration data.  On a PC it doesn't matter so much but RT or FPGA is a different beast.

crossrulz
Knight of NI

Especially since the default type for integers is I32.  That function outputs an I16.  Even then, I often want U8.


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
tst
Knight of NI Knight of NI
Knight of NI

This has already been suggested - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Change-Output-Representation-on-quot-Boolean-to-0-1-qu...

 

I haven't checked specifically to verify that this function doesn't have such an option in the properties dialog, but I assume it doesn't. Incidentally, for those functions that do have such an option it is actually visualized - it appears as a blue coercion dot on the output and this could also apply here.


___________________
Try to take over the world!
Dave_Thomson
Active Participant

Good point about hiding data.  Might it be possible to add a type glyph to the icon without making the icon too much bigger?

-------------------------------------------------------------
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
Certified Embedded Systems Developer
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary, and those who don't.
Darin.K
Trusted Enthusiast
Darren
Proven Zealot
Dave_Thomson
Active Participant

Thanks, Darren.  I did a search, but somehow missed both of those ideas.  I think I prefer your idea as well - just allow the numeric conversions to take the Boolean directly.


DaveT

-------------------------------------------------------------
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
Certified Embedded Systems Developer
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary, and those who don't.