Results 1 to 2 of 2

Thread: Serial Port Timing

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    33

    Serial Port Timing

    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?

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Serial Port Timing

    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:
    1. Dim Timer as clsCountDoenTimer
    2. Set Timer = New clsCountDoenTimer
    3. Timer.Interval = 10
    4. '
    5. Timer.Increment ' this starts the countdown.  Successive "Increments" can be made before or after the first has completed.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width