cancel
Showing results for 
Search instead for 
Did you mean: 

What is the datatype of handle with ST25R3911DISCOComm.DLL ? ( Using with LabView)

BDARM
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
Ulysses HERNIOSUS
ST Employee

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

View solution in original post

1 REPLY 1
Ulysses HERNIOSUS
ST Employee

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