This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LM5 and RS-232 problem
#1
I have established successfully a connection with a security alarm but I can’t read the information that it sends as a whole word but in pieces.
Sometimes one by one or two letters and rarely I have the whole word. The command for <<read>> which I use is
respond = port:read(3,0)
log(respond)
I have also used other combinations without any result too. Do you have any idea what is wrong. 
Thanks in advance.
Reply
#2
Hi
Probably you have to separate the input somehow, check in manual. Look on this
https://forum.logicmachine.net/showthrea...24#pid4224
BR
------------------------------
Ctrl+F5
Reply
#3
Hi,

You probably need the function readline, see this topic https://forum.logicmachine.net/showthrea...78#pid1978

BR,

Erwin
Reply
#4
You guys are the best ! Thank you very much for the fast and correct respond !
Reply


Forum Jump: