help-octave
[Top][All Lists]
Advanced

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

Re: Serial connection (realtime)


From: GuiCintraAlves
Subject: Re: Serial connection (realtime)
Date: Tue, 7 Mar 2017 03:44:21 -0800 (PST)

The conversion worked. But the code, no. After all what is the real purpose
of this code? Write the data ?? I cony analyze more than one example signal
detect 2 different potentiometers on the same serial?

pkg load instrument-control

 s1 = serial("/dev/ttyACM0",9600)
 data = srl_read(s1,100);
 s1 = char(data);
 val = str2num(s1)

..............................................

s1 =

  Serial Port Object
    open:     1
    port:     /dev/ttyACM0
    baudrate: 9600
    parity:   None
    bytesize: 8
    stopbits: 1
    timeout:  -1


val =

     5
   558
   558
   558
   558
   558
   558
   558
..............................................



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



reply via email to

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