MDO3000 Programmer Manual.pdf - 第158页

Commands Listed in A lphabetical Order AFG:ARB:EMEM: GEN SQU 1000 will generate a 10 00 point square wave . AFG:ARBitrary:EMEM:NUMPoints? (Query Only) Returns the n umber of points in the AFB arb itrary waveform edit mem…

100%1 / 1158
Commands Listed in Alphabetical Order
Examples
AFG:ARB:EMEM:
FUNC?
might return SINE, indicating that the currently selected
arbitrary waveform function is Sine.
AFG:ARBitrary:EMEM:GENerate (No Query Form)
This command generates the arbitrary waveform function specified by the
enumeration argument.
The NR1 argument is optional; it canbeusedtospecifythenumber
of points; if it is used, it also sets the value that will be used by
AFG:ARBitrary:EMEM:NUMPoints? until the instrument is reset via
TEKSecur
e.
In the absence of the NR1 argument, the number of points used with the function
is that n
umber returned by the AFG:ARBitrary:EMEM:NUMPoints? query.
To query the arbitrary waveform function set by this command, use
AFG:AR
Bitrary:EMEM:FUNCtion?
(This value is not reset by default setup or by power cycle).
Conditions
MDO3000 series with option MDO3AFG installed and MDO4000C series with
option MDO4AFG installed only.
Group
ARB
Syntax
AFG:ARBitrary:EMEM:GENerate
{SINE|SQUare|PULSe|RAMP|NOISe[,NR1]}
AFG:ARBitrary:EMEM:GENerate?
Arguments
<NR1> (Optional) Specifies the number of points for the arbitrary waveform
function. The number of points, if specified, must be >= 2 and <= 131072. The
default number of points is 100.
SINE generates the Sine AFG function.
SQUare generates the Square AFG function.
PULSe generates the Pulse AFG function.
RAMP generates the Ramp AFG function.
NOISe generates the Noise AFG function.
Examples
AFG:ARB:EMEM:GEN SQU will generate a 100 point square wave if the previous
setting of
AFG:ARB:EMEM:NUMP is 100.
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-127
Commands Listed in Alphabetical Order
AFG:ARB:EMEM:
GEN SQU 1000
will generate a 1000 point square wave.
AFG:ARBitrary:EMEM:NUMPoints? (Query Only)
Returns the n
umber of points in the AFB arbitrary waveform edit memory.
This value will be used with the AFG:ARBitrary:EMEM:GENerate
command in the event that the number of points is not specified. See the
AFG:ARBitrary:EMEM:GENerate command description for more information.
Conditions
MDO3000 series with option MDO3AFG installed and MDO4000C series with
option MDO4AFG installed only.
Group
ARB
Syntax
AFG:ARBitrary:EMEM:NUMPoints?
Examples
AFG:ARB:EMEM:NUMP? might return 100, indicating that there are 100 points in
the AFB arbitrary waveform edit memory being used to generate the function.
AFG:ARBitrary:EMEM:POINTS
Specifies which points to load into the AFG arbitrary waveform edit memory.
The point data to be loaded may be specified as an IEEE488.2 binary block
with 4-byte floating point data values, or as a comma-separated list of NR2
or NR3 data values. The data values must be in the range of -1.0 to 1.0. The
AFG.ARBitrary.EMEM.POINTS.BYTEORDer command is used when the data
is binary block format. The minimum number of points is 2 and maximum is
131072.
Upon successful transfer of the data points, the AFG:ARBitrary:EMEM:
NUMPoints? query will return the number of points loaded into arbitrary
waveform edit memory and the AFG:ARBitrary:EMEM:FUNCtion? query will
return
USER. Note that the output, if turned on, will not change unless or until the
AFG function is set to
ARBitrary using the AFG:FUNCtion command.
Point values may be coerced to the nearest valid step size.
The query form returns the points stored in the AFG arbitrary waveform edit
memory in the format specified by the AFG:ARBitrary:EMEM:POINTS:ENCdg
command and, for binary encoding, the byte order specified by the
AFG.ARBitrary.EMEM.POINTS.BYTEORDer command.
Refer to the AFG:ARBitrary:EMEM:POINTS:ENCdg command description
for more information.
2-128 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual
Commands Listed in Alphabetical Order
NOTE. If a w avef
orm does not specify points that extend to values of -1.0 and
1.0, then the waveform will not utilize the full available amplitude range. The
resulting amplitude will be the fraction of t he range specied by the points. For
example, "AFG:ARBitrary:EMEM:POINTS 0.5,-0.5" with 1.0Vpp amplitude will
result in a 500mVpp Square waveform.
Conditions
MDO3000 series with option MDO3AFG installed and MDO4000C series with
option MDO4AFG installed only.
Group
ARB
Syntax
AFG:ARBitrary:EMEM:POINTS <BlockWfmInDTO> |<NrfWfm InDTO>
AFG:ARBitrary:EMEM:POINTS?
Arguments
BlockWfmInDTO an IEEE488.2 binary block with 4-byte floating point data
values
NrfWfmInDTO a comma-separated list of NR2 or NR3 data values
Returns
The query form returns the points data that is stored in the AFG
arbitrary waveform edit memory in the fo
rmat specified by the
AFG:ARBitrary:EMEM:POINTS:ENCdg command (either ASCII or binary).
Examples
AFG:ARB:EMEM:POINTS
-0.2,-0.1,0.0,0.1,0.2,0.3,0.2,0.1,0.0,-0.1
specifies 10 data point
values to be loaded into edit memory.
AFG.ARBitrary.EMEM.POINTS.BYTEORDer
This command specifies the byte order for the AFG:ARBitrary:EMEM:POINTS?
query when the AFG:ARBitrary:EMEM:POINTS:ENCdg is set to BINary
and when binary block data is sent for the AFG:ARBitrary:EMEM:POINTS
command. LSB - Least significant byte first (little endian) MSB - Most significant
byte first (big endian) The default is LSB. This setting is non-volatile and is reset
by default setup or TekSecure.
Refer to the AFG:ARBitrary:EMEM:POINTS command description for more
information.
Conditions
MDO3000 series with option MDO3AFG installed and MDO4000C series with
option MDO4AFG installed only.
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-129