LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert to ASCII character

I am trying to send 8bits to a microcontroller, who understands ASCII characters. I am having trouble finding out how to convert my 8bits, or hex values, to the corresponding ASCII character....
i.e. 01010101 binary = 55 hex = U char
See the attached file...
 
0 Kudos
Message 1 of 2
(4,633 Views)
Hi!

   Even if this is LabWindows CVI forum....

   you should use Byte Array To String, in
Numeric --> Conversion  palette.   To do this you have to use an array, instead of a single numeric value.

   Even if this is not efficient, you can build an array of 1 element, and then send it to Byte Array To String function.

  I hope this helps... Bye!

graziano

BTW, you can do it in a simpler and more efficient way  with LabWindows/CVI and C code, if you want.
0 Kudos
Message 2 of 2
(4,622 Views)