Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Call Library Function in LabView 6i using a USB interface to U2C-12 USB-I2C/SPI/GPIO Interface Adapter from Diolan.com.

Hello Smerico,

 

regarding Diolan U2C board...and its communcation to  .DLL file

 

Can you help me with "U2C_Read" function, to implement using Wrapper DLL, I tried but not getting. (If u can give a small example)

 

For this Function "U2C_Read", I tried to use Wrapper DLL, i give input "handle device" and other input is a pointer to a structure.

 

 

 

* This structure contains all required information to perform I2C transaction

*/

typedef struct _U2C_TRANSACTION

{

BYTE nSlaveDeviceAddress; /*!< I2C Slave device address in 7 bit format */

BYTE nMemoryAddressLength; /*!< Slave Device Internal address size */

DWORD nMemoryAddress; /*!< Slave Device Internal address (Memory address) */

WORD nBufferLength; /*!< Transaction buffer length. Can be from 1 up to 256 */

BYTE Buffer[256]; /*!< Transaction Buffer */

} __PACKED_ATTR U2C_TRANSACTION, *PU2C_TRANSACTION;

 

 

Can you tell me how to pass the pointer to this above structure to the .dll file of the DIOLAN

0 Kudos
Message 31 of 31
(1,159 Views)