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. > 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. Best, - Joe -- Joe Strout -- [EMAIL PROTECTED] Verified Express, LLC "Making the Internet a Better Place" http://www.verex.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
