pg
¶
The pg commands module.
These commands are used in the following models: MSO2
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.
Please report an issue if one is found.
Commands and Queries
- PG:AMPlitude {2.5|3.3|5V}
- PG:AMPlitude?
- PG:BIT:ONE {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:ONE?
- PG:BIT:THREE {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:THREE?
- PG:BIT:TWO {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:TWO?
- PG:BIT:ZERO {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:ZERO?
- PG:BITRate <NR3>
- PG:BITRate?
- PG:BURSt:CCOUnt <NR1>
- PG:BURSt:CCOUnt?
- PG:BURSt:TRIGger
- PG:FILE:PATTern <QString>
- PG:FILE:PATTern?
- PG:OUTPut:MODe {CONTinuous|BURSt|OFF}
- PG:OUTPut:MODe?
- PG:PATTERNdefinition {MANual|FILE}
- PG:PATTERNdefinition?
Pg
¶
Bases: SCPICmdRead
The PG command tree.
Usage
- Using the
.query()method will send thePG?query. - Using the
.verify(value)method will send thePG?query and raise an AssertionError if the returned value does not matchvalue.
Properties
.amplitude: ThePG:AMPlitudecommand..bit: ThePG:BITcommand tree..bitrate: ThePG:BITRatecommand..burst: ThePG:BURStcommand tree..file: ThePG:FILEcommand tree..output: ThePG:OUTPutcommand tree..patterndefinition: ThePG:PATTERNdefinitioncommand.
amplitude
property
¶
amplitude: PgAmplitude
Return the PG:AMPlitude command.
Description
- This command sets or queries the Pattern Generator output voltage. You can give any value, but the command will replace it with the nearest valid value (2.5, 3.3 and 5). In burst mode, only 5 V is supported.
Usage
- Using the
.query()method will send thePG:AMPlitude?query. - Using the
.verify(value)method will send thePG:AMPlitude?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:AMPlitude valuecommand.
SCPI Syntax
- PG:AMPlitude {2.5|3.3|5V}
- PG:AMPlitude?
Info
2.5sets the Pattern Generator amplitude to 2.5 V.3.3sets the Pattern Generator amplitude to 3.3 V.5sets the Pattern Generator amplitude to 5 V. This is the default value.
bit
property
¶
bit: PgBit
Return the PG:BIT command tree.
Usage
- Using the
.query()method will send thePG:BIT?query. - Using the
.verify(value)method will send thePG:BIT?query and raise an AssertionError if the returned value does not matchvalue.
Sub-properties
.one: ThePG:BIT:ONEcommand..three: ThePG:BIT:THREEcommand..two: ThePG:BIT:TWOcommand..zero: ThePG:BIT:ZEROcommand.
bitrate
property
¶
bitrate: PgBitrate
Return the PG:BITRate command.
Description
- This command sets or queries the bit rate of data in the Pattern Generator. You can give any value, but it will take nearest possible value and generate the pattern.
Usage
- Using the
.query()method will send thePG:BITRate?query. - Using the
.verify(value)method will send thePG:BITRate?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BITRate valuecommand.
SCPI Syntax
- PG:BITRate <NR3>
- PG:BITRate?
Info
<NR3>sets the Pattern Generator bit rate. The minimum bit rate is 1 b/s and maximum bit rate is 25 Mb/s. The default value is 125000 b/s.
burst
property
¶
burst: PgBurst
Return the PG:BURSt command tree.
Usage
- Using the
.query()method will send thePG:BURSt?query. - Using the
.verify(value)method will send thePG:BURSt?query and raise an AssertionError if the returned value does not matchvalue.
Sub-properties
.ccount: ThePG:BURSt:CCOUntcommand..trigger: ThePG:BURSt:TRIGgercommand.
file
property
¶
file: PgFile
Return the PG:FILE command tree.
Usage
- Using the
.query()method will send thePG:FILE?query. - Using the
.verify(value)method will send thePG:FILE?query and raise an AssertionError if the returned value does not matchvalue.
Sub-properties
.pattern: ThePG:FILE:PATTerncommand.
output
property
¶
output: PgOutput
Return the PG:OUTPut command tree.
Usage
- Using the
.query()method will send thePG:OUTPut?query. - Using the
.verify(value)method will send thePG:OUTPut?query and raise an AssertionError if the returned value does not matchvalue.
Sub-properties
.mode: ThePG:OUTPut:MODecommand.
patterndefinition
property
¶
patterndefinition: PgPatterndefinition
Return the PG:PATTERNdefinition command.
Description
- This command sets or queries the Pattern Generator definition. If set to manual mode, you can configure the bit independently. If set to file mode, you can set a data file that will be loaded into memory and generated as a sequence.
Usage
- Using the
.query()method will send thePG:PATTERNdefinition?query. - Using the
.verify(value)method will send thePG:PATTERNdefinition?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:PATTERNdefinition valuecommand.
SCPI Syntax
- PG:PATTERNdefinition {MANual|FILE}
- PG:PATTERNdefinition?
Info
MANualsets the pattern definition source to Manual. This is the default value.FILEsets the pattern definition source to File.
PgAmplitude
¶
Bases: SCPICmdWrite, SCPICmdRead
The PG:AMPlitude command.
Description
- This command sets or queries the Pattern Generator output voltage. You can give any value, but the command will replace it with the nearest valid value (2.5, 3.3 and 5). In burst mode, only 5 V is supported.
Usage
- Using the
.query()method will send thePG:AMPlitude?query. - Using the
.verify(value)method will send thePG:AMPlitude?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:AMPlitude valuecommand.
SCPI Syntax
- PG:AMPlitude {2.5|3.3|5V}
- PG:AMPlitude?
Info
2.5sets the Pattern Generator amplitude to 2.5 V.3.3sets the Pattern Generator amplitude to 3.3 V.5sets the Pattern Generator amplitude to 5 V. This is the default value.
PgBit
¶
Bases: SCPICmdRead
The PG:BIT command tree.
Usage
- Using the
.query()method will send thePG:BIT?query. - Using the
.verify(value)method will send thePG:BIT?query and raise an AssertionError if the returned value does not matchvalue.
Properties
.one: ThePG:BIT:ONEcommand..three: ThePG:BIT:THREEcommand..two: ThePG:BIT:TWOcommand..zero: ThePG:BIT:ZEROcommand.
one
property
¶
one: PgBitOne
Return the PG:BIT:ONE command.
Description
- This command sets or queries the output value of Pattern Generator bit 1.
Usage
- Using the
.query()method will send thePG:BIT:ONE?query. - Using the
.verify(value)method will send thePG:BIT:ONE?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BIT:ONE valuecommand.
SCPI Syntax
- PG:BIT:ONE {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:ONE?
Info
LOWsets the Pattern Generator bit value to Low.HIGHsets the Pattern Generator bit value to High.TOGGLEsets the Pattern Generator bit value to Toggle.HIGH_Zsets the Pattern Generator bit value to Hi-Z. Only available for Continuos mode.
three
property
¶
three: PgBitThree
Return the PG:BIT:THREE command.
Description
- This command sets or queries the output value of Pattern Generator bit 3.
Usage
- Using the
.query()method will send thePG:BIT:THREE?query. - Using the
.verify(value)method will send thePG:BIT:THREE?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BIT:THREE valuecommand.
SCPI Syntax
- PG:BIT:THREE {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:THREE?
Info
LOWsets the Pattern Generator bit value to Low.HIGHsets the Pattern Generator bit value to High.TOGGLEsets the Pattern Generator bit value to Toggle.HIGH_Zsets the Pattern Generator bit value to Hi-Z. Only available for Continuos mode.
two
property
¶
two: PgBitTwo
Return the PG:BIT:TWO command.
Description
- This command sets or queries the output value of Pattern Generator bit 2.
Usage
- Using the
.query()method will send thePG:BIT:TWO?query. - Using the
.verify(value)method will send thePG:BIT:TWO?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BIT:TWO valuecommand.
SCPI Syntax
- PG:BIT:TWO {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:TWO?
Info
LOWsets the Pattern Generator bit value to Low.HIGHsets the Pattern Generator bit value to High.TOGGLEsets the Pattern Generator bit value to Toggle.HIGH_Zsets the Pattern Generator bit value to Hi-Z. Only available for Continuos mode.
zero
property
¶
zero: PgBitZero
Return the PG:BIT:ZERO command.
Description
- This command sets or queries the output value of Pattern Generator bit 0.
Usage
- Using the
.query()method will send thePG:BIT:ZERO?query. - Using the
.verify(value)method will send thePG:BIT:ZERO?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BIT:ZERO valuecommand.
SCPI Syntax
- PG:BIT:ZERO {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:ZERO?
Info
LOWsets the Pattern Generator bit value to Low.HIGHsets the Pattern Generator bit value to High.TOGGLEsets the Pattern Generator bit value to Toggle.HIGH_Zsets the Pattern Generator bit value to Hi-Z. Only available for Continuos mode.
PgBitOne
¶
Bases: SCPICmdWrite, SCPICmdRead
The PG:BIT:ONE command.
Description
- This command sets or queries the output value of Pattern Generator bit 1.
Usage
- Using the
.query()method will send thePG:BIT:ONE?query. - Using the
.verify(value)method will send thePG:BIT:ONE?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BIT:ONE valuecommand.
SCPI Syntax
- PG:BIT:ONE {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:ONE?
Info
LOWsets the Pattern Generator bit value to Low.HIGHsets the Pattern Generator bit value to High.TOGGLEsets the Pattern Generator bit value to Toggle.HIGH_Zsets the Pattern Generator bit value to Hi-Z. Only available for Continuos mode.
PgBitThree
¶
Bases: SCPICmdWrite, SCPICmdRead
The PG:BIT:THREE command.
Description
- This command sets or queries the output value of Pattern Generator bit 3.
Usage
- Using the
.query()method will send thePG:BIT:THREE?query. - Using the
.verify(value)method will send thePG:BIT:THREE?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BIT:THREE valuecommand.
SCPI Syntax
- PG:BIT:THREE {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:THREE?
Info
LOWsets the Pattern Generator bit value to Low.HIGHsets the Pattern Generator bit value to High.TOGGLEsets the Pattern Generator bit value to Toggle.HIGH_Zsets the Pattern Generator bit value to Hi-Z. Only available for Continuos mode.
PgBitTwo
¶
Bases: SCPICmdWrite, SCPICmdRead
The PG:BIT:TWO command.
Description
- This command sets or queries the output value of Pattern Generator bit 2.
Usage
- Using the
.query()method will send thePG:BIT:TWO?query. - Using the
.verify(value)method will send thePG:BIT:TWO?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BIT:TWO valuecommand.
SCPI Syntax
- PG:BIT:TWO {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:TWO?
Info
LOWsets the Pattern Generator bit value to Low.HIGHsets the Pattern Generator bit value to High.TOGGLEsets the Pattern Generator bit value to Toggle.HIGH_Zsets the Pattern Generator bit value to Hi-Z. Only available for Continuos mode.
PgBitZero
¶
Bases: SCPICmdWrite, SCPICmdRead
The PG:BIT:ZERO command.
Description
- This command sets or queries the output value of Pattern Generator bit 0.
Usage
- Using the
.query()method will send thePG:BIT:ZERO?query. - Using the
.verify(value)method will send thePG:BIT:ZERO?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BIT:ZERO valuecommand.
SCPI Syntax
- PG:BIT:ZERO {HIGH|LOW|TOGGLE|HIGH_Z}
- PG:BIT:ZERO?
Info
LOWsets the Pattern Generator bit value to Low.HIGHsets the Pattern Generator bit value to High.TOGGLEsets the Pattern Generator bit value to Toggle.HIGH_Zsets the Pattern Generator bit value to Hi-Z. Only available for Continuos mode.
PgBitrate
¶
Bases: SCPICmdWrite, SCPICmdRead
The PG:BITRate command.
Description
- This command sets or queries the bit rate of data in the Pattern Generator. You can give any value, but it will take nearest possible value and generate the pattern.
Usage
- Using the
.query()method will send thePG:BITRate?query. - Using the
.verify(value)method will send thePG:BITRate?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BITRate valuecommand.
SCPI Syntax
- PG:BITRate <NR3>
- PG:BITRate?
Info
<NR3>sets the Pattern Generator bit rate. The minimum bit rate is 1 b/s and maximum bit rate is 25 Mb/s. The default value is 125000 b/s.
PgBurst
¶
Bases: SCPICmdRead
The PG:BURSt command tree.
Usage
- Using the
.query()method will send thePG:BURSt?query. - Using the
.verify(value)method will send thePG:BURSt?query and raise an AssertionError if the returned value does not matchvalue.
Properties
.ccount: ThePG:BURSt:CCOUntcommand..trigger: ThePG:BURSt:TRIGgercommand.
ccount
property
¶
ccount: PgBurstCcount
Return the PG:BURSt:CCOUnt command.
Description
- This command sets or queries the cycle count for Pattern Generator burst mode. This is only available when output is Burst.
Usage
- Using the
.query()method will send thePG:BURSt:CCOUnt?query. - Using the
.verify(value)method will send thePG:BURSt:CCOUnt?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BURSt:CCOUnt valuecommand.
SCPI Syntax
- PG:BURSt:CCOUnt <NR1>
- PG:BURSt:CCOUnt?
Info
<NR1>sets the cycle count for Pattern Generator burst mode. The minimum cycle value can be set is 1 and maximum cycles are 2000. The default value is 1.
trigger
property
¶
trigger: PgBurstTrigger
Return the PG:BURSt:TRIGger command.
Description
- This command manually starts the burst pattern. This is only available when output is Burst.
Usage
- Using the
.write()method will send thePG:BURSt:TRIGgercommand.
SCPI Syntax
- PG:BURSt:TRIGger
PgBurstCcount
¶
Bases: SCPICmdWrite, SCPICmdRead
The PG:BURSt:CCOUnt command.
Description
- This command sets or queries the cycle count for Pattern Generator burst mode. This is only available when output is Burst.
Usage
- Using the
.query()method will send thePG:BURSt:CCOUnt?query. - Using the
.verify(value)method will send thePG:BURSt:CCOUnt?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:BURSt:CCOUnt valuecommand.
SCPI Syntax
- PG:BURSt:CCOUnt <NR1>
- PG:BURSt:CCOUnt?
Info
<NR1>sets the cycle count for Pattern Generator burst mode. The minimum cycle value can be set is 1 and maximum cycles are 2000. The default value is 1.
PgBurstTrigger
¶
Bases: SCPICmdWriteNoArguments
The PG:BURSt:TRIGger command.
Description
- This command manually starts the burst pattern. This is only available when output is Burst.
Usage
- Using the
.write()method will send thePG:BURSt:TRIGgercommand.
SCPI Syntax
- PG:BURSt:TRIGger
PgFile
¶
Bases: SCPICmdRead
The PG:FILE command tree.
Usage
- Using the
.query()method will send thePG:FILE?query. - Using the
.verify(value)method will send thePG:FILE?query and raise an AssertionError if the returned value does not matchvalue.
Properties
.pattern: ThePG:FILE:PATTerncommand.
pattern
property
¶
pattern: PgFilePattern
Return the PG:FILE:PATTern command.
Description
- This command sets or queries the path of your data file to generate a digital pattern in file mode. Only .csv files are supported.
Usage
- Using the
.query()method will send thePG:FILE:PATTern?query. - Using the
.verify(value)method will send thePG:FILE:PATTern?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:FILE:PATTern valuecommand.
SCPI Syntax
- PG:FILE:PATTern <QString>
- PG:FILE:PATTern?
Info
<QString>is the file path that specifies the location of the specified instrument file.
PgFilePattern
¶
Bases: SCPICmdWrite, SCPICmdRead
The PG:FILE:PATTern command.
Description
- This command sets or queries the path of your data file to generate a digital pattern in file mode. Only .csv files are supported.
Usage
- Using the
.query()method will send thePG:FILE:PATTern?query. - Using the
.verify(value)method will send thePG:FILE:PATTern?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:FILE:PATTern valuecommand.
SCPI Syntax
- PG:FILE:PATTern <QString>
- PG:FILE:PATTern?
Info
<QString>is the file path that specifies the location of the specified instrument file.
PgOutput
¶
Bases: SCPICmdRead
The PG:OUTPut command tree.
Usage
- Using the
.query()method will send thePG:OUTPut?query. - Using the
.verify(value)method will send thePG:OUTPut?query and raise an AssertionError if the returned value does not matchvalue.
Properties
.mode: ThePG:OUTPut:MODecommand.
mode
property
¶
mode: PgOutputMode
Return the PG:OUTPut:MODe command.
Description
- This command sets or queries the Pattern Generator output mode.
Usage
- Using the
.query()method will send thePG:OUTPut:MODe?query. - Using the
.verify(value)method will send thePG:OUTPut:MODe?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:OUTPut:MODe valuecommand.
SCPI Syntax
- PG:OUTPut:MODe {CONTinuous|BURSt|OFF}
- PG:OUTPut:MODe?
Info
CONTinuoussets the Pattern Generator output type to continuous.BURStsets the Pattern Generator output type to burst.OFFsets the Pattern Generator output type to off. This is the default value.
PgOutputMode
¶
Bases: SCPICmdWrite, SCPICmdRead
The PG:OUTPut:MODe command.
Description
- This command sets or queries the Pattern Generator output mode.
Usage
- Using the
.query()method will send thePG:OUTPut:MODe?query. - Using the
.verify(value)method will send thePG:OUTPut:MODe?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:OUTPut:MODe valuecommand.
SCPI Syntax
- PG:OUTPut:MODe {CONTinuous|BURSt|OFF}
- PG:OUTPut:MODe?
Info
CONTinuoussets the Pattern Generator output type to continuous.BURStsets the Pattern Generator output type to burst.OFFsets the Pattern Generator output type to off. This is the default value.
PgPatterndefinition
¶
Bases: SCPICmdWrite, SCPICmdRead
The PG:PATTERNdefinition command.
Description
- This command sets or queries the Pattern Generator definition. If set to manual mode, you can configure the bit independently. If set to file mode, you can set a data file that will be loaded into memory and generated as a sequence.
Usage
- Using the
.query()method will send thePG:PATTERNdefinition?query. - Using the
.verify(value)method will send thePG:PATTERNdefinition?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send thePG:PATTERNdefinition valuecommand.
SCPI Syntax
- PG:PATTERNdefinition {MANual|FILE}
- PG:PATTERNdefinition?
Info
MANualsets the pattern definition source to Manual. This is the default value.FILEsets the pattern definition source to File.