Map VIs and Functions

Owning Palette: Collection VIs and Functions

Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Map VIs and functions to create and manipulate maps.

Palette ObjectDescription
Build MapCreates a map from the input key-value entries. For entries with duplicate keys, this function includes only the last entry in the resulting map.
Collection SizeReturns the number of elements or entries in a collection.
Convert Map To ArrayPlaces the code that you can use to convert a map to an array.
Empty Collection?Returns TRUE if the input collection contains zero elements or entries.
In Place Map AccessPlaces an In Place Element structure on the block diagram with the Map Get / Replace Value border node added.
Insert Into MapInserts a key and its associated value into a map. If the key is already included in the map, this function replaces the original value of the key with the new associated value.
Look In MapChecks whether a map includes an entry with the specified key and returns the associated value of the key.
Map ConstantRepresents a map on the block diagram.

You cannot modify the embedded data in a map interactively or programmatically. You can update map data only as a whole through operations such as writing to the map front panel terminal or right-clicking the map and selecting Data Operations»Copy Data or Data Operations»Paste Data.
Read Map Max & Min KeysReturns the maximum and minimum keys in a map.
Remove From MapRemoves a key and its associated value from a map.


SubpaletteDescription
Registration Map VIsUse the Registration Map VIs to create and manipulate registration maps. A registration map is a map between a key and a set of elements with operations to signal when clients register or unregister for one or more services.