I need to call a DLL function, for data acquisition, through LV. I have to pass the following complicated structure type:
typedef struct{
unsigned long HUGE *s0;
unsigned long far *region;
unsigned char far *comment0;
double far *cnt;
HANDLE hs0;
HANDLE hrg;
HANDLE hcm;
HANDLE hct;
}ACQDATA;
the function prototype to be called by LV6 is:
int APIENTRY GetData(ACQDATA FAR *Data);
this function is meant to return data pointers so it modifies the variable. Has anybody an idea how the LV cluster to pass should look like? And what about the settings in the Call Library Function window? Unfortunately I have the LV Base Package, so I don't think I can use a custom C routine to convert variables between LV and DLL function
(am I mistaken?).
Please help