12-10-2009 02:49 PM
Solved! Go to Solution.
12-10-2009 02:54 PM
to test at runtime, you can set the default to some bogus value like 'nan' or -1 or empty string. If this is still the value in the subvi you can tell if the value is still the default value and most likely not wired. At edit time, scripting can accomplish this (not for the novice).
What are you trying to do? The answer might debend on this.
12-10-2009 02:58 PM
12-10-2009 02:58 PM
12-10-2009 03:00 PM
I would probably handle it with the first method, check to see if a valid input is recieved. You can also try making a polymorphic vi. This is not a runtime decision branch on the code logic, wiring is done at edit time.
12-10-2009 03:11 PM
This is very quick and very dirty, but just to give you an idea.
12-10-2009 03:18 PM
Nice a little cleaner than my solution subvi->terms->Wire->arraysize(terms[])>0
12-10-2009 03:19 PM
12-11-2009 04:08 AM
falkpl wrote:
would be nice if the terminal had an iswired? properity so you did not have to look wt the wires attached to the terminals.
You mean like this?
12-11-2009 07:25 AM
Where did you get these properties from. I do not see them in my version of LabVIEW?