LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Look Up Table

Hello all, I'm trying to find a way to build a look-up table for binary strings. Can anyone suggest the easiest way to do that?

I am trying the array and cluster method. But we are facing a data comparison issue.

Please let me know if anyone has worked on it.

0 Kudos
Message 1 of 3
(1,055 Views)

The Map data type is probably the best option. You can find the Map functions under the Collection -> Map palette. Note this requires LabVIEW 2019 or newer. If you're using an older version of LabVIEW, you can also use variant attributes:

https://forums.ni.com/t5/Example-Code/Using-Variant-Attributes-to-Build-a-Dictionary-or-Look-up-Tabl...




Certified LabVIEW Architect
Unless otherwise stated, all code snippets and examples provided
by me are "as is", and are free to use and modify without attribution.
0 Kudos
Message 2 of 3
(1,042 Views)

@$hriya wrote:

Hello all, I'm trying to find a way to build a look-up table for binary strings. Can anyone suggest the easiest way to do that?

I am trying the array and cluster method. But we are facing a data comparison issue.


Yes, maps are a great solution, but it would help to have more information.

 

  • Are "binary strings" they key or the value? Once you answer that, what's the datatype of the other? There is no real difference in datatype between strings and binary strings, right?
  • What is the "array and cluster" method? Seems a bit vague. Do you have a link?
  • What exactly are the "data comparison issues"? Use of maps might not eliminate them, depending on their origin.
0 Kudos
Message 3 of 3
(984 Views)