06-16-2006 06:24 PM
06-16-2006 07:35 PM
06-16-2006 07:51 PM
I don't think this is a bug. The string functions that take a format specifier (Scan from String and Format Into String being the two most common) will automatically type the inputs/outputs if you wire a string constant. For anything else, you must define the type yourself. This is because LabVIEW doesn't try to traverse the path of the format specifier to its source. And even if it tried, it wouldn't be perfect. For instance, what if you used a Select function to choose between a string constant and a string control to wire into the format specifier input? Even though one of the possible sources is a string constant, the other one isn't, so LabVIEW has no way of knowing how to type the inputs/outputs. In the case mentioned in this thread, the user should just wire a Timestamp constant to the first "default value" input to explicitly define the type of the first output.
Would it be more helpful if the documentation for these functions indicated that LabVIEW will only assign type to inputs/outputs if a string constant is wired *directly* to the type specifier input?
-D
06-16-2006 08:03 PM
Wow, it's late Friday night! 😄