LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert a string to binary?

Hello Ex-jobb,

you should use the hex conversion routines in the string palette. This will convert your hex string to a number. Then do the conversion to boolean array, pick the bits you need and append them to a new array. This array can be back-converted to a number. It's fairly easy...

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 12
(589 Views)
There is no need to use a boolean array for this problem. Using the bit level operators, you can do this pretty simply. See the attached example (LV6.1 or better to view).
0 Kudos
Message 12 of 12
(572 Views)