LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert hex (or byte??) to double

Solved!
Go to solution
Solution
Accepted by theodoros

Hi thodoros,

 

there is no difference between numbers in decimal or hexadecimal representation - they are still the same numbers Smiley Wink

 

The point is you have to pick the correct bits and apply the calculation you need. Which bits to pick was given by your manual, how to calc was given in the manual and in our explanations. You can (should) use standard LV functions, you may either use a formula node (maybe you have a C background?) or (if enabled) even start a MathScript node - all will give you the same results, just with different performance.

 

To raise your learning curve I attach code to convert 4 byte FPLs to DBL. Now the input is an array of U8...There are no comments in the code, use the context help to learn about the functions and read the "detailed help" for the more advanced ones! Try to analyze the code, that way you may also learn LabView Smiley Wink

Message Edited by GerdW on 03-09-2010 06:13 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 21 of 22
(930 Views)

Many thanks to all for your help!

now it works perfectly for 2 and 4 bytes!!

cheers,

thodoros

0 Kudos
Message 22 of 22
(902 Views)