Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Implementation of hex numbers.

0 views
Skip to first unread message

Kevin Beach

unread,
Jun 2, 2000, 3:00:00 AM6/2/00
to

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

Daniel Bentolila

unread,
Jun 7, 2000, 3:00:00 AM6/7/00
to
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 <kevin...@baesystems.com> wrote in message
news:3937...@newsgroups.ni.com...

Guillaume Dargaud

unread,
Jun 14, 2000, 3:00:00 AM6/14/00
to
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 new messages