To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example shows a method of removing duplicate string values from an array.
Description
The Remove Duplicate Strings from Array VI will take an array of strings and use them as names for attributes of a Variant. Because Variants in LabVIEW cannot have multiple attributes of the same name, duplicates are removed. We then retrieve the names of all Variant attributes, sort them, count them, and return them to the user as the array of strings with duplicate values removed.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
A novel approach...I first thought it was much faster than my own implementation, but I had mixed the two up.
The variant-based method is 3-4 times slower than this one.