MDO3000 Programmer Manual.pdf - 第798页
Commands Listed in A lphabetical Order NOTE. The TEKSe cur e command can take up to fi ve minutes to complete. The oscilloscope is inopera ble during this p eriod. Group Miscellaneo us Syntax TEKSecure Examples TEKSECURE …

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

Commands Listed in Alphabetical Order
Arguments
<QString> is a t
ime in the form "hh:mm:ss" where hh refers to a two-digit hour
number, mm refers to a two-digit minute number from 00 to 59, and ss refers to a
two-digit second number from 00 to 59.
Examples
TIME "14:00:00" sets the time to exactly 2:00 p.m.
TIME? might return :TIME "14:05:17” indicating the current time is set to 2:05
p.m. and 17 seconds.
TOTaluptime? (Query Only)
This query returns the total number of hours that the oscilloscope has been
powered on since the nonvolatile memory was last programmed (usually sincethe
initial manufacturing process).
Group
Miscellaneous
Syntax
TOTaluptime?
*TRG (No Query Form)
Performs a group execute trigger on commands defined by *DDT.
Group
Miscellaneous
Syntax
*TRG
Related Commands
*DDT
Examples
*TRG immediately executes all commands that have been defined by *DDT.
TRIGger (No Query Form)
Forces a trigger event to occur.
Group
Trigger
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-769