Page 1 of 1

Capturing data from a Serial Port

Posted: Thu Jan 30, 2014 4:31 am
by aircooled76
Hi Guys,

I am bringing in some Serial data from a scoreboard controller... and I am having trouble bringing it into LiveCode...

I read that the serial input is read from the COM port like reading a file...

I tried

Code: Select all

read from file "COM14" until empty
   put  it after field "SerialOutput"
But no luck... I have also had several LiveCode crashes while playing with the COM info... I have found some posts about Serial data in the forums... but no complete answer that helps me http://ftp.runrev.com/forums/viewtopic. ... 42&p=50853 for example.

Any help appreciated!

Re: Capturing data from a Serial Port

Posted: Thu Jan 30, 2014 1:26 pm
by dave_probertGA6e24
Hi,

Haven't tried this but I think the "COM14" you have should have a Colon at the end, ie. "COM14:"

Cheers,
Dave

Re: Capturing data from a Serial Port

Posted: Fri Jan 31, 2014 10:44 am
by aircooled76
Hi Guys...

Adding the ":" got me the data... I now need some kind of read loop as the application crashes if I try to bring in the whole feed at once...

Thank you!

Mike

Re: Capturing data from a Serial Port

Posted: Fri Jan 31, 2014 1:13 pm
by BvG
make sure to report crashes here: http://quality.runrev.com