LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use Windows CALLBACK in CVI

I am trying to use ReadEx() and WriteEx() in a CVI project after opening a device in overlapped mode using CreateFile(). I have supplied a windows CALLBACK functions for each operation and it all builds OK, but the CALLBACK functions are not being called. It seems the WIN32 events are not getting back to CVI - Are there any examples of how this can be done.

 

Thanks,

Geoff

0 Kudos
Message 1 of 2
(2,682 Views)

I suppose you must register a CVI callback to be issued when a specific Windows message is received: this is done by means of RegisterWinMsgCallback function.

 

Here a small tutorial on how CVI handles Windows messages. A search in the forum will also return a small number of discussion that can help you in using the command; I'm afraid I cannot help you much more than this as I have no deep knowledge on it.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,675 Views)