LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW and Set Operations

Hello all,
I am a student at the University of Texas @ Austin and I have been
looking through the LV 5.0 documentation for any documentation about
Sets and/or Operations on Sets but cannot find anything usefull. 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? I
have an assignment to create a Non-Deterministic Finite State Machine
Simulator and would like to implement it using LV? I have some ideas on
how to Fake the set operations but it would be much easier to not have
to re-invent the wheel. I will check the newsgroup, but please also
respond to jeff.orbach@mail.utexas.edu.
Thanx in advance Jeffo ....
0 Kudos
Message 1 of 2
(1,627 Views)
"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
0 Kudos
Message 2 of 2
(1,627 Views)