Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use the ComponentWorks or ComponentWorks++ controls across multiple threads?

Is it possible to use the ComponentWorks or ComponentWorks++ controls across multiple threads?

--Chris
0 Kudos
Message 1 of 2
(5,025 Views)
Chris:

Currently, the Measurement Studio controls can only be accessed from the thread in which they were created. This limitation will be removed in a future release of Measurement Studio.

Until then, you can use DataSocket or Windows messages to get around this limitation. For instance, you can setup a user event to update the UI controls in the main thread, and then trigger that event in another thread. I've written a short example that demonstrates this using Windows messages. The readme.txt file in this example explains how the code works and how you can re-construct it from scratch.

http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&24C350515009D6A1862569AC0073ACC6&cat=61B119A9F74ADC07862568C50070CE22

Regards,

Chris Wood
Applications Engineer
Nati
onal Instruments
0 Kudos
Message 2 of 2
(5,025 Views)