LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a string via serial link

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

 

 

0 Kudos
Message 1 of 4
(2,846 Views)

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?

0 Kudos
Message 2 of 4
(2,843 Views)

@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.)  😉

 

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 4
(2,840 Views)

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

 

0 Kudos
Message 4 of 4
(2,809 Views)