LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Hex conversion

Perhaps I haven't had enough coffee yet this morning but I need to convert
an I8 number between 0 and 255 to hex 00 to FF.
The output can only be one byte. I keep getting 4646 with the LabVIEW
conversions corresponding to FF text. This is not what I need but just FF
hex corresponding to 255 decimal in one byte. Does this make any sense?
Thanks in advance for your help,
-Tom
0 Kudos
Message 1 of 3
(2,888 Views)
I8 is a signed integer, -128 to +127, do you want to try U8 (unsigned integer, 0 to 255) instead?
0 Kudos
Message 2 of 3
(2,888 Views)
I think I finally solved it with the attached example. I needed to use U8
instead of I8.
Thanks for your help.
-Tom

"Tom Byers" wrote in message
news:3ea6ac79@newsgroups....
> Perhaps I haven't had enough coffee yet this morning but I need to convert
> an I8 number between 0 and 255 to hex 00 to FF.
> The output can only be one byte. I keep getting 4646 with the LabVIEW
> conversions corresponding to FF text. This is not what I need but just FF
> hex corresponding to 255 decimal in one byte. Does this make any sense?
> Thanks in advance for your help,
> -Tom
>
>



[Attachment Convert to Hex.vi, see below]
0 Kudos
Message 3 of 3
(2,888 Views)