02-06-2007 04:18 AM
02-06-2007 04:21 AM
@C. Dietz, www.digades.com wrote:
Hi,
for case programming in SubVI I want to know, if a Ctl element of SubVI wired in the called VI.
Is this information available in SubVI and how can I get it programmately?
Thak you in advance
C. Dietz
No this information is not available (or maybe it is but not in a way that is publically available). The way I solve this usually is to set the default value to something that makes not much sense (path=empty path, floating point=NaN, integer indices=-1) for that parameter and check for that.
Beats the use of undocumented methods that can and often do change in between LabVIEW versions by miles.
Rolf Kalbermatter
02-16-2010 03:48 PM
02-16-2010
03:55 PM
- last edited on
03-16-2026
04:32 PM
by
Content Cleaner
Well, since you're writing the VI shouldn't you already know what the default value is? For paths and refnums it's easier to not set the default values and simply use the Not a Number/Path/Refnum function to determine if you have a valid path or refnum.