LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interger to hex conversion ???

Hi

Is there a easy way to make interger (unsigned 32 bit ) to HEX
conversion ??
0 Kudos
Message 1 of 3
(2,778 Views)
Yes,

1.Just select from control Pull-down menu "format and precision" and
then "hexadecimal".
2.If you need string, use "To Hexadecimal" vi from string or numeric
palettes.

kristian@krause.dk wrote:
>
> Hi
>
> Is there a easy way to make interger (unsigned 32 bit ) to HEX
> conversion ??

--
Sergey Krasnishov
____________________________________
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
http://acs.levsha.ru
0 Kudos
Message 2 of 3
(2,778 Views)
Kristian,

It depends on what you want to do with the hex conversion. To view a
number in hex in a control, right click on the control, select Format &
Precision. As long as the format is set to numeric, you can select
between decimal, hex, octal and binary from the other drop-down list.

If you want to change an unsigned 32-bit number to a hex value to be
written to a file, you can use the String->Format Into String VI. Wire
your U32 into input 1, and set the format string to %4x (which will show
a 4 digit hex value). The output will be a string which contains the
hex value.

Hope that helped.

Mark

In article <39cf37ee.18376265@news.euroconnect.dk>,
kristian@krause.dk wrote:
>
>
> Hi
>
> Is there a easy way to make interger (unsigned 32 bit ) to H
EX
> conversion ??
>


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 3 of 3
(2,778 Views)