Skip to main content
BDARM
Visitor II
March 17, 2019
Solved

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

  • March 17, 2019
  • 1 reply
  • 666 views

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

    This topic has been closed for replies.
    Best answer by Ulysses HERNIOSUS

    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

    1 reply

    Ulysses HERNIOSUS
    ST Technical Moderator
    March 21, 2019

    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