MDO3000 Programmer Manual.pdf - 第796页
Commands Listed in A lphabetical Order Arguments TERMinal speci fies tha t a session startup message be sent to the s ocket, a nd a command prompt is provided. NONe disab les these features, allowing the server to be used…

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

Commands Listed in Alphabetical Order
Examples
*SRE 48 sets the
bits in the SRER to binary 00110000.
*SRE? might return 32, showing that the bits in the SRER have the binary value
of 00100000.
*STB? (Query Only)
*STB? (Read Status Byte) returns the contents of the Status Byte Register (SBR)
using the Ma
ster Summary Status (MSS) bit. (See page 3-1, Registers.)
Group
Status and Error
Syntax
*STB?
Related Commands
*CLS, DESE, *ESE, *ESR?, EVENT?, EVMsg?, FACtory, *SRE
Returns
<NR1>
Examples
*STB? might return 96, showing that the SBR contains the binary value 01100000.
TEKSecure (No Query Form)
This command initializes both waveform and setup memories, overwriting any
previously stored data. These are the WFMInpre?, WFMOutpre?,andDATa
command values after the
TEKSecure operation.
:WFMOUTPRE:BYT_NR 1 :WFMOUTPRE:BIT _NR 8 :WF MOUTPRE:ENCDG
BIN :WF MOUTPRE:BN_FMT RI :WFMOU TPRE:BYT_OR MSB
:WFMOUTPRE:WFID "Ch1, DC coupling, 100.0mV/div,
4.000us/div, 10000 points, Sample mode" :WFMOUTPRE:NR_PT
10000 : WFMOUTPRE:PT_FMT Y :WFMO UTPRE:XUNIT "s"
:WFMOUTPRE:XINCR 4.0000E-9 :WFMOUT PRE:XZERO -20.0000E-6
:WFMOUTPRE:PT_OFF 0 :WFMOUTPRE:YUN IT "V" :W FMOUTPRE:YMULT
4.0000E-3 :WFMOUTPRE:Y OFF 0.0000 :WFMOUTPRE:YZE RO 0.0000
:WFMINPRE:BYT_NR 1 :WFMINPRE:BIT_N R 8 :WFMI NPRE:ENCDG
BIN :WF MINPRE:BN_FMT RI :WFMINP RE:BYT_OR MSB
:WFMINPRE:NR_PT 10000 :WFMINPRE:PT _FMT Y :W FMINPRE:XUNIT
"s" :WF MINPRE:XINCR 4.0000E-9 : WFMINPRE:XZERO 0.0000
:WFMINPRE:PT_OFF 0 :WFMINPRE:YUNIT "V" :WFMINPRE:YMULT
4.0000E-3 :WFMINPRE:YO FF 0.0000 :WFMINPRE:YZERO 0.0000
DATA:DESTINATION REF1 DATA:ENCDG RIBINARY DATA:SOURCE CH1
DATA:START 1 DATA:STOP 10000 DATA:WIDTH 1
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-767