LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to put the functions about opengl into a new thread?

If  the function "OGLRefreshGraph" is put  into the thread function,it will give prompt 

"The function has to be called from the main thread".

 

0 Kudos
Message 1 of 2
(3,348 Views)

Hi,

 

You cannot put OGLRefeshGraph() in an arbitrary thread. See http://zone.ni.com/reference/en-XX/help/370051AC-01/toolslib/functionreference/cvioglrefreshgraph/ :

 

"Call this function only to refresh controls created by the thread calling the function. If you try to use this function to refresh controls created by another thread, then an OGLErrorInvalidThread error is returned and the control is not refreshed."

Certified LabVIEW Developer
0 Kudos
Message 2 of 2
(3,342 Views)