LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem of refreshing panel in Teststand

    I built a DLL in CVI and is called by Teststand. During execution, this DLL will popup a panel, and the numeric control value on the panel changes continuously. On the same time, on the "Standard input/output" windows, there will "printf" lines of messages. See attached picture and file.
    The problem is the panel will become no reponse when trying to move the "standard input/output" window or panel. I know this could be the problem that I don't refresh the panel windows timely, but don't know how to resolve this problem.

Thanks
Jacky
Download All
0 Kudos
Message 1 of 3
(3,209 Views)
If you use a text box within another panel to replace the stdio box that would solve some of the issues, but there would still be things like drop down menus that would freeze your meter panel.  If you could move the update of the meter panel to another thread.  An async timer would be an easy way to do this (they run in their own thread).  You do have to watch how the meter panel gets it's data to make sure everything is thread safe, but CVI has a lot of tools to help make this pretty easy.
0 Kudos
Message 2 of 3
(3,202 Views)
Actually, I'm trying another way by using ProcessSystemEvents () and ProcessDrawEvents (). I found it could refresh the  Textbox contents, but failed to refresh "horizontal level slide", please see the attached screenshot,why?
   
 
Thanks!
Jacky
0 Kudos
Message 3 of 3
(3,179 Views)