12-09-2008 08:59 PM
Hi,
Wondering if someone might have an example of how to implment a map data structure in labview. Thank you.
12-10-2008 02:17 AM
12-10-2008 04:00 AM
Do you mean a C struct?
12-10-2008 08:59 AM
Hi,
Thank you for the replies. Yes, a possible example of how to implement the C map data structure in labview. thank you.
12-10-2008 09:22 AM
12-10-2008 10:01 AM
12-10-2008 10:22 AM
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).
12-10-2008 10:23 AM
12-10-2008 10:25 AM - edited 12-10-2008 10:26 AM
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.)
12-11-2008 07:20 PM