"Jeffrey R. Orbach" wrote:
> Does anyone know if LV supports Sets and operations on Sets, for example,
>
> Union, Intersection, or just a way to specify the elements of a Set?
There are probably a number of ways to implement this in LabVIEW, depending
upon what kind of data you want in your sets, what kind of operations you
want to perform on them, etc. It's a pretty open-ended question without
more detailed knowledge of what you're after.
From my point of view, the LabVIEW array structure and its operators are a
construct that provides some set-like functionality right away:
specify set elements => array control on panel
check for membership => Search 1D Array
set union => Build Array (followed by Sort 1D Array if you want to keep the
set sorted)
set intersection
=> loop through one array using Search 1D Array on the
other to generate output set
This is one simple approach that shouldn't require a whole lot of coding or
wheel reinvention...
Regards,
John Lum
National Instruments