LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array to hex to case structure

Solved!
Go to solution

Hi all,

 

I have a 3 elements array with numbers.  I would like to turn that array into hex and use it to select which case my case structure uses.  For example, the array is 11, 2, 3.  I want to turn it into B23, and B23 would be one of my case.  I am trying to implement this with as little code as possible.  Thanks!

 

Yik

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 3
(2,325 Views)

Hi Yik,

 

like this:

22352i4E58817B158FB934

Maybe not "as little code as possible", but atleast "little code" Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,319 Views)
Solution
Accepted by topic author jyang72211

You didn't say whether you wanted a number or a string, or whether it had to be scalable, but here's another possibility using strings:

Message 3 of 3
(2,311 Views)