On Sat, 25 Sep 2010 09:43:20 -0400, "Luis R. Hilario B." <[email protected]> wrote:
>>>> 3) I need to access the serial communications channel from my programs, so >>>> what is >>>> the support available for RS232 communications in Lazarus/FPC? >>> >>>There is the serial unit. >> >> Is it the same on Linux and Windows? > >You can find a version for Windows here: >http://www.luisdigital.com/programacion/fpc/serial.pp > Thanks, I saved the unit file to my PC now. Just an hour or so ago I downloaded and installed Lazarus 0.9.28.2 on my Win XP-Pro development machine for the first time. I opened the IDE and added serial to the uses clause of the default project and tried to compile. Of course the compiler could not find the serial.pp file.... This raises the following questions: 1) Where should the external source like serial.pp be put so Lazarus can find it? I assume I don't have to copy it into each and every project I make, so there should be a special place for these type of files... 2) I am used in Delphi 7 to manage my project files in various project directories by going to ProjectOptions/DirectoriesConditionals/SearchPath and entering my project folders with relative paths from the project file. Can this be done also in Lazarus, if so where? About serial.pp: ---------------- How can I set the communications buffer size? I would like it to be something like 16Kbytes to accommodate the protocol being used. I have used the Turbo Power Async Pro components in the past (without actually putting them on a form, instead I intantiate the objects in code). They expose various settings like the buffer size and also others that I have used to optimize the communications. In the serial.pp unit it seems like there is no object created that could hold the serial connection data, it just looks like a collection of procedures... Is there not an object oriented type of serial communications container for Lazarus? -- Bo Berglund -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
