Hi,
If I pass an array of a cluster of 2 floats and one int into a DLL function for manipulation. Do I just resize and allocate memory for the array, or do I need to allocate memory for both the resized array and the cluster it contains.
If I resize the array, will the Labview memory manager create the neccessary memory for the cluster elements in the array as well?
How do I do this using CVI? I have allocated the cluster memory, and I can successfully populate the cluster, but when I copy the cluster (struct) into the resized array Labview either crashes or doesn't show the data.
Here are the data structures..
// The cluster...
typedef struct
{
uInt32 Wavelength;
float64 Power;
f
loat64 OSNR;
} Data;
// The array..
typedef struct
{
int32 dimSize;
Data peakData[1];
} DataArray;
// The handle..
typedef DataArray **DataArrayHandle;