readind a serial port

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
GPJMA
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 38
Joined: Sun Jan 01, 2012 11:48 pm

readind a serial port

Post by GPJMA » Tue Jun 04, 2013 1:46 pm

Hi All.
I want to take a VB windows program and convert it to Live Code.
The software monitors equipment via RS485 wich I convert to RS232. This is the data I need to see.
This is a program that is in use but needs updating and will give me a great project for me to get my Live Code teeth into.
I see a few Arduino Q&A's out there but I am not using that gear and just want to open the port and read the data into a buffer. After that its all down hill (I think)
It will run on Windows 8 mostly and later I want to get the data accros to iOS and Android.
Any help would be most welcome.
Thanks.....

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: readind a serial port

Post by mwieder » Thu Jun 06, 2013 8:36 pm

Don't know a thing about Windows 8, but

check out the dictionary for serialControlString, COMn, open file, write to file, read from file commands.
After setting up the serial port (or just using its default configuration) you read from and write to it like a file.

GPJMA
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 38
Joined: Sun Jan 01, 2012 11:48 pm

Re: readind a serial port

Post by GPJMA » Mon Jun 10, 2013 5:25 am

Hi
Thanks for the help.
Greatly appreciated.
GPJMA

Post Reply