10-22-2017 09:16 AM
hello
I've just started lerning LabView and i've got problem that I can't overcame. Topic is simple , I have string ( let say exactly like in screen shot ) 14.12 and I would like to change it to a number because it will be send to graph. As you see after scanning from string I get Output 14 , and remaining string .12 😞 I need Output = 14.12 I've serched on this forum topics conected with this mater but I can't find answer. Mayby someone can help me 🙂
Working on LabView 2017 x64
Solved! Go to Solution.
10-22-2017 09:29 AM
Well, in LabVIEW 2016 32-bit, I get 14.12 as Output 1 and nothing in Remaining String. Some thoughts:
Bob Schor
10-22-2017 11:00 AM
@Bob_Schor wrote:
- Is your PC set to use the comma (",") as the decimal indicator (i.e. 14,12)? This would definitely produce the output you are seeing. Try changing the input string to 14,12 and see what happens ...
Looking at the front panel shown in 2.jpg, this is definitely the case.
OP, use "%.;%f" as your format string. The "%.;" forces the use of the period as the decimal separator.
10-22-2017 11:45 AM
Tools options environment has a checkbox to use some stem decimal seperater. Make sure it is checked. If it is. You should not need to add the %,; in scan from string.
10-22-2017 12:06 PM
10-22-2017 02:08 PM
Actually I was right and wrong
Read too fast. The checkbox is set by default to use statement settings. crossrulz pointed out that the OP apparently has a comma decimal seperater so to correctly scan nn.dd the %.;%f is needed.
10-22-2017 07:37 PM
Ing. Ovidio Torres (El Salvador).
10-23-2017 07:20 AM - edited 10-23-2017 07:21 AM
Guys you are the best 🙂 you made my day 🙂
I haven't thought abaut that because I have been working on this project for a while and elier everything was working. Probaply this problem is all my fault, I remember that I have instaled a few updates and probably my regional setings have been changed.
Thanks again 🙂
Best regards