[Top][All Lists]

[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

>> 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:
Sent from the Octave - General mailing list archive at

reply via email to

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