serial send OK receive not ok
Dar Scott
dsc at swcp.com
Thu Feb 10 22:34:00 EST 2005
On Feb 10, 2005, at 5:07 PM, Thomas McGrath III wrote:
> on mouseUp
> if the hilite of btn "Port open" <> true then
> send mouseUp to btn "Open Serial Port"
> end if
> put word 1 of the selectedText of btn "SendEOL" into eol
> if eol = "CR" then put numToChar(13) into eol
> else if eol = "LF" then put LF into eol
> else put CRLF into eol
> put the label of btn "Port" into thePort
> put fld "sendField" into theData
> if the hilite of btn "OS X" then
> write theData & eol to driver thePort
> else
> write theData & eol to file thePort
> end if
> put "-> " & theData & return after fld "recField"
wait 1 seconds -- just for now
> read from driver thePort until eof -- EMPTY IN 1 SECONDS
> PUT IT -- my test to see if it has anything in it - it does
> not?????????
> put the result & return after fld "recField"
> end mouseUp
I know some folks have success with OS X serial, but I find it bug
ridden.
Dar
--
**********************************************
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**********************************************
More information about the use-livecode
mailing list