Results 1 to 2 of 2

Thread: Synchronize data from diff MScomm

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    1

    Unhappy Synchronize data from diff MScomm

    Hi,

    I have three devices sending data to the computer via blue tooth. I written a client application in VB and have used ActiveX to duplicate it 3ice so that three programs are created which do the same thing i.e get data from the com buffer, process it and then save it to file.
    The problem i have is that because i have used the timer function to get the data from the buffer the 3 ActiveX monitors start at different times the data they store are not synchronised in time. I tried resetting the MSComm but the data recieved are still unsynchronised becasue the first first monitor is resetted and then the next and then the other so there is some lag .
    If you need more details please ask me.
    If anybody could help, I will be very thankful.

  2. #2
    Member
    Join Date
    Jul 2003
    Location
    UK
    Posts
    60
    Might be better to use the OnComm event rather than timers. You can ensure that the timers kick off together by comparing to the system clock using Now. Hope this helps.

    Nick

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