Hello, I'm quite new with LABVIEW, and have a question. I'm trying to translate the following C++ code into LABVIEW, but have no idea how it works. The libraryfunction is read into a CALL LIBRARY FUNTION NODE
The idea is that with the pointer from the AVS_GetParameter the data from the structs is loaded..
Please help
Koert
typedef struct
{
float aFit[NR_FIT_COEF];
float Gain; //
float Offset; //
unsigned short StartPixel;
unsigned short StopPixel;
} ChannelParmType;
typedef struct
{
char Version[VERSION_LEN]; //Type device, version, date
unsigned short DeviceId; // Device identification number
} DeviceInfoType;
typedef struct
{
unsigned char NrChannels; // number of channels
unsigned short NrPixels; // number of pixels
unsigned char Sensor; // Sensortype
} DeviceConfigType;
typedef struct
{
DeviceInfoType DeviceInfo;
DeviceConfigType DeviceConfig;
ChannelParmType Channel[MAX_NR_CHANNELS];
} DeviceParmType; // Total size xxxx bytes
//----------------------------------------------------------------------------
//
// Name : AVS_GetParameter
//
// Description : Returns the device parameter structure
//
// Parameters : -
//
// Returns : integer : 0, info available
// error code on error
// a_pDeviceParm : pointer to structure for device information
//
// Remark(s) : -
//
//----------------------------------------------------------------------------
// JR - 10-7-2002 remove ifdef avaspec
#ifndef AVASPEC
DLL_API int __stdcall AVS_GetParameter
(
DeviceParmType* a_pDeviceParm
);
#endif