LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I remove the slashes from \00\DD so it will convert to numeric 221?

\00\DD is and example of part of an instrument return string in hex with slashes displayed. The Convert Hex String to Number function gives 221 if I manually remove the slashes, and gives 0 if I don't revove the slashes. What LabView function(s) will remove the slashes and make the proper conversion?

Thank you,
Dexter Girton
0 Kudos
Message 1 of 3
(2,906 Views)
The string palette has several functions you can use, depending on how your string is built. For example, you can use search\split string, or string subset or even spreadsheet string to array with a slash as the delimiter. It all depends on how your string is built and what you know for sure about it.

___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(2,902 Views)
You can't Convert Hex String to Number because you don't get the ASCII characters "00DD". Instead, type cast the string received to a U16.
Message 3 of 3
(2,899 Views)