<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19120">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>I guess it is better to start at the beginning.
</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I have been using SerialNG (free) for many years
sending and receiving data to CNC machines. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Now I'm doing something different and things just
don't work the same. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I'm sending 3 bytes of data from a micro. If I send
data every 500 ms, I get a 3 byte string which I
decode. SerialPortNG.NextClusterSize is triggered whenever data
is received. If data is received every 500 ms I get valid data. If I speed up
the micro to every 100 ms, it all changes. I start to get 2 or 3 blocks of data
coming though at one time. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Bing - Light just went on. My array for
receiving the data is only 4 long. The data is now is a lot longer.
Access Violation _"array exceeded" would have been helpful.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>for i:=1 to length(sRaw)
do<BR> try iData[i]:= byte(sRaw[i])</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Never the less - Is this a Delphi, Windows or
serial comms issue. Why at 500 ms do I get 3 bytes and 100ms get 4+ bytes
? Is the delay between the USART receiving data, setting a
flag, signalling Delphi to execute a read longer than 100ms ?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Anyone with any help please reply or call
03 3237449</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>Cheers Wallace</FONT></DIV>
<DIV> </DIV></BODY></HTML>