09-25-2014 03:47 PM
Replacing the "Negate" primitive:
by a Compound Arithmetic gives this:
whereas I would prefer this:
09-25-2014 04:38 PM
Why would you need that? If you are replacing one function with another, it is because you want to do something different. If it is just to get a functionally equivalent piece of code, there is no reason to ever to the replacement to begin with.
09-25-2014 04:38 PM
@X. wrote:
Replacing the "Negate" primitive...
Makes sense to me. I filed CAR 495471 on this. Should be fixed in LabVIEW 2015.
09-25-2014 04:40 PM
@RavensFan wrote:
Why would you need that?
One use case off the top of my head...you want to add something to a negated value, but don't want to add another function taking up space on your diagram. Quick Drop Replace the Negate with a Compound Arithmetic, then grow it down and wire the thing you want to add.
10-12-2014 06:59 PM
Maybe a new one for your consideration.
I have (re)discovered that a Boolean can be connected to a Format to String node when the expected input is a string, resulting in a "TRUE" or "FALSE" string.
Therefore, whenever I have a chance, I clean up old code of the form:
The problem is, when I CSCR the Select node, I get this:
whereas I obviously want that:
10-12-2014 07:19 PM
Obviously you want the second thing? That makes no sense.
You go from wiring a string into a Format into String, where the format string itself is looking for a %s. And you think the replacement should suddenly be a boolean going in?
10-12-2014 07:23 PM
I am not saying it is natural. Just that this is what I was hoping for.
10-12-2014 07:51 PM
If it isn't natural, it's not exactly fair to call it obvious.
10-13-2014 02:17 AM
It'd be hard to set up rules for that function. As it works, it'll match the current string input of the Format to the left objects, matching a string constant. Prioritizing controls and also considering dynamic input possibilities sound very advanced.
In this case it'd be easier to just delete the Select and wire Condition instead of using the Quick Remove.
/Y
10-13-2014 10:48 AM
QD cleans up the constants for you.
I ended up deleting the node and manually removing the constants.