10-03-2008 08:56 AM
Hi All,
I am using the LDF starter kit to parse an LDF file using LV 7.1
I have encountered a problem with the vi "LDF Check Number.vi" as attached.
A string value of 9 causes the Case statement to return the default value even though the statement should accept 0-9 inclusive?
I know that the input is a string and so will only accept the string values "0" to "8", but should not the vi also include the "9" by changing the case statement to "0"-"9","9" ?.
This causes a problem for a 9th value for any signal in an LDF file as it uses the default instead of the value requested.
Thanks,
Mike
10-03-2008 04:42 PM
Hi
Yes, you are right in order to include the string 9 you would need to modify the selector as follows: "0".."9","9". Thats what the LabVIEW Help tells me. 😉
Good catch, I go ahead and modify the starter kit VI. Here is the correct version.
DirkW