LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to call this dll point function by labview

 

Void SetCompStatusCallBack(void ((*CompStatusCallBack)(int id, int status, unsigned char conflict)))

 

Sets up callback function for getting component status.

 

Parameters:

* CompStatusCallback – entry point for callback function.

 

Return Value:

         None.
0 Kudos
Message 1 of 2
(2,032 Views)


@left wrote:

 

Void SetCompStatusCallBack(void ((*CompStatusCallBack)(int id, int status, unsigned char conflict)))

 

Sets up callback function for getting component status.

 

Parameters:

* CompStatusCallback – entry point for callback function.

 

Return Value:

         None.


You don't. This is the callback protoype that would be passed as parameter to another API and as such never will be called by the caller of that API but instead be provided by that caller!

And LabVIEW does not support function pointers at all, so you really can't do this.

The only solution is to write a wrapper function in your DLL or in a separate DLL that translates between this interface and some more event oriented LabVIEW functionality such as user events, but unless you do know C to a fairly good level, you should probably leave that to someone else.

Rolf Kalbermatter

Message Edited by rolfk on 01-26-2007 04:21 PM

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(2,021 Views)