MDO3000 Programmer Manual.pdf - 第797页
Commands Listed in Alphabetical Order Examples *SRE 48 sets the bits in the SRER to b inary 001 10000. *SRE ? might return 32, showing that the bits in the SRER have the binary value of 00100000. *STB? (Query Only) *STB?…

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

Commands Listed in Alphabetical Order
NOTE. The TEKSe
cure command can take up to five minutes to complete. The
oscilloscope is inoperable during this p eriod.
Group
Miscellaneo
us
Syntax
TEKSecure
Examples
TEKSECURE initializes both waveform and setup memories.
This is a program example of how to generate an SRQ when
TEKSECURE
completes:
# Bit 0 of t he DESE (Device Event Status Enable Reg ister)
# enables OPC to be repo rted to t he SESR (Standard Event
# Status Register)
DESE 255
# Bit 0 of t he ESER (Event Status Enable Register)
# enables OPC to be summ arized in the ESB (Event St atus #
Bit) of the SBR (Status Byte Register)
*ESE 255
# Bit 5 of t he SRE ( Service Request Enable Register)
enables
# the generation of SRQ when the ESB bit of the SBR
becomes # TRUE
*SRE 32
TEKSECURE;*OPC
When the TEKSECURE operation has completed, the OPC bit of the SESR will be
TRUE and SRQ will have been generated.
TIMe
This command specifies the time that the oscilloscope displays.
Group
Miscellaneous
Syntax
TIMe <Q String>
TIMe?
Related Commands
DATE
2-768 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual