I'm getting an input of data into labVIEW via serial communication (VISA VI), the data coming into labVIEW is in the form of a string, I'm unable to to convert this string to a decimal using the provided VI, but am having no luck. How would I go about this?
I'm a first year electronic engineering student working on my first year project, and require the use of serial communication to get my data from an external device into labVIEW.
Solved! Go to Solution.
Your format string is wrong- "f" isn't a valid format. Press Ctrl-H and hover over the function and you can see the "quick help" and the "full help" for the function where you can look up format specifier syntax. You want "%f"- all valid formats begin with the % character.
On your 'Scan Value' function, use '%f' instead of 'f'. That should work.