data
¶
The data commands module.
These commands are used in the following models: DPO4K, DPO4KB, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO4K, MSO4KB
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.
Please report an issue if one is found.
Commands and Queries
- DATa {INIT|SNAp}
- DATa:DESTination REF<x>
- DATa:DESTination?
- DATa:ENCdg {ASCIi|FAStest|RIBinary|RPBinary|SRIbinary|SRPbinary|FPbinary|SFPbinary}
- DATa:ENCdg?
- DATa:SOUrce {CH<x>|MATH|REF<x>|D<x>|DIGital|RF_AMPlitude|RF_FREQuency|RF_PHASe|RF_NORMal|RF_AVErage|RF_MAXHold|RF_MINHold}
- DATa:SOUrce?
- DATa:STARt <NR1>
- DATa:STARt?
- DATa:STOP <NR1>
- DATa:STOP?
- DATa:WIDth <NR1>
- DATa:WIDth?
- DATa?
Data
¶
Bases: SCPICmdWrite, SCPICmdRead
The DATa command.
Description
- This command sets or queries the format and location of the waveform data that is transferred with the CURVE command.
Usage
- Using the
.query()method will send theDATa?query. - Using the
.verify(value)method will send theDATa?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa valuecommand.
SCPI Syntax
- DATa {INIT|SNAp}
- DATa?
Info
INITinitializes the waveform data parameters to their factory defaults except forDATa:STOP, which isset to the current acquisition record length.SNApSetsDATa:STARtandDATa:STOPto match the current waveform cursor positions of WAVEVIEW1 CURSOR1 if these waveform cursors are currently on. If these waveform cursors are not on when theDATa SNApcommand is sent, it is silently ignored andDATa:STARtand:STOPremain unchanged.
Properties
.destination: TheDATa:DESTinationcommand..encdg: TheDATa:ENCdgcommand..source: TheDATa:SOUrcecommand..start: TheDATa:STARtcommand..stop: TheDATa:STOPcommand..width: TheDATa:WIDthcommand.
destination
property
¶
destination: DataDestination
Return the DATa:DESTination command.
Description
- This command specifies the reference memory location (REF1-4) for storing waveform data transferred into the oscilloscope using the CURVE command.
Usage
- Using the
.query()method will send theDATa:DESTination?query. - Using the
.verify(value)method will send theDATa:DESTination?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:DESTination valuecommand.
SCPI Syntax
- DATa:DESTination REF<x>
- DATa:DESTination?
Info
REF<x>is the reference location where the waveform will be stored.
encdg
property
¶
encdg: DataEncdg
Return the DATa:ENCdg command.
Description
- This command specifies the encoding format for outgoing waveform data. This command is
equivalent to setting
WFMOUTPRE:ENCDG,WFMOUTPRE:BN_FMT, andWFMOUTPRE:BYT_OR. Setting theDATa:ENGdgvalue causes the corresponding WFMOutpre values to be updated.
Usage
- Using the
.query()method will send theDATa:ENCdg?query. - Using the
.verify(value)method will send theDATa:ENCdg?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:ENCdg valuecommand.
SCPI Syntax
- DATa:ENCdg {ASCIi|FAStest|RIBinary|RPBinary|SRIbinary|SRPbinary|FPbinary|SFPbinary}
- DATa:ENCdg?
Info
ASCIispecifies to use ASCII encoding for the waveform data queried using the CURVe? query. Data values are returned as signed decimal integers for analog channel and RF time domain data, 4-byte floating point values for RF frequency domain data, or hexadecimal values for Digital Collection data with 4 or 8 bytes per point. The maximum number of ASCII data points that can be queried using the CURVe? query is 1 million points. If more than 1 million points are desired, you must use one of the binary encodings. If ASCII is the value, thenBN_FmtandBYT_Orare ignored.FAStestspecifies the encoding which results in the fastest waveform data transfer rate. This sets the following:WFMOutpre:ENCdg BINary,WFMOutpre:BIN_Fmt RIandWFMOutpre:BYT_Or MSB.RIBinaryspecifies the signed integer data point format, with the most significant byte transferred first.DATa:WIDTHis set to 1, the range is from -128 through 127. WhenDATa:WIDTHis 2, the range is from -32,768 through 32,768. Center screen is 0 (zero). The upper limit is the top of the screen and the lower limit is the bottom of the screen. The default encoding is RIBINARY. This sets the following:WFMOutpre:ENCdg BINary,WFMOutpre:BN_Fmt RIandWFMOutpre:BYT_Or MSB.RPBinaryspecifies the positive integer data-point representation, with the most significant byte transferred first.BYT_Nris 1, the range of data values is 0 through 255. WhenBYT_Nris 2, the range of data values is 0 to 65,535. The center of the screen is 127 for 1-byte data and is 32768 for 2-byte data. The upper limit is the top of the screen and the lower limit is the bottom of the screen. This sets the following::WFMOutpre:ENCdg BINary,:WFMOutpre:BN_Fmt RPandWFMOutpre:BYT_Or MSB.SRIbinaryspecifies the signed integer format. It is the same as RIBinary except that the byte order is swapped, meaning that the least significant byte is transferred first. This sets the following:WFMOutpre:ENCdg BINary,WFMOutpre:BIN_Fmt RIandWFMOutpre:BYT_Or LSB.SRPbinaryspecifies the positive integer format. It is the same as RPBinary except that the byte order is swapped, meaning that the least significant byte is transferred first. This sets the following:WFMOutpre:ENCdg BINary,WFMOutpre:BN_Fmt RPandWFMOutpre:BYT_Or LSB.FPbinaryspecifies floating point binary. It automatically forcesDATa:WIDTHto 4 andBYT_ORto MSB (most significant byte transmitted first).SFPbinaryspecifies floating point binary. It automatically forcesDATa:WIDTHto 4 andBYT_ORto LSB (least significant byte transmitted first).
source
property
¶
source: DataSource
Return the DATa:SOUrce command.
Description
- This command specifies the source waveform to be transferred from the oscilloscope
using the CURVe? query. The valid waveform sources are CH1-CH4, MATH, REF1-REF4,
D0-D15, DIGital,
RF_AMPlitude,RF_FREQuency,RF_PHASe,RF_NORMal,RF_AVErage,RF_MAXHold, andRF_MINHold. SettingDATa:SOUrceautomatically constrains the following to valid values for the specified source waveform:WFMOutpre:BYT_Nr,WFMOutpre:BIT_NrandWFMOutpre:BN_Fmt.
Usage
- Using the
.query()method will send theDATa:SOUrce?query. - Using the
.verify(value)method will send theDATa:SOUrce?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:SOUrce valuecommand.
SCPI Syntax
- DATa:SOUrce {CH<x>|MATH|REF<x>|D<x>|DIGital|RF_AMPlitude|RF_FREQuency|RF_PHASe|RF_NORMal|RF_AVErage|RF_MAXHold|RF_MINHold}
- DATa:SOUrce?
Info
CH<x>specifies which analog channel waveform data will be transferred from the oscilloscope to the controller, channels 1 through 4.MATHspecifies that the Math waveform data will be transferred from the oscilloscope to the controller.REF<x>specifies which Reference waveform data will be transferred from the oscilloscope to the controller.D<x>specifies which digital channel waveform data will be transferred from the oscilloscope to the controller. (Requires installation of option 3-MSO.).DIGitalspecifies that the Digital Collection waveform data will be transferred from the oscilloscope to the controller. (Requires installation of option 3-MSO.).RF_NORMalspecify that the RF data will be transferred from the oscilloscope to the controller.RF_AVEragespecify that the RF data will be transferred from the oscilloscope to the controller.RF_MAXHoldspecify that the RF data will be transferred from the oscilloscope to the controller.RF_MINHoldspecify that the RF data will be transferred from the oscilloscope to the controller.
start
property
¶
start: DataStart
Return the DATa:STARt command.
Description
- This command sets or queries the starting data point for waveform transfer. This command allows for the transfer of partial waveforms to and from the instrument.
Usage
- Using the
.query()method will send theDATa:STARt?query. - Using the
.verify(value)method will send theDATa:STARt?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:STARt valuecommand.
SCPI Syntax
- DATa:STARt <NR1>
- DATa:STARt?
Info
<NR1>is the first data point that will be transferred, which ranges from 1 to the record length. Data will be transferred fromto DATa:STOPor the record length, whichever is less. Ifis greater than the record length, the last data point in the record is transferred. DATa:STARtandDATa:STOPare order independent. WhenDATa:STOPis greater thanDATa:STARt, the values will be swapped internally for the CURVE? query.
stop
property
¶
stop: DataStop
Return the DATa:STOP command.
Description
- This command sets or queries the last data point that will be transferred when using
the CURVE? query. This command allows for the transfer of partial waveforms to the
controller. Changes to the record length value are not automatically reflected in the
data:stopvalue. As record length is varied, theDATa:STOPvalue must be explicitly changed to ensure the entire record is transmitted. In other words, curve results will not automatically and correctly reflect increases in record length if the distance fromDATa:STARttoDATa:STOPstays smaller than the increased record length.
Usage
- Using the
.query()method will send theDATa:STOP?query. - Using the
.verify(value)method will send theDATa:STOP?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:STOP valuecommand.
SCPI Syntax
- DATa:STOP <NR1>
- DATa:STOP?
Info
<NR1>is the last data point that will be transferred, which ranges from 1 to the record length. Ifis greater than the record length, then data will be transferred up to the record length. If both DATa:STARtandDATa:STOPare greater than the record length, the last data point in the record is returned.
width
property
¶
width: DataWidth
Return the DATa:WIDth command.
Description
- This command specifies the width, in bytes per point, for waveform data transferred
from the instrument via the CURVe? query. (This command is synonymous with
WFMOutpre:BYT_Nr.)
Usage
- Using the
.query()method will send theDATa:WIDth?query. - Using the
.verify(value)method will send theDATa:WIDth?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:WIDth valuecommand.
SCPI Syntax
- DATa:WIDth <NR1>
- DATa:WIDth?
Info
<NR1>is an integer that indicates the number of bytes per point for the outgoing waveform data when queried using the CURVe? command. For analog channels, NR1 can be 1 or 2.
DataDestination
¶
Bases: SCPICmdWrite, SCPICmdRead
The DATa:DESTination command.
Description
- This command specifies the reference memory location (REF1-4) for storing waveform data transferred into the oscilloscope using the CURVE command.
Usage
- Using the
.query()method will send theDATa:DESTination?query. - Using the
.verify(value)method will send theDATa:DESTination?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:DESTination valuecommand.
SCPI Syntax
- DATa:DESTination REF<x>
- DATa:DESTination?
Info
REF<x>is the reference location where the waveform will be stored.
DataEncdg
¶
Bases: SCPICmdWrite, SCPICmdRead
The DATa:ENCdg command.
Description
- This command specifies the encoding format for outgoing waveform data. This command is
equivalent to setting
WFMOUTPRE:ENCDG,WFMOUTPRE:BN_FMT, andWFMOUTPRE:BYT_OR. Setting theDATa:ENGdgvalue causes the corresponding WFMOutpre values to be updated.
Usage
- Using the
.query()method will send theDATa:ENCdg?query. - Using the
.verify(value)method will send theDATa:ENCdg?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:ENCdg valuecommand.
SCPI Syntax
- DATa:ENCdg {ASCIi|FAStest|RIBinary|RPBinary|SRIbinary|SRPbinary|FPbinary|SFPbinary}
- DATa:ENCdg?
Info
ASCIispecifies to use ASCII encoding for the waveform data queried using the CURVe? query. Data values are returned as signed decimal integers for analog channel and RF time domain data, 4-byte floating point values for RF frequency domain data, or hexadecimal values for Digital Collection data with 4 or 8 bytes per point. The maximum number of ASCII data points that can be queried using the CURVe? query is 1 million points. If more than 1 million points are desired, you must use one of the binary encodings. If ASCII is the value, thenBN_FmtandBYT_Orare ignored.FAStestspecifies the encoding which results in the fastest waveform data transfer rate. This sets the following:WFMOutpre:ENCdg BINary,WFMOutpre:BIN_Fmt RIandWFMOutpre:BYT_Or MSB.RIBinaryspecifies the signed integer data point format, with the most significant byte transferred first.DATa:WIDTHis set to 1, the range is from -128 through 127. WhenDATa:WIDTHis 2, the range is from -32,768 through 32,768. Center screen is 0 (zero). The upper limit is the top of the screen and the lower limit is the bottom of the screen. The default encoding is RIBINARY. This sets the following:WFMOutpre:ENCdg BINary,WFMOutpre:BN_Fmt RIandWFMOutpre:BYT_Or MSB.RPBinaryspecifies the positive integer data-point representation, with the most significant byte transferred first.BYT_Nris 1, the range of data values is 0 through 255. WhenBYT_Nris 2, the range of data values is 0 to 65,535. The center of the screen is 127 for 1-byte data and is 32768 for 2-byte data. The upper limit is the top of the screen and the lower limit is the bottom of the screen. This sets the following::WFMOutpre:ENCdg BINary,:WFMOutpre:BN_Fmt RPandWFMOutpre:BYT_Or MSB.SRIbinaryspecifies the signed integer format. It is the same as RIBinary except that the byte order is swapped, meaning that the least significant byte is transferred first. This sets the following:WFMOutpre:ENCdg BINary,WFMOutpre:BIN_Fmt RIandWFMOutpre:BYT_Or LSB.SRPbinaryspecifies the positive integer format. It is the same as RPBinary except that the byte order is swapped, meaning that the least significant byte is transferred first. This sets the following:WFMOutpre:ENCdg BINary,WFMOutpre:BN_Fmt RPandWFMOutpre:BYT_Or LSB.FPbinaryspecifies floating point binary. It automatically forcesDATa:WIDTHto 4 andBYT_ORto MSB (most significant byte transmitted first).SFPbinaryspecifies floating point binary. It automatically forcesDATa:WIDTHto 4 andBYT_ORto LSB (least significant byte transmitted first).
DataSource
¶
Bases: SCPICmdWrite, SCPICmdRead
The DATa:SOUrce command.
Description
- This command specifies the source waveform to be transferred from the oscilloscope using
the CURVe? query. The valid waveform sources are CH1-CH4, MATH, REF1-REF4, D0-D15,
DIGital,
RF_AMPlitude,RF_FREQuency,RF_PHASe,RF_NORMal,RF_AVErage,RF_MAXHold, andRF_MINHold. SettingDATa:SOUrceautomatically constrains the following to valid values for the specified source waveform:WFMOutpre:BYT_Nr,WFMOutpre:BIT_NrandWFMOutpre:BN_Fmt.
Usage
- Using the
.query()method will send theDATa:SOUrce?query. - Using the
.verify(value)method will send theDATa:SOUrce?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:SOUrce valuecommand.
SCPI Syntax
- DATa:SOUrce {CH<x>|MATH|REF<x>|D<x>|DIGital|RF_AMPlitude|RF_FREQuency|RF_PHASe|RF_NORMal|RF_AVErage|RF_MAXHold|RF_MINHold}
- DATa:SOUrce?
Info
CH<x>specifies which analog channel waveform data will be transferred from the oscilloscope to the controller, channels 1 through 4.MATHspecifies that the Math waveform data will be transferred from the oscilloscope to the controller.REF<x>specifies which Reference waveform data will be transferred from the oscilloscope to the controller.D<x>specifies which digital channel waveform data will be transferred from the oscilloscope to the controller. (Requires installation of option 3-MSO.).DIGitalspecifies that the Digital Collection waveform data will be transferred from the oscilloscope to the controller. (Requires installation of option 3-MSO.).RF_NORMalspecify that the RF data will be transferred from the oscilloscope to the controller.RF_AVEragespecify that the RF data will be transferred from the oscilloscope to the controller.RF_MAXHoldspecify that the RF data will be transferred from the oscilloscope to the controller.RF_MINHoldspecify that the RF data will be transferred from the oscilloscope to the controller.
DataStart
¶
Bases: SCPICmdWrite, SCPICmdRead
The DATa:STARt command.
Description
- This command sets or queries the starting data point for waveform transfer. This command allows for the transfer of partial waveforms to and from the instrument.
Usage
- Using the
.query()method will send theDATa:STARt?query. - Using the
.verify(value)method will send theDATa:STARt?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:STARt valuecommand.
SCPI Syntax
- DATa:STARt <NR1>
- DATa:STARt?
Info
<NR1>is the first data point that will be transferred, which ranges from 1 to the record length. Data will be transferred fromto DATa:STOPor the record length, whichever is less. Ifis greater than the record length, the last data point in the record is transferred. DATa:STARtandDATa:STOPare order independent. WhenDATa:STOPis greater thanDATa:STARt, the values will be swapped internally for the CURVE? query.
DataStop
¶
Bases: SCPICmdWrite, SCPICmdRead
The DATa:STOP command.
Description
- This command sets or queries the last data point that will be transferred when using the
CURVE? query. This command allows for the transfer of partial waveforms to the controller.
Changes to the record length value are not automatically reflected in the
data:stopvalue. As record length is varied, theDATa:STOPvalue must be explicitly changed to ensure the entire record is transmitted. In other words, curve results will not automatically and correctly reflect increases in record length if the distance fromDATa:STARttoDATa:STOPstays smaller than the increased record length.
Usage
- Using the
.query()method will send theDATa:STOP?query. - Using the
.verify(value)method will send theDATa:STOP?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:STOP valuecommand.
SCPI Syntax
- DATa:STOP <NR1>
- DATa:STOP?
Info
<NR1>is the last data point that will be transferred, which ranges from 1 to the record length. Ifis greater than the record length, then data will be transferred up to the record length. If both DATa:STARtandDATa:STOPare greater than the record length, the last data point in the record is returned.
DataWidth
¶
Bases: SCPICmdWrite, SCPICmdRead
The DATa:WIDth command.
Description
- This command specifies the width, in bytes per point, for waveform data transferred from
the instrument via the CURVe? query. (This command is synonymous with
WFMOutpre:BYT_Nr.)
Usage
- Using the
.query()method will send theDATa:WIDth?query. - Using the
.verify(value)method will send theDATa:WIDth?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theDATa:WIDth valuecommand.
SCPI Syntax
- DATa:WIDth <NR1>
- DATa:WIDth?
Info
<NR1>is an integer that indicates the number of bytes per point for the outgoing waveform data when queried using the CURVe? command. For analog channels, NR1 can be 1 or 2.