LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Implementation of hex numbers.

To all,

I am new to LabWindows and part of my program I am trying to develop
needs to be able to read in a Hex number (input by the user) as an unsigned
integer.

The numeric input box does not allow this, so I assume I need to use a
string box and convert this to an integer.

Is there an easy way to implement this?

Thanks in advance

Kevin Beach
0 Kudos
Message 1 of 3
(3,190 Views)
Dear Kevin,

I think you are wrong: On the UIR edirot when you doubleclick on a numeric
control you should see a button called "Format and Precision..." where there
you can tell CVI to display this number as HEX.


Kevin Beach wrote in message
news:3937b777@newsgroups.ni.com...
>
> To all,
>
> I am new to LabWindows and part of my program I am trying to develop
> needs to be able to read in a Hex number (input by the user) as an
unsigned
> integer.
>
> The numeric input box does not allow this, so I assume I need to use a
> string box and convert this to an integer.
>
> Is there an easy way to implement this?
>
> Thanks in advance
>
> Kevin Beach
0 Kudos
Message 2 of 3
(3,190 Views)
Alternatively, if you read from file or standard input, use "%x" or "%X" in
the printf / scanf format string.

> I think you are wrong: On the UIR edirot when you doubleclick on a numeric
> control you should see a button called "Format and Precision..." where
there
> you can tell CVI to display this number as HEX.

> > I am new to LabWindows and part of my program I am trying to develop
> > needs to be able to read in a Hex number (input by the user) as an
> unsigned
> > integer.
> >
> > The numeric input box does not allow this, so I assume I need to use a
> > string box and convert this to an integer.
> >
> > Is there an easy way to implement this?
-----------
Guillaume Dargaud
CNR/IFA
http://sung3.ifsi.rm.cnr.it/~dargaud/
http://sung3.ifsi.rm.cnr.it/
~domec/
http://www.appennini.it/roma8000/
http://sodaracq.ifa.rm.cnr.it/
http://radarpct.ifa.rm.cnr.it/
"- Dad, I decided to quit college and take up a life of crime.
- That's nice son, government or politics ?"
0 Kudos
Message 3 of 3
(3,190 Views)