• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
March 28, 2024, 04:22:21 pm

News:

SMF - Just Installed!


Start receive, after 10 seconds, finish.

Started by MTZOVARAS, November 12, 2020, 09:17:53 am

Previous topic - Next topic

MTZOVARAS

Dear sir,

i have a simple application where i must open a serial port and wait.

After some hour a stream of characters will come and when the stream finishes
i have to take the stream and put it in a file.

Next stream will appear after 5 minutes at least.

How can i do that ?

Thank you,

Minas

Roman Novgorodov

Hello

You can open "Demos\Codes\codes_demo.dpr"

Place necessary file write operations into following handler:

procedure TForm1.nrComm1AfterReceive(Com: TObject; Buffer: Pointer; Received: Cardinal);

where Buffer pointer to bytes with a new portion of data with Received length.

Roman Novgorodov
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.