Dynamic data updation in a Textbox

vishalkbhatt

Member
Joined
Oct 7, 2010
Messages
12
Programming Experience
Beginner
Hi friends, I am working on an application which involves serial port communication with stepper motors. Now I am sending queries to the PLC via modbus protocol. There is one query in which I ask the PLC for the current position of the moving motor and display it in a current position textbox using a DO Loop. Here the problem is the textbox only displays the position at the end of the motor movement and not while the motor in movies though I have included the code to do so inside the DO loop. So pls anyone who has the solution for this or any other alternative to perform this type of dynamic data display updation then pls reply.

Thanks,
Vishal
 
A loop will block the UI thread, so you should run that loop on a secondary thread, and pass the information back to UI thread as it is received.
 
Back
Top