Forum > Packages and Libraries

How to use Lazserial

<< < (5/5)

Just for fun...
Using Synser.WaitingDataEx together with LazSerial.ReadData will increase the CPU load from 1 to 30 percent... Does anyone know why this is happening? I have Win7 and I use a USB-COM converter. The sample application from the previous page (from Jurassic Pork) can be used for the test.
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- procedure TFMain.SerialRxData(Sender: TObject);var Str : string;begin  if Serial.Synser.WaitingDataEx < 32 then exit;  Str :=  Serial.ReadData;  KHexEditor1.Append( KHexEditor1.LastVisibleIndex,Str); end;    


[0] Message Index

[*] Previous page

Go to full version