[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arduino to octave
From: |
Andreas Weber |
Subject: |
Re: Arduino to octave |
Date: |
Mon, 10 Oct 2016 13:00:59 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0 |
Hi Giorgio,
Am 09.10.2016 um 17:57 schrieb address@hidden:
> I've recently been working on data acquisition from an arduino by the
> serial channel and the Instrument Control package.
> It was not so easy: it seemed that some data were missed from time to
> time, but I've never understood why. I now perform some error checking and
> sometimes I lower the baud rate.
I've used serial communication between AVRs (for example ATMega32) and
GNU Octave with baudrates of 500 kbaud without any problems. Do you use
interrupt driven serial out on the AVR side? Is the output buffer big
enough? For reading the data in GNU Octave I suggest reading bigger
chunks at once (perhaps 500 Bytes) and then split it, put the rest back
in the input buffer and draw then.
-- Andy