LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

map data structure

Hi,

 

Wondering if someone might have an example of how to implment a map data structure in labview.  Thank you.

0 Kudos
Message 1 of 10
(5,388 Views)

Hi "newbie",

 

can you explain "map data structure"? Please give references or detailed descriptions...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(5,374 Views)

Do you mean a C struct?



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 3 of 10
(5,365 Views)

Hi,

 

Thank you for the replies. Yes, a possible example of how to implement the C map data structure in labview.  thank you.

0 Kudos
Message 4 of 10
(5,345 Views)

Hi "newb",

 

well - what is a "C map data structure"?

 

You're posting to a LV forum, so you better explain details of other programming languages Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 10
(5,338 Views)
0 Kudos
Message 6 of 10
(5,319 Views)

Hi GerdW,

 

Sorry about that, thanks for your patience. 

 

From C++Reference

In a map, the key value is generally used to uniquely identify the element, while the mapped value is some sort of value associated to this key. Types of key and mapped value may differ. For example, a typical example of a map is a telephone guide where the name is the key and the telephone number is the mapped value.

 

Seems like I could use arrays... 

to eventually use where a series of commands can be mapped to different values to execute different functions for example key 1 mapped value run (name of application) key 3 mapped value save (filename, path).  

0 Kudos
Message 7 of 10
(5,315 Views)
Thanks nathand.
0 Kudos
Message 8 of 10
(5,311 Views)

Hi othernewb,

 

well, use arrays when all values have the same datatype or use an array of clusters, when key and mapped value differ in type...

(When the key is the first element of the cluster you can sort the array of cluster by this key using the array sort primitive.)

Message Edited by GerdW on 12-10-2008 05:26 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 10
(5,309 Views)
Thanks GerdW.
0 Kudos
Message 10 of 10
(5,270 Views)