help-octave
[Top][All Lists]
Advanced

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

Instrument-control Question


From: Thomas D. Dean
Subject: Instrument-control Question
Date: Sun, 27 Aug 2017 19:56:11 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

instrument-control 0.3.0 /home/tomdean/octave/instrument-control-0.3.0

octave:105> s1 = serial("/dev/ttyUSB0", 19200, 10)
s1 =

  Serial Port Object
    open:     1
    port:     /dev/ttyUSB0
    baudrate: 19200
    parity:   None
    bytesize: 8
    stopbits: 1
    timeout:  10


octave:106>  n=srl_write(s1, "ID?"); disp(n); [data,count]=srl_read(s1,128)
 3
data = [](1x0)
count = 0


In gtkterm, this works.  The data is returned immediately.


id?
ID TEK/TDS 2014,CF:91.1CT,FV:v4.12 TDS2CM:CMV:v1.04


What am I doing wrong???

Tom Dean



reply via email to

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