03-17-2016 09:33 PM
If the function "OGLRefreshGraph" is put into the thread function,it will give prompt
"The function has to be called from the main thread".
03-17-2016 10:37 PM
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."