使用labview生成DLL在C++中调用,生成的.h文件中数组结构体怎么理解。
typedef struct {
int32_t dimSizes[2];
double Numeric[1];
} DoubleArrayBase;
**typedef DoubleArrayBase DoubleArray;
typedef struct {
int32_t dimSize;
double elt[1];
} DoubleArray1Base;
typedef DoubleArray1Base **DoubleArray1;
typedef struct {
DoubleArray1 Amplitudes;
} Cluster;
typedef struct {
int32_t dimSize;
Cluster Locations[1];
} ClusterArrayBase;
typedef ClusterArrayBase **ClusterArray;
typedef struct {
DoubleArray1 _2ndDerivatives;
} Cluster1;
typedef struct {
int32_t dimSize;
Cluster1 Locations[1];
} Cluster1ArrayBase;
typedef Cluster1ArrayBase **Cluster1Array;
/*!
- FindPeak
- /
void __cdecl FindPeak(*DoubleArray Array, double threshold,
uint16_t peaksValleys, int32_t width, int32_t found[],
ClusterArray *Amplitudes, Cluster1Array *_2ndDerivatives, int32_t len);
其中,FindPeak函数中在VI中定义的输入数组是二维数组,但labview生成.h文件中二维数组的格式是结构体DoubleArray *Array,完全不知道咋用了