08-19-2010 07:55 AM
So you're saying that x7E9F111F is matching the SGL number 12.961126?
I guess then you need to find out how your device is encoding the data. I don't see how these 2 numbers match.
In your first post you wrote
|
4B |
56 |
A4 |
FF |
I don't see the connection.
08-19-2010 10:41 PM - edited 08-19-2010 10:41 PM
Hi Dan,
I think you missed this part of it while reading it.
NOTE:rough value taken for explanation
Nevermind...
08-19-2010 11:04 PM
Little changes made in vi.
can you tell why im not getting required float value
08-19-2010 11:24 PM - edited 08-19-2010 11:26 PM
This seems to work.
If you allow the hex characters to be converted to an integer, then typecast that to a double.
If you read the help for Hexadecimal string to Number, it says
"Interprets the characters 0 through 9, A through F, and a through f in string starting at offset as a hex integer and returns it in number.
The connector pane displays the default data types for this polymorphic function.
If you want the function to return a 64-bit integer output, you must wire a 64-bit integer to the default input.
"
So I'm thinking that it only converts the hex string to an integer number, even if you wire up a single as the data type, it just converts it to a single float number that is the integer value of those 8 characters (4 bytes). If so, the help file could probably be a little clearer on this.

08-20-2010 12:13 AM
Nice explanation and thanks for getting it through.
But do have any idea why im not getting required HEX(414F60C6)
instead im getting HEX( 417F67BB) while doing serial VISA read.
NOTE:char,integer and long are obtained correct.
08-20-2010 02:11 AM
Still boils down to the same issue: you need to know how your device encodes the data.
But nevermind.
08-20-2010 04:13 AM
HIi Dan.![]()
Im able to get char,int,long value right but float???.
I think for the question i posted i got the ans from you and ravens fan that float value should have been obtained.
finding less problem with hardware as im using ARM architecture.
thank u for sharing knowledge
03-16-2021 08:16 PM - edited 03-16-2021 08:30 PM
03-17-2021 02:02 AM - edited 03-17-2021 02:04 AM
Hi George,
welcome to the LabVIEW forum!
What exactly do you want to show with your image?
And why do you think it is a good idea to show just an image of code instead of attaching real code?
(And giving an answer in an 11 years old thread might be fine, bot often the OP is not in the forum anymore…)
On your image:
Why is there a blue wire from your SGL input to the TypeCast function?
Why are there so many coercion dots?
03-17-2021 03:05 PM