help-octave
[Top][All Lists]
Advanced

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

Re: Serial connection (realtime)


From: Juan Pablo Carbajal
Subject: Re: Serial connection (realtime)
Date: Wed, 1 Mar 2017 14:37:24 +0100

On Wed, Mar 1, 2017 at 2:24 PM, GuiCintraAlves
<address@hidden> wrote:
> I'm making the arduino connection using potentiometer (for testing) and I get
> random values ... can you tell me why?
>
> pkg load instrument-control
>
> s1 = serial("/dev/ttyACM0",9600)
> data = srl_read(s1,100)
> .............................................
> Serial Port Object
>     open:     1
>     port:     /dev/ttyACM0
>     baudrate: 9600
>     parity:   None
>     bytesize: 8
>     stopbits: 1
>     timeout:  -1
>
>
> data =
>
>  Columns 1 through 18:
>
>   13  10  53  53  50  13  10  53  53  49  13  10  53  53  50  13  10  53
>
>  Columns 19 through 36:
>
>   53  49  13  10  53  53  51  13  10  53  53  48  13  10  53  53  50  13
>
>  Columns 37 through 54:
>
>   10  53  53  49  13  10  53  53  49  13  10  53  53  49  13  10  53
>
>
>
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/Serial-connection-realtime-tp4682072p4682078.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave

what is the size of the datatype you are sending? you need to take
care of long ints properly. See code in previous mail.



reply via email to

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