LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

single precision integer to 8 digit hex string

I need to convert a single precision integer to a MSB-LSB 8 digit hex string to send to a test machine via RS-232.  So 15 needs to turn into 41700000.  The best I have been able to do is get 15 to turn into 0000000F, which is correct but not in the MSB-LSB format I need.  Any ideas?
0 Kudos
Message 1 of 3
(2,500 Views)

Just typecast the SGL to U32 and format it with %08x.

 

 

Message Edited by altenbach on 05-30-2007 08:49 AM

Download All
Message 2 of 3
(2,496 Views)
I figured it was something easy and I was missing the obvious, thanks much.
0 Kudos
Message 3 of 3
(2,488 Views)