MDO3000 Programmer Manual.pdf - 第794页
Commands Listed in A lphabetical Order The default sta te is enabled. (See page 1-1 1 , Setting Up Remote Communications Softwar e .) NOTE. If the socket s erver state is 0 (disabled) and this command is sent to enable t…

Commands Listed in Alphabetical Order
Syntax
SETUP<x>:DATE
?
Examples
SETUP4:DATE? might return SETUP4:DATE: 04–18–06 which is the setup
date for channel 4.
SETUP<x>:LABEL
This command specifies the setup label for the specified channel <x>, where
x can be 1 through 10.
Group
Save and Recall
Syntax
SETUP<x>:LABEL <Qstring>
Arguments
<Qstring> is an alphanumeric string of characters, enclosed in quotes, that
defines the label text for SETUP<x>. The length of the string is limited to 30
characters.
Examples
SETUP:LABEL? might return SETUP1: LABEL: TEST 2 which is the label setup
for channel 1.
SETUP<x>:TIME? (Query Only)
Returns the time when the oscilloscope setup was saved for the specified channel
<x>, where x can be 1 through 10.
Group
Save and Recall
Syntax
SETUP<x>:TIME?
Examples
SETUP2:TIME? might return “SETUP2:T IME: 15:24:0 7 which is the setup
time for channel 2.
SOCKETServer:ENAble
This command enables or disables the socket server which supports a Telnet or
other TCP/IP socket connection to send commands and queries to the instrument.
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-763

Commands Listed in Alphabetical Order
The default sta
te is enabled. (See page 1-11, Setting Up Remote Communications
Software.)
NOTE. If the socket server state is 0 (disabled) and this command is sent to enable
the socket server when the port is in use by another service, then the error event
code 221 (settings conflict) is posted to the event queue, and the socket server
remains d isabled. In this case, select a different port number and attempt to
enable the s
ocket server again.
Group
Miscellaneous
Syntax
SOCKETServer:ENAble {ON|OFF|<NR1>}
SOCKETServer:ENAble?
Related Commands
SOCKETServer:PROTOCol, SOCKETServer:PORT
Arguments
ON enables the socket server.
OFF disables the socket server.
<NR1> = 0 disables the socket server; any other value turns it on.
Examples
SOCKETServer:ENAble ON enables the socket server.
SOCKETServer:ENAble? might return 1, indicating that the socket server is
enabled (the default).
SOCKETServer:PORT
This command sets the TCPIP port for the socket server connection. If the socket
server is enabled and the port specified is in use by another service, then the error
event code 221 (Settings conflict) is posted to the event queue and the socket
server remains in its current state (i.e. enabled/disabled and port address remain
unchanged). The default port is 4000.
Group
Miscellaneous
Syntax
SOCKETServer:PORT <NR1>
SOCKETServer:PORT?
2-764 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual

Commands Listed in Alphabetical Order
Related Commands
SOCKETServer:
ENAble,
SOCKETServer:PROTOCol
Arguments
<NR1> is an integer that specifies the port for the socket server connection.
Examples
SOCKETServer:PORT 1080 sets the socket server port to port 1080.
SOCKETServer:PORT? might return 4000, indicating that port 4000 is currently
the TCPIP port for the socket server connection.
SOCKETServer:PROTOCol
This command sets the protocol for the socket server. When set to TERMin al,a
session startup message is sent to the socket, and a command prompt is p
rovided.
When set to
NONe, these features are disabled, allowing the server to be used for
raw socket transactions, such as with a VISA socket connection. The default
setting is
NONe.(Seepage1-11,Setting Up Remote Communications Software.)
Terminal protocol supports the following commands and protocol:
Tektronix Instrument Control Terminal Session Control commands:
Tektronix Instrument Control Terminal Session Control comman
ds:
!t <timeout>: set the response timeout in milliseconds.
!d : send device clear to the instrument.
!r : read response from instrument.
!h : print this usage info.
Commands containing a ? are treated as queries and responses are read
automatically.
Note: Backspace key and delete key do not work when sent to the oscilloscope.
It is best to use a terminal that supports line editing before sending the line to
the oscilloscope.
Group
Miscellaneous
Syntax
SOCKETServer:PROTOCol {TERMinal|NONe}
SOCKETServer:PROTOCol?
Related Commands
SOCKETServer:PORT,
SOCKETServer:ENAble
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-765