-
MSComm input help
Hello all,
First off I am fairly new to VB.
I am trying to write a program that captures data from a Ultrasonic sensor that is connected to the com port. The sensor has an 8 byte output. In hyperterminal it looks as follows:
00384
The sensor outputs every 50 mSec. Currently I am using the OnComm event and it triggers everytime it recieves 1 byte.
The problem is that I am capturing snippets of one packet and another snippet of the next packet. I want to be able to recieve each packet individually so I can compare them.
Any help is appreciated
Thanks,
Joe