03-24-2011 09:53 AM
As the attached vi, I am tring to convert string(hex) into number(U8), but seems not work.
Any suggestion, thanks.
Solved! Go to Solution.
03-24-2011 09:56 AM
Alex,
isn't this what you're looking for?
03-24-2011 10:01 AM
Now you have 2 solutions :
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
03-24-2011 12:38 PM - edited 03-24-2011 12:40 PM
@alex. wrote:
As the attached vi, I am tring to convert string(hex) into number(U8), but seems not work.
Any suggestion, thanks.
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.
How many bytes are in the string?
08-28-2014 01:41 AM
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
08-28-2014 01:51 AM
duplicate post, continue here…
Hong: What's the point of creating 3 identical posts in 3 different threads?
01-09-2019 09:39 PM
Hi Alex,
But how to convert the unsigned byte array into a decimal number? I think that was the question.
Cheers
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.
More complex details:
How do you want to display your U8 array?
Do you need any special conversion?
Can you provide an example with some input data and expected result?
01-14-2019 06:17 PM
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.