|
-
Apr 9th, 2007, 02:31 AM
#1
Thread Starter
Fanatic Member
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
-
Apr 9th, 2007, 10:27 AM
#2
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
-
Apr 10th, 2007, 10:01 PM
#3
Thread Starter
Fanatic Member
Re: send large data to mscomm1
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|