Hello again Bmarsh
> I'd like to write a subVI with an input that is an array. The thing
> is, sometimes the array will be 1D, sometimes 2D, sometimes more.
>
> If I try to pass an array reference, the reference "knows" what
> dimension the array is.
>
> If I pass the array directly then I'm hardwired to accept whatever
> kind of array I put in my subVI as the input.
>
> Is there a way to pass an array reference that is NOT specifically
> dimensioned?
When you create the array control refnum on the subVI, make sure it is not
strictly typed to an actual array. Create it from the palette (Control
Refnum)
and select Array class or otherwise unselect "Include Data Type" in the
right-click menu of the control refnum. Then the reference is generic to an
N dimensi
onal array.
>
> A related question: Is there a way to get the array's dimension from a
> property node? As far as I can tell the only way is the get the value
> property and then use Array Size. It seems like the array's dimension
> should be a property.
You can have it indirectly reading the "Index Values" property, which is an
array of indices (one per dimension) of the element displayed in the
top-left corner of the array indicator. the length of this 1D array is the
number of dimension of the referenced array.
Jean-Pierre Drolet