LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SetAttributes of CVI panels and controls from seperate thread

Is it okay to setattibutes and make UI changes in a thread other than the original thread that the panel was created in, I know this is a big NO, NO in windows and causes very strange behavior but it seems to work ok using CVI, so I am just wondering if the code that actually makes the changes to the UI is thread safe.

0 Kudos
Message 1 of 2
(3,038 Views)
Hi baker_matt,

Yes it is okay in CVI to update UIs from different threads even though traditional Win32 programming says its a big no no. We handle all the underlying marshalling to the UI thread for you.  However, there are certain restrictions on this and we document all about this in the CVI Help.  Check out the Different Approaches to Multithreaded User Interface Programming help topic as well as the Multithreading Restrictions section under the Library Reference >> User Interface Library help topic.  See the attached snapshot.

Best Regards,
Jonathan N.
National Instruments
Message 2 of 2
(3,032 Views)