• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

Send and receive data

Started by pretcorr, December 27, 2013, 04:20:54 am

Previous topic - Next topic

pretcorr

Hi

I send and receive data in a asynchronous environed. I send $FF $01 $AO and receive $FF $01 $A0 and then $01 $02 $03 $04 $05 $06. If I don't receive 9 bytes before 100mS has passed, I continue to the next unit and do the same.

I bought the professional version of nrComm and would like to use it in the following manner.

Comm1.SendString(#FF#01#A0);
if Comm1.WaitForBytes(9, 100) then begin
      memo1.Lines.add('='+Comm1.ReadString);
end;

I does not want to work like this! Can it work like this and if so what am I doing wrong?

The initial test that I performed is impressive. My program will be 10 times faster with your component appose to the one I wrote!

Thanx

Gerhard