05-13-2014 02:43 AM - edited 05-13-2014 02:44 AM
Hi there,
Customers using exe in Europe have reported they are receiving NaN results for numerical calculations (pure mathmatical floating point operations with some use of LV optimisation VIs such as LM).
When I perform the same calculations using the same exe I don't get NaN.
What could possibly be the problem? Any help is appreciated.
Customers using W7 64 bit and developed in LV 2013.
Solved! Go to Solution.
05-13-2014 02:45 AM
It's possible there's some decimal point separator mismatch.
Are you reading data from text files?
Regards,
Marco
05-13-2014 02:46 AM - edited 05-13-2014 02:52 AM
Yes, XML files.
Is there a work-around?
I know in Europe they use comma (,) for decimal point.
Can the PC be set to use conventional . dot for decimal point?
05-13-2014 02:55 AM
I found this:
http://www.copsmodels.com/gpcommapnt.htm
Fortunately there is a very simple fix. Suppose Windows 7 is configured to use Finnish conventions (including decimal comma), but ViewHAR is (wrongly) using decimal point.
and the problem will be permanently fixed (just changing to something else, then back to your desired setting, reminds Windows 7 how it should behave).
05-13-2014 03:17 AM
You can also tell Labview to use localized decimal point separator when converting from string:
http://digital.ni.com/public.nsf/allkb/4B259A9CF98AD4628625697E00548EA0
Marco
05-13-2014 07:18 AM
I do not recall which ones off the top of my head, but I think there are some functions (Spreadsheet String to Array?) which do not work with comma decimal points regardless of settings.
Lynn
05-13-2014 08:17 AM - edited 05-13-2014 08:20 AM
Hi Lynn,
SpreadsheetStringToArray accepts (and obeys) format strings including "%.;"/"%,;".
Problems appear when parsing/formatting timestamps, where parts of seconds always expects/uses a point as decimal separator:
This snippet will produce an error message. It will work fine when using a point (instead of comma) between 6 and 7…