07-13-2012 09:11 AM
Hello,
I want to convert a string to a double on my Real Time device (PXI-8101. When I use the "scan value" or "Fract/Exp String To Number Function" VI the numbers after comma dissapear. This does not happen on the Host (PC).
So for example on the host vi, the string "2121,3" gives the number 2121,3. If I do the same thing on the Real Time, the string "2121,3" returns the number 2121.
How can I fix this?
Thanks in advance,
Regards,
Dries
Solved! Go to Solution.
07-13-2012 09:15 AM
08-06-2012 05:20 AM
Hello,
Thanks for the reply, but scan from string also does not return the correct number on the RT device. The VI returns the number after comma as the remaining string. Any other suggestions?
Best regards,
Dries
08-06-2012 05:23 AM - edited 08-06-2012 05:24 AM
I've changed the format string to "%,;%f" and now it works. Thanks for the help.
Best regards,
Dries