LabVIEW Idea Exchange

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

PlusAndMinus function

Status: New

Having a native polymorphic PlusAndMinus function would clean up so many of my diagrams.  Anything where you are programmatically resizing and centering front panel objects or objects in the picture control toolkit would benefit the most, but there are plenty of other uses.

 PlusAndMinus.png

5 Comments
SimonH
NI Employee (retired)

jdunham,

 

I agree such a VI would be nice but does it need to be a primitive?  This would be trivial to implement as a subVI and not too difficult to make as a polymorphic subVI.

 

The two motivations that come to mind are either performance or just having it in vi.lib so you don't have to distribute a subVI.  Neither of which would make that much impact (IMO).

 

Am I missing something?

 

~Simon 

jdunham
Member
I have probably used this data type with at least twenty different inputs including all sorts of 2D and 3D point clusters as I32, I16, SGL,and DBL, arrays, and scalars.  And that's just on the top side, you should be able to add a scalar to one of those clusters, or two clusters together, or two arrays, or a scalar to an array.  It's really not worth it to make subvis for each of those; at that point, using a separate plus and minus is easier.  But a native polymorphic function would be easy to add (for NI) and would remove a lot of clutter.
SimonH
NI Employee (retired)
Good point.  Thanks for the clarification.
muks
Proven Zealot
Nice one!!!
Manzolli
Active Participant

Liked the idea, just like the handy "Quotient & Remainder", "Max & Min" or "In Range and Coerce". All easy to code, but it's nice to have then ready to use.

 

I only would like a diferente representation of the inputs, maybe a empty triangle.

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil