|
From: | Thomas D. Dean |
Subject: | Re: Aw: Instrument-control Question |
Date: | Mon, 28 Aug 2017 13:14:15 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 08/28/2017 08:46 AM, Stefan Mahr wrote:
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.04You don't need to press <enter> in gtkterm to get the response? Most serial controlled instruments require newline to accept command: srl_write(s1, "ID?\n")
Actually, what works best is "cmd\r\n" The TEK TDS-2014 is set to RS-232 EOL, not CR-EOL. Strange
Tom Dean
[Prev in Thread] | Current Thread | [Next in Thread] |