Author Topic: Send and receive data  (Read 1675 times)

pretcorr

  • Newbie
  • *
  • Posts: 1
    • View Profile
Send and receive data
« on: December 27, 2013, 06:20:54 am »
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