I am writing a program which sends a text file to to a microcontroller via the serial port with the MSComm control.
I need to put a 10ms delay after each character and a 50ms delay after each line.
Can anyone give me some help?
Printable View
I am writing a program which sends a text file to to a microcontroller via the serial port with the MSComm control.
I need to put a 10ms delay after each character and a 50ms delay after each line.
Can anyone give me some help?
ABsolutely. Use my countdown timer, which depends on WokaWidget's APITimer class:
http://www.vbforums.com/showthread.php?t=335713
Its very easy to use.
Like:
VB Code:
Dim Timer as clsCountDoenTimer Set Timer = New clsCountDoenTimer Timer.Interval = 10 ' Timer.Increment ' this starts the countdown. Successive "Increments" can be made before or after the first has completed.