Serial port stuff

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ErikSchwartz
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7
Joined: Thu May 13, 2010 7:14 pm

Serial port stuff

Post by ErikSchwartz » Thu May 13, 2010 7:21 pm

I'm having a hard time trying to access data in Rev coming in on the serial port. I'm running studio in OSX. I'm using a keyspan adapter. I've done this in Macrmind Director using externals (and in hypercard and supercard a long time ago)

Are there a set of working handlers someone might share that will help me learn this? The documentation is pretty thin when it comes to the COM ports. I feel like I'm doing something dumb and obvious but I'm just not seeing it yet.

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: Serial port stuff

Post by WaltBrown » Fri May 14, 2010 7:12 am

Erik,
The "Read From File" entry in the Dictionary indicates:

"If you specify the name of a serial port on Mac OS or Windows systems, Revolution reads from the specified port. The names
of serial ports end in a colon (:).".

Might be a place to start - I haven't tried it.
Walt
Walt Brown
Omnis traductor traditor

ErikSchwartz
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7
Joined: Thu May 13, 2010 7:14 pm

Re: Serial port stuff

Post by ErikSchwartz » Fri May 14, 2010 6:10 pm

I think I am figuring it out. Made good progress last night and seem to be over the hump.

Erik

Post Reply