Serial communication
Sjoerd Op 't Land
sjoerdoptland at mac.com
Sun Dec 2 15:06:01 EST 2001
Bill Vlahos wrote/ schreef:
> on openCard
> open file "KeyUSA28X91.1:"
> end openCard
>
> on idle
> set the serialControlString to "KeyUSA28X91.1"
> read from file "KeyUSA28X91.1:" for 1 line
> put it after field "Incoming"
> end idle
I don't know, but try some debugging:
on openCard
open file "KeyUSA28X91.1:"
answer "Opened the port. Result:" & return & the result
end openCard
on idle
set the serialControlString to "KeyUSA28X91.1"
-- guess the above line is incorrect, it has to be something like
set the serialcontrolstring to "BAUD=9400"
-- and that it should be set when you open the port
read from file "KeyUSA28X91.1:" for 1 line
put it after field "Incoming"
end idle
Hope this helps.
Regards, / Groeten,
Sjoerd
More information about the use-livecode
mailing list