Atique Ahmad
February 9th, 2000, 11:13 PM
I have just written a software to control a machine with stepper motors. Now to move stepper motor some slowing down delay must be there between successive pulses, as:
For i=1 To 5000: Next
Now, when the same program is run on computers of differing capacities, it just looses control of the motor speed. I know how many times the For...Next must be executed to give a particular speed. However, it is system specific.
Can anybody tell me how can I make the program system independent, general-purpose, so that I can control motor speeds from any computer, whether it is a 386, 486 ot pentium.
I tried Timer, etc, but these do not work as i have to send hundreds of pulses per second.
Thankyou.
For i=1 To 5000: Next
Now, when the same program is run on computers of differing capacities, it just looses control of the motor speed. I know how many times the For...Next must be executed to give a particular speed. However, it is system specific.
Can anybody tell me how can I make the program system independent, general-purpose, so that I can control motor speeds from any computer, whether it is a 386, 486 ot pentium.
I tried Timer, etc, but these do not work as i have to send hundreds of pulses per second.
Thankyou.