>The other way is to create a VI with a variant control
>that will be your polymorphic terminal. On the block
>diagram of your VI, you will want to drop the "Variant
>To Flattened String" primitive
>(Functions->Advanced->Data Manipulation->Variant).
>This primitive will provide you with both a flattened
>string of data (the "data string" terminal) and a type
>descriptor (the "type string" terminal). Use the type
>descriptor to determine what kind of data you have.
>If you follow the help links on the primitive (click
>on "Click here for more help" in the context help
>window and then on "LabVIEW Data Storage"), you'll get
>to an App Note that explains how LabVIEW stores its
>data. The first part (pages 1-8) explains the data
>for
mat and the second part (pages 9-14) explains the
>format of the type descriptors.
This is essentially what I would do as well. There is already a toolkit available to manipulate variant data on the OpenG website (www.openg.org). It is part of the OpenG toolkit and is named lvdata. It has VIs for operating on arrays, clusters and more.
Hope it helped
PJM