LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

TextBox doesnt update until later

I am using the test executive software module also. I am writing to a couple of text boxes on the main uir. It seems that the text that I write to the text boxes on the uir only updates when the program goes to the next test in the sequence.

I'd like to see the text boxes updated during the current test. If step thru my code, the text box gets updated real time as the InsertTextBoxLine function is executed.

Thanks
-Joe
0 Kudos
Message 1 of 3
(3,178 Views)
you need to execute a DisplayPanel function after the InsertTextBoxLine function.
Message 2 of 3
(3,178 Views)
Put in a ProcessDrawEvents() or a ProcessSystemEvents() function call after each InsertTextBoxLine call. InsertTextBoxLine doesn't include a forced redraw of the control in the function, instead it places a redraw event in the queue to have the control redraw after the current callback. So you have to process the draw event and then continue the callback to see the update immediately. That will cause the redraw to take place. You must be using CVI 5.0.1 or previous. In CVI 5.5 or later, the text box should not perform differently when debugging.

Best Regards,

Chris Matthews
National Instruments
Message 3 of 3
(3,178 Views)