LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced CAN Frame to Channel Conversion: Error with LV 8.5.1

Hello!
 
I´ve tried to read in a DBC-file with the "Advanced CAN Frame to Channel Conversion Example" on a LabVIEW 8.5.0 system and it works fine.
On a LabVIEW 8.5.1 System I get the error:
 
Scan From String (arg 6) in CAN FtoC Parse Channels and Mode.vi->CAN FtoC Parse CANdb Messages and Channels.vi->CAN Channel Data Import.vi
 
Does anybody know a solution for this error?
 
Thank you for your help,
demo66
regards,
demo66
0 Kudos
Message 1 of 2
(2,613 Views)
Hi!

It is a problem of localized decimal point.
In a german Windows, LabVIEW will use Komma as decimal point.

So the Scan From String.vi will convert string 0,21 in a double but not 0.21. From the file dbc you receive the values with period "." that's why it create the error 85.

You have 2 possibilities: change the localized decimal point in LabVIEW (Tools -> Options) or you say to the Scan From String.vi to use "." as a decimal point.
Go to CAN FtoC Parse Channels and Mode.vi and search the 2 Scan From String.vi

Add at the beginning of the Format String %.; so that the format String will use the "." as decimal point (see Attachement).

After that the example will work.

Best regards
Ken
0 Kudos
Message 2 of 2
(2,589 Views)