LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read key.vi error while reading U16 value

 For a U16 input having 4 values as shown in the pic,only the 1st 2 values i could read through ReadKey,not the last 2.

 

Qstn 1 )How this could be fixed???

 

Qstn 2)I wanted the String to be printed and not the value.How could this be achieved(i tried teh substring from readkey vi but that is no avail)???

 

My idea of using this is,Storing last used values and recalling upon next init.

Using WriteKey,ReadKey is the right approach for this??

Download All
0 Kudos
Message 1 of 3
(3,588 Views)
  • It looks like your input for the section is "Section1", but your file has the section as "Section 1".
  • You're writing a Key name as "U32", so that's the only key you're going to be reading, you're just reading it twice.
  • The value is what you read when you read a key, so I'm not sure what you're referring to with your second question.
  • Don't send screenshots of your code, send a Snippet at least so we can better show you how to fix your problem and/or test your code. We aren't going to sit here and remake your code from scratch.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 3
(3,564 Views)

Hello Krupa

 

like James explained give us please some more information how the key is wrtitten to the file.

 

Attached a example from me please feel free to modify it

 

Hope it helps

 

test.png

best regards
Alexander
0 Kudos
Message 3 of 3
(3,437 Views)