LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control references as subVI input

I have a subVI which accepts control references as input. But these are optional inputs. I have code in the subVI whcih uses the refernecs. I want this code to execute only if the control refernce inputs are wired from the main VI. Is there any way I can check whether the control refernce inputs were wired in the main VI? 
0 Kudos
Message 1 of 2
(2,471 Views)
You can use Not a Number\Path\Refnum from the Comparison palette or you can type cast the reference to a numeric and check if it is not equal to 0. There are probably some other ways.

___________________
Try to take over the world!
Message 2 of 2
(2,467 Views)