2019-03-17 10:47 AM
I would like to pilot ST25R3911DISCO with labview (8.6). I have imported ST25R3911DISCOComm.DLL to LabView and I use GetST25R3911 from the DLL to get the handle and to redirect it to checkConnection for example.
The problem is i do not know the data type of the handle ( UInt32, Signed, Array ,string?, pass value or pointer to value ?), so impossible to run the VI without an error.
Anybody could help ?
Does it exist a DLL, and .H without handle, like for CR95 ?
Thanks,
Bernard
Solved! Go to Solution.
2019-03-21 01:28 AM
Hi Bernhard,
ST25R3916DISCOComm.h :
// Handle type. In C language there are no classes, so empty struct is used
// in order to ensure type safety.
typedef struct tagST25R3916HANDLE {} * ST25R3916HANDLE;
I don't see an issue using this from labview. It is a pointer. Maybe you can use in Labview a 32 bit void pointer or if that is not possible just use a 32 bit int. You are not expected to inspect/modify its value - just use it as opaque type.
Regards, Ulysses
2019-03-21 01:28 AM
Hi Bernhard,
ST25R3916DISCOComm.h :
// Handle type. In C language there are no classes, so empty struct is used
// in order to ensure type safety.
typedef struct tagST25R3916HANDLE {} * ST25R3916HANDLE;
I don't see an issue using this from labview. It is a pointer. Maybe you can use in Labview a 32 bit void pointer or if that is not possible just use a 32 bit int. You are not expected to inspect/modify its value - just use it as opaque type.
Regards, Ulysses