News from Mac OSX - Mysterious Serial Port

Dar Scott dsc at swcp.com
Thu Aug 21 22:06:01 EDT 2003


There is something I didn't catch.

On Thursday, August 21, 2003, at 01:35 PM, R. Hillen wrote:

>   write fld SendField  & linefeed & return to driver drivername
   wait 2 seconds
>   close driver drivername

The write is nonblocking.  It will return right away and the actual 
transmission will take place as the script continues.  Without the 
change the close could be prematurely stopping transmission.  The close 
might even do more.

Don't close until the write is finished transmitting.  This is usually 
not a problem in equipment dialog because you wait for the response.  
If you transmit without a response, then you might need to put a delay 
in somewhere, maybe even a smart one.

Dar Scott




More information about the use-livecode mailing list