LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

The ReplaceListItem command doesn't update a test list with pass/fail info immediately after it is called.

The ReplaceListItem command doesn't update a test list with pass/fail info immediately after it is called. It falls behind by several tests and then catches up. The entire list of tests are run in a thread. The main panel is loaded with LoadPanelEx command. The RunUserInterface command is called before thread pool is created and before thread is scheduled. After thread is scheduled, CmtWaitForThreadPoolFunctionCompletion is called to wait for entire list of tests to complete. Once the last test completes, and the thread is complete, the entire list is updated. I am using LabWindows 7.0 on Windows XP.
0 Kudos
Message 1 of 3
(2,619 Views)
Call ProcessDrawEvents() if you want the listbox to update before returning from the callback.
0 Kudos
Message 2 of 3
(2,614 Views)
you might want to add ProcessSystemEvents() after you call ReplaceListItem.
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 3 of 3
(2,612 Views)