02-01-2018 10:57 AM
Hello,
I am currently reading integer values (%d) using scan value function. However upon trying to read a float as (%f) with I32 indicator it is unable to read the string at all.
I feel as though I may be making a fundamental mistake.
Would appreciate any advice.
Many Thanks
02-01-2018 11:01 AM - edited 02-01-2018 11:14 AM
Well, show us your code and include a typical string as diagram constant.
What is the meaning of "unable to read"? (broken VI? error output? zero output? wrong number? etc.)
Is your decimal delimiter a period or comma?
02-01-2018 11:06 AM
@neunited1 wrote:
Hello,
I am currently reading integer values (%d) using scan value function. However upon trying to read a float as (%f) with I32 indicator it is unable to read the string at all.
I feel as though I may be making a fundamental mistake.
Would appreciate any advice.
Many Thanks
Your fundamental mistake is that you didn't even attach picture of what you are trying to describe. (A VI would even be better, since VI = 1000p = 1000w, where p is equal to one picture and w is equal to one word.) 😉
02-01-2018 12:29 PM
Hi Altonback the error is:
"Error -1073807339 occurred at VISA Read in MSc DC Motor Drive Panel_JKv3.vi"
The LabVIEW code is attached - the issue is occuring with potscale "float", if I remove the float from the string in my C code LabVIEW runs without an error and reads the integer values from my string.
Many Thanks