LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Elias_Faraclas

Argument Not Input Flag and Value Property

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

This will help greatly with VIs that have a optional inputs.  For any VIs that are attacehd to the connector pane, a boolean property should indicate whether or not a value was passed externally.  This will facilitate a much more structured and visible set of default values and initialization.  As another option, there could be a "Value(nargin)" option that will set the value wired to it IFF there is no supplied input.

3 Comments
tst
Knight of NI Knight of NI
Knight of NI

See this (and read the comments) - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/New-property-of-Method-to-indicate-if-an-input-of-a-su...


___________________
Try to take over the world!
Elias_Faraclas
Member

Good find! That is pretty similar to what I had in mind.  However, I do not see how this request causes any issues with performance or the compiler.  If an input is passed into a control on the connector pane, there is some action taking place anyways to change the value from the control's default value to that passed in.  A simple boolean indicating whether or not this has taken place is sufficient and would avoid the whole issue of trying to select a NULL value to test against.  NULL values can have unintended consequences and make the code more difficult to understand, and implement, then needed.

 

 

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.