ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Messages

Hi All!!!

 

Please help me, I get Message with NI USB 8473, but I get the message in Hexadecimal number and I need convert the value to Decimal, how Can I do?

 

Thanks

 

Best regards

0 Kudos
Message 1 of 6
(3,575 Views)

String conversion palatte, String conversions, Hex string to number


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 6
(3,567 Views)

Sorry Jeff is convert Hexa to float number, for example: I get the message value C9 1D  and I should have a close value 233.24

0 Kudos
Message 3 of 6
(3,557 Views)

Hi Kaliman,

 

I'm no expert 😉 , but as far as I know C91Dx is the same as 51485d

 

Don't know how you get the decimal value.

 

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
0 Kudos
Message 4 of 6
(3,514 Views)

Hi Kaliman,

 

if you do some further testing, and you split the string in 2 parts : "C9" and "1D" and convert them seperate then you will get a value like 201,29

 

I think that is the only way to do it. 😉  (but you will still need the VI "number to hexadecimal string" or visa versa.

 

 

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
0 Kudos
Message 5 of 6
(3,511 Views)

 


@ABCPrograms wrote:

Hi Kaliman,

 

if you do some further testing, and you split the string in 2 parts : "C9" and "1D" and convert them seperate then you will get a value like 201,29

 

I think that is the only way to do it. 😉  (but you will still need the VI "number to hexadecimal string" or visa versa.

 

 


@unless the scale is @ 220 counts / unit.  What are units measured? what is the scale?

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 6
(3,501 Views)