Serial Communications

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
cmenge
Posts: 11
Joined: Thu May 18, 2006 4:18 pm

Serial Communications

Post by cmenge »

Hey Guys,

I can't seem to get serial communications to work properly, does any one have a short sample?

I've been working with:

set the serialControlString
open file "COM1:"
write "data" to file

Any thoguhts?

Cheers!
DarScott
Posts: 227
Joined: Fri Jul 28, 2006 12:23 am
Contact:

Re: Serial Communications

Post by DarScott »

cmenge wrote:set the serialControlString
open file "COM1:"
write "data" to file
I assume that is 'write "data" to file "COM1:"' and that you 'close file "COM1:"'.

Looks good. Try looking at 'the result' right after the open and the write. Maybe COM1: is in use by something else.

If you are looking at a serial gadget with LEDs to show the levels, try longer data. You should also see handshake lines flip.
Post Reply