Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

LDF Starter Kit problem

 (I had this in the Labview forum incorrectly so I have reposted here .) 

 

 

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 

0 Kudos
Message 1 of 2
(6,147 Views)

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

0 Kudos
Message 2 of 2
(6,143 Views)