LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get array from callback function in labVIWE

Hi All,
 
I have a callback function name is dll_SetCallbackFunctions in a DLL,
It is possible that LabView can implement a C++ prototype callback functions like below?
 
    dll_SetCallbackFunctions( WriteNat8NoSync,
                              WriteCharNoSync,
                              WriteNat8ASync,
                              WriteCharASync,
                              OnExecutionCompleted,uOnTransmissionCompleted);

Then we can use userEvent to get data from the call backfunctons(WriteNat8NoSync,
                              WriteCharNoSync,
                              WriteNat8ASync,
                              WriteCharASync,
                              OnExecutionCompleted,uOnTransmissionCompleted).
 
The six functions prototype list below,
//////////////////////////////////////////////////////////////////////
// DLL callback function prototypes:
//////////////////////////////////////////////////////////////////////
static int  __cdecl WriteNat8NoSync( int appid, int bus, unsigned char * buf, int size );
static int  __cdecl WriteCharNoSync( int appid, int bus, char * buf, int size );
static int  __cdecl WriteNat8ASync( int appid, int bus, unsigned char * buf, int size );
static int  __cdecl WriteCharASync( int appid, int bus, char * buf, int size );
static void __cdecl OnExecutionCompleted( int appid );
static void __cdecl OnTransmissionCompleted( int res );
Thanks,
 
David HD
 
 
 
0 Kudos
Message 1 of 2
(2,959 Views)
0 Kudos
Message 2 of 2
(2,937 Views)