help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serial port communication


From: eva198
Subject: Re: Serial port communication
Date: Sat, 28 Feb 2015 06:54:03 -0800 (PST)

> Timeout is set to -1, which means blocking mode. srl_read(s1,8) returns
> once it reads 8 bytes from serial port.

> Set timeout between 0 and 255 (0..25.5 seconds) before read if you don't
> want blocking mode.

> e.g.
>  set(s1, 'timeout', 100);  wait max 1 second


Thank you for that. It does read from the port now, however I get an empty
array:

>> srl_read(s1, 8)
ans = [](1x0)

but my device should be sending a random number every second. Should I
change something else as well?




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Serial-port-communication-tp4668884p4668911.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]