From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Already implemented in LabVIEW. Available in LabVIEW 2010.
I feel that it would be very handy to be able to define your own math constants, and mask them similar to the ones already in labview, much the same way one is allowed to design the icon for vis.
In my specific case, I do a lot of heat transfer and flow modeling, making pi/4 a much needed constant (pi/4*Diameter^2). It is clunky to have that simple division all over my vi's and masking as a subvi seems over kill.
This seems like a prime candidate for subVI inlining. New in 2010 in the Execution options of VI Properties. That way you get the mask you want and don't have the overhead of the subVI call.
I am not sure I understand the "Completed" status. Do you mean that it is available via "inlining"? But then the "constant" is actually recalculated each time the subVi is executed, isn't it? Also, it would be nice to be able to drag and drop that "subVI" into the Numeric Constant Palette to really implement what I understand this idea is all about...
@ X-) - Because of constant folding, the constant is actually only calculated at compile time. With inlining, you also lose the subVI overhead. Combined, these two features allow the custom constant. You'll have to muck around with the pallettes if you want the "constants" in them.
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