LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

determining if connected on a VI input

Is there a way to determine if a VI (that I am creating) is connected on a particular input? I'm making a call to a DLL through a call library function node within this VI, and I want my code to take a specific action if that particular input of the VI is not connected. I've thought of setting the default value for that input to some arbitrarily large value and checking for that value within the DLL, but was wondering if labview provides a more elegant solution.
0 Kudos
Message 1 of 2
(2,670 Views)
I don't think there's anyway to check if an input is connected, however, you can force and input to be wired (with terminals shown, right click on the input and select Make this terminal >> Required). Otherwise, your method would seem to work. If the input is a float try using NaN or Inf as the default - that's a pretty unlikely input(???).

How does the DLL behave differently if nothing is connected? Would a boolean do?

Tim
0 Kudos
Message 2 of 2
(2,670 Views)