help-octave
[Top][All Lists]
Advanced

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

RE: Instrument-control Question


From: JohnD
Subject: RE: Instrument-control Question
Date: Mon, 28 Aug 2017 10:16:04 -0400

> Message: 4
> Date: Sun, 27 Aug 2017 19:56:11 -0700
> From: "Thomas D. Dean" <address@hidden>
> To: Octave Help <address@hidden>
> Subject: Instrument-control Question
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> 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
> 

Try a bigger timeout and see if that helps.
You may need to also verify control lines that may be used in gtkterm






reply via email to

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