loco
06-03-2006, 12:21 PM
I have just started out in trying to write a visual basic program to toggle the pins on the printer port and use direction buttons to jog 3 axes around.
I have managed to read/write the port, use buttons to move a step/direction board i put together (orbit picstep) but i am having some problems with finding a good way of timing, im using sleep function in kernel32 from a different thread but that seems to freeze the whole program rather than just time the pulses.
to get to the point i dont know how i would do something so, that when i click a direction button it steps once, but if i click and hold it continuously, say after 1 second it will start to jog at a defined timing?
I use visual basic 6 and the files are zipped so anyone can have a look and help me out..
Thanks,
Mike
I have managed to read/write the port, use buttons to move a step/direction board i put together (orbit picstep) but i am having some problems with finding a good way of timing, im using sleep function in kernel32 from a different thread but that seems to freeze the whole program rather than just time the pulses.
to get to the point i dont know how i would do something so, that when i click a direction button it steps once, but if i click and hold it continuously, say after 1 second it will start to jog at a defined timing?
I use visual basic 6 and the files are zipped so anyone can have a look and help me out..
Thanks,
Mike