Hi,
I'm using CVI to make several DLL's to be used in Labview. I have an array of a cluster of three numeric
data types, in other words;
typedef struct
{
uInt32 Wavelength;
float64 Power;
float64 OSNR;
} Data;
typedef struct
{
int32 dimSize;
Data peakData[1];
} DataArray;
typedef DataArray **DataArrayHandle;
This is the first time I've worked with a struct within an array in CVI, and I'm a bit confused. I have read the tblsrch.c example in Labview and I am now thoroughly confused.
I understan
d having to resize the array, then setting the dimension size, then allocating memory for the new Data struct. But I can't seem to figure out how to write to the Data struct member data w/o having labview crash.
Can you provide an example of how to write to say, the Power Data member? I'm just flumoxed here.
Kindest,
Warren