XY Plotter - VB2008 help required

Hi All,

I have got my stepper motor moving a pen from left to right using a VB do loop. I have a counter in this loop and wish to display the value continuously on the window form. Counter adds value when going from left to right and subtracts when going from right to left. Had hoped to be able to use text1.text = counter value on each pass of loop but this does not display counter value as it changes.

Eventually, I hope to use a rotational optical encoder via one of the digital inputs to count the steps and so will run into similar situation.

Could some kind person point me in the right direction.

Thanks in anticipation.

You need to perfom text1.Refresh after each new value is assigned.

Thank Cliffyk - works a treat will now make left steps plus and right steps negative and the difference should be the current y coordinate…

Thanks again