MDO3000 Programmer Manual.pdf - 第795页

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…

100%1 / 1158
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 conict) 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
Commands Listed in Alphabetical Order
Arguments
TERMinal speci
fies that a session startup message be sent to the socket, and a
command prompt is provided.
NONe disables
these features, allowing the server to be used for raw socket
transactions.
Examples
SOCKETServer:PROTOCol TERMinal sets the protocol to terminal, so that a
session startup message is sent to the socket, and a command prompt is provided.
SOCKETServer:PROTOCol? might return NONE, indicating that the protocol is
set to support raw socket connections.
*SRE
The *SRE (Service Request Enable) command specifies the bits in the Service
Request Enable Register. (See page 3-1, Registers.)
Group
Status and Error
Syntax
*SRE <N R1>
*SRE?
Related Commands
*CLS, DESE, *ESE, *ESR?, EVENT?, EVMsg?, FACtory, *STB?
Arguments
<NR1> is an integer whose values can be 0, 16, 32, or 48. These correspond to the
following *SRE bits:
0 service request is disabled
16 request service when the MAV (message available) bit (bit 4) of the SBR
(status byte register) is true
32 request service when the ESB (event status) bit (bit 5) of the SBR (status
byte register) is true
48 request service when either the MAV or ESB bits of the SBR (status
byte register) is true
Other argument values may provide unexpected results.
NOTE. The power-on default for SRER is 0 if * PSC is 1. If *PSC is 0, the SRER
maintains the previous power cycle value through the current power cycle.
2-766 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual