LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hex input string to boolean array conversion

Hi,
I have a 4 channel DI mod, and I am trying to convert the read hex value (0000-000F) to an array of individual boolean values or bits. how can I do this?

thanks
John Davis
0 Kudos
Message 1 of 2
(5,634 Views)
Hello jd4moto,

if your hex value comes as number you can use the "number to bit array" conversion (math palette-> conversions). If it is a string you should use the "Scan from string" with format set to hex string and do the conversion to bit array as above.

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(5,634 Views)