LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ Event Callbacks in Multithreaded applications

Is there any way in LabWindows/CVI to schedule a DAQ Event callback to execute in a separate thread in multi-threaded applications? How about on a specific processor in multi-processor machines?
0 Kudos
Message 1 of 3
(2,808 Views)
The DAQ callback will execute in whatever thread you call Config_DAQ_Event_Message from. If you want it to run in another thread, create that thread and then call the event function inside that thread. You will need to be processing messages in that thread though (RunUserInterface or ProcessSystemEvents).

Windows OS's does not allow any way for you to specify processors, the OS does this automatically. UNIX OS's typically allow you to specify processors like this.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(2,808 Views)
Thanks for the quick answer. Could I not use the Win SDK function SetThreadIdealProcessor to specify which processor I wanted my DAQ callback thread to run on?
0 Kudos
Message 3 of 3
(2,808 Views)