Re: serial port communication qestion...

On Aug 24, 12:31 am, Lew Pitcher <lpitc...@xxxxxxxxxxxx> wrote:
On Aug 22, 7:17 pm, cooper...@xxxxxxxxx wrote:

hi everyone,

i am a beginner of pascal language. nowadays, i am learning to deal
i found some examples, such as openingport, writing toport:

//SerSetParams(MySerialHandle, 9600,8,EvenParity,1,[]);
//SerWrite(MySerialHandle, bffr,2);

my question is why the 'MySerialHandle' argument appears in these
what is the purpose of this argument?

MySerialHandle is the unique "handle" returned from the open for theserialdevice. Remember, you can have more than oneserialdevice, so
there has to be a way to distinguish them. The "handle" is just the
way the code distinguishes between openedserialdevices.

thank Lew, your explanation is very clear.

thanks again :)