Dictionary without Case structure

Is there a way to create in LabVIEW something like a dictionary known from many other programming languages ​​like C #, python, C ++ (Map) without using a case structure?

+3


source to share


2 answers


The OpenG library is pretty old. Another alternative is to use alternate attributes directly, which should also be more efficient:

Variant attribute lookup



As long as you use the same option, the attributes will be available.

+9


source


In the OpenG Libraries, you can find the Dictionary library. Install it from the VI Package manager (shipped with LabVIEW 2012, which will be downloaded for previous versions of LabVIEW).



A bit tricky to use as it uses variations, but here's an example to get you started: enter image description here

+3


source







All Articles