Solved - Convert Hex String To Number - NI Community
Solved - Convert Hex String To Number - NI Community
LABVIEW
Register | Login | Help
Previous 1 2 Next
Solved! Go to solution
03-24-2011 09:53 AM
As the attached vi, I am tring to convert string(hex) into number(U8), but seems not work.
Message 1 of 14 REPLY
03-24-2011 09:56 AM
Alex,
Kind regards,
- Bjorn -
Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
LabVIEW 5.1 - LabVIEW 2012
Message 2 of 14 REPLY
03-24-2011 10:01 AM
Kind regards,
- Bjorn -
Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
LabVIEW 5.1 - LabVIEW 2012
03-24-2011 12:16 PM
What does your "hex string" look like? Is it human readable or it the raw bytes?
Raw bytes, then do as ABCPrograms
If you have a two byte string that represent a human readable hex number 0-255 (00 to FF)
like "1A"?
Then
Omar
Message 4 of 14 REPLY
@alex. wrote:
As the attached vi, I am tring to convert string(hex) into number(U8), but seems not work.
The question is not clear, because "hex" is very ambiguous. Please put a typical string
inside the string control and make it the default, resave, and attach once more. Then tell us
what result you expect.
LabVIEW Champion.
1 KUDO (18,168 Views)
Message 5 of 14 REPLY
Hi All
I am trying to converter 4 bit hex string to number. I know the right results. But I do not
know how converte. Please see the attached vi
Please help me.
Thanks
converter.vi 14KB
Message 6 of 14 REPLY
Best regards,
GerdW
Message 7 of 14 REPLY
Hi Alex,
But how to convert the unsigned byte array into a decimal number? I think that was the
question.
Cheers
Message 8 of 14 REPLY
01-10-2019 01:04 AM
Hi dadest,
how to convert the unsigned byte array into a decimal number? I think that was the
question.
Simple answer: Just display that U8 array in an array indicator. Set the display mode to
decimal.
Best regards,
GerdW
Message 9 of 14 REPLY
Hi GerdW,
Thanks for the reply. Yes, I can just display as decimal but the thing is that I want to be able
to use that data for calculations.
For example, the maximum output of my circuit is 1.3V that corresponds to 0514 (HEX)
which I am reading using Bluetooth LE.
So if I read 025C (HEX), that corresponds to 604dec and that turns out to be 0.604mVolts. I
want to be able to continuously read this voltage and display it as a waveform.
Cheers.
Message 10 of 14 REPLY
Previous 1 2 Next
Solutions
Academic & Research / Aerospace, Defense, & Government / Electronics / Energy / Industrial Machinery /
Life Sciences / Semiconductor / Transportation
Orders
NI Distribution Partners / Order Status and History / Retrieve a Quote / Terms of Service / Order by Part
Number or Request a Quote
Company
NI is now part of Emerson / About / Emerson Careers / Newsroom / Supply Chain & Quality / Events
Support
Downloads / Product Documentation / Discussion Forums / Activate a Product / Submit a Service Request
/ Site Feedback