Results 1 to 3 of 3

Thread: send large data to mscomm1

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2002
    Location
    Philippines
    Posts
    877

    send large data to mscomm1

    hi

    anybody tried already with sending large data to mscomm1? that really fast example you send 4000bytes to mscomm1 with anout nanoseconds or 0.1secs..

    regards

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: send large data to mscomm1

    You can't send data faster than the serial port can send it out. Before sending data, check MSComm1.OutBufferCount and compare it to MSComm1.OutBufferSize. If you put more data into the buffer than it has room for, you'll lose data.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2002
    Location
    Philippines
    Posts
    877

    Re: send large data to mscomm1

    Quote Originally Posted by Al42
    You can't send data faster than the serial port can send it out. Before sending data, check MSComm1.OutBufferCount and compare it to MSComm1.OutBufferSize. If you put more data into the buffer than it has room for, you'll lose data.
    i heard about some people that was possible using pointer or dynamic array? they say that vb6 dont have pointers?

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