Ken Kearney
2006-01-27 12:12:54 UTC
Hi,
We have a .c dll file that we are trying to use in Labview to talk to a USB transceiver. What happens is that when we try to configure the device we call c functions using the "call library function node" utility in Labview i.e. void open_channel(char channel_number) etc.
At the start of the code, we need to send the .dll this function:
void AssignResponseFunction(RESPONSE_FUNC pfResponse, UCHAR *pucResponseBuffer); where RESPONSE_FUNC is a pointer to the function that will be called whenever a response / event message is received from the module.
When the USB device has a message that it wants to make available to us, it uses the pointer pfResponse to call a function in memory that will process the data that has been stored in pucResponseBuffer and make it available. Is this possible in Labview and how would I even go about doing such a thing?
Ken
We have a .c dll file that we are trying to use in Labview to talk to a USB transceiver. What happens is that when we try to configure the device we call c functions using the "call library function node" utility in Labview i.e. void open_channel(char channel_number) etc.
At the start of the code, we need to send the .dll this function:
void AssignResponseFunction(RESPONSE_FUNC pfResponse, UCHAR *pucResponseBuffer); where RESPONSE_FUNC is a pointer to the function that will be called whenever a response / event message is received from the module.
When the USB device has a message that it wants to make available to us, it uses the pointer pfResponse to call a function in memory that will process the data that has been stored in pucResponseBuffer and make it available. Is this possible in Labview and how would I even go about doing such a thing?
Ken