Hi Joe,

Thanks for the help! It's been a couple of decades since I've fooled  
with serial port stuff.

On Mar 17, 2007, at 12:28 AM, [EMAIL PROTECTED] wrote:

> On Mar 17, 2007, at 00:59 UTC, Karen wrote:
>
>> If I read the language reference reference correctly both
>> Serial.Reset and Serial.Poll will update the port settings changes in
>> the serial object settings for:
>> Baud Rate
>> Data Bits
>> Stop Bits
>> Parity
>> Handshake settings: (CTS/DTR/XON)
>>
>> Is that correct?
>
> No, I don't think so.  Serial.Poll is just the same thing that the
> event loop normally calls for you; you'd use it if you're stuck in a
> tight loop but still need to service the serial port.  But for  
> changing
> the settings you mention, I've always had to call Serial.Reset.
>

The reason i asked is the laguage reference entry for Serial.Poll says:

Causes the control's properties to update and causes the  
DataAvailable event to execute if any new data is available.

Which made me think it might set the ports's properties with values  
you set. I see i misread it


>> Does Reset clear the buffer or just leave what is there untouched?
>
> I don't know; I've never tried calling it when there may be data in  
> the
> buffer.  Resetting a serial port is a pretty drastic thing to do,
> pretty much equivalent to closing it and reopening it I think.  Use it
> when you're changing the serial port settings; use Poll (or nothing at
> all) when you just want to send or receive data.
>


Thanks,
- karen
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to