GENerator Commands


Start, pause and stop output.


Syntax


(Command)


:GENerator:RUN
:GENerator:PAUSE
:GENerator:STOP


Details


Controls signal generation.
RUN     Starts output.
PAUSE Pauses output.
STOP   Stops output.


Example


:GENerator:RUN


Note


-


Usage
Conditions





Query the status of output.


Syntax


(Query)


:GENerator:RUN?

(Response)

A$
A$ = RUN, PAUSE, STOP


Details


Returns the signal generation state as text data.
RUN, PAUSE, STOP


Example


:GENerator:RUN?
(Response) :GENERATOR:RUN RUN (when headers are enabled)


Note


-


Usage
Conditions





Set or query the method used to control signal generation.


Syntax


(Command)
(Query)


:GENerator:CONtrol A$
:GENerator:CONtrol?

(Response)

A$
A$ = MANUal, MEASure, KEY


Details


Sets the method used to control signal generation.
Returns the signal generation control setting as text data.

MANUal Controls signal generation on the Signal Generator screen.
MEASure Augments control on the Signal Generation screen by starting and stopping generation in synchronization with measurement.
KEY Augments control on the Signal Generation screen by starting and stopping generation with the START and STOP keys.


Example


:GENerator:CONtrol MEASure
:GENerator:CONtrol?
(Response) :GENERATOR:CONTROL MEASURE (when headers are enabled)


Note



Usage
Conditions





Set or query the signal generation state at the completion of measurement.


Syntax


(Command)
(Query)


:GENerator:STPOut A$
:GENerator:STPOut?

(Response)

A$
A$ = STOP, CONTinue


Details


Sets the signal generation state at the completion of measurement when the signal generation control method is set to MEASure (synchronized with measurement).
Returns the measurement complete signal generation state setting as text data.

STOP        Stops signal generation when measurement stops.
CONTinue Continues signal generation even when measurement stops.


Example


:GENerator:STPOut STOP
:GENerator:STPOut?
(Response) :GENERATOR:STPOUT STOP (when headers are enabled)


Note


-


Usage
Conditions





Set or query the waveform type (U8793)


Syntax


(Command)
(Query)


:GENerator:MGKInd U$,CH$,A$
:GENerator:MGKInd? U$,CH$

(Response)

U$,CH$,A$
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A$ = DC, SIN, RECTanguler, PULSe, TRIAngle, UPRAmp, DWRAmp, FUNCtion, PROGram


Details


Sets the waveform type for the U8793 Arbitrary Waveform Generator Unit.
Returns the waveform type setting as text data.

DC DC output
SIN Sine wave output
RECTanguler Rectangular wave output
PULSe Pulse wave output
UPRAmp Ramp up output
DWRAmp Ramp down output
FUNCtion User-created waveform output
PROGram Program waveform output


Example


:GENerator:MGKInd U1,CH1,SIN
:GENerator:MGKInd? U1,CH1
(Response)  :GENERATOR:MGKIND U1,CH1,SIN (when headers are enabled)


Note


Usage
Conditions


Signal generation must be in the STOP state.




Set or query the offset (U8793)


Syntax


(Command)
(Query)


:GENerator:MGOFfset U$,CH$,A
:GENerator:MGOFfset? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Offset


Details


Sets the offset or (when the waveform type is set to DC) voltage for the U8793 Arbitrary Waveform Generator Unit.
Returns the offset or (when the waveform type is set to DC) voltage as an NR2 value.
Valid setting range: -10 to 15 (in 0.001 increments; unit: [V])


Example


:GENerator:MGOFfset U1,CH1,1.25
:GENerator:MGOFfset? U1,CH1
(Response) :GENERATOR:MGOFFSET U1,CH1,1.250 (when headers are enabled)


Note


-


Usage
Conditions





Set or query the frequency (U8793)


Syntax


(Command)
(Query)


:GENerator:MGFRequency U$,CH$,A
:GENerator:MGFRequency? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Frequency


Details


Sets the waveform type for the U8793 Arbitrary Waveform Generator Unit.
Returns the frequency as an NR2 value.
Valid setting range: 0 to 100000 (in 0.01 increments; unit: [Hz])


Example


:GENerator:MGFRequency U1,CH1,1250
:GENerator:MGFRequency? U1,CH1
(Response) :GENERATOR:MGFREQUENCY U1,CH1,1250.00 (when headers are enabled)


Note


When the waveform type is set to [Arbitrary], set the clock frequency using :MGCLock .


Usage
Conditions





Set or query the period (U8793)


Syntax


(Command)
(Query)


:GENerator:MGPEriod U$,CH$,A
:GENerator:MGPEriod? U$,CH$

(Response)

U$,CH$,A<NR3>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Period


Details


Sets the period for the U8793 Arbitrary Waveform Generator Unit.
Returns the period as an NR3 value (with 9 significant digits).
Valid setting range: 0 to 100 (unit: [s])


Example


:GENerator:MGPEriod U1,CH1,0.125
:GENerator:MGPEriod? U1,CH1
(Response) :GENERATOR:MGPERIOD U1,CH1,1.25000000E-01 (when headers are enabled)


Note


Although the period can be specified within the above range, the setting is actually configured as a frequency. Consequently, the values that can be set are limited, and the setting will be automatically converted to a valid frequency value.

When the waveform type is set to [Arbitrary], set the clock period using :MGCPeriod .


Usage
Conditions





Set or query the amplitude (U8793)


Syntax


(Command)
(Query)


:GENerator:MGAMplitude U$,CH$,A
:GENerator:MGAMplitude? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Amplitude


Details


Sets the amplitude for the U8793 Arbitrary Waveform Generator Unit.
Returns the amplitude as an NR2 value.
Valid setting range: 0 to 20 (in 0.001 increments; unit: [Vpp])


Example


:GENerator:MGAMplitude U1,CH1,12.5
:GENerator:MGAMplitude? U1,CH1
(Response) :GENERATOR:MGAMPLITUDE U1,CH1,12.500 (when headers are enabled)


Note


The voltage that can be generated represents the total of the amplitude and offset and is subject to an upper limit of +15 V and a lower limit of -10 V.


Usage
Conditions





Set or query the phase (U8793)


Syntax


(Command)
(Query)


:GENerator:MGPHase U$,CH$,A
:GENerator:MGPHase? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Phase


Details


Sets the phase for the U8793 Arbitrary Waveform Generator Unit.
Returns the phase as an NR2 value.
Valid setting range: -360 to 360 (in 0.1 increments; unit: [degree])


Example


:GENerator:MGPHase U1,CH1,12.5
:GENerator:MGPHase? U1,CH1
(Response) :GENERATOR:MGPHASE U1,CH1,12.5 (when headers are enabled)


Note


When the waveform type is [Arbitrary], set the delay using :MGDElay.


Usage
Conditions





Set or query the duty (U8793)


Syntax


(Command)
(Query)


:GENerator:MGDUty U$,CH$,A
:GENerator:MGDUty? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Duty


Details


Sets the duty for the U8793 Arbitrary Waveform Generator Unit.
Returns the duty as an NR2 value.
Valid setting range: 0.1 to 99.9 (in 0.1 increments; unit: [%])


Example


:GENerator:MGDUty U1,CH1,12.5
:GENerator:MGDUty? U1,CH1
(Response) :GENERATOR:MGDUTY U1,CH1,12.5 (when headers are enabled)


Note


The duty setting is valid when the waveform type is set to [Pulse].


Usage
Conditions





Set or query the waveform output (U8793)


Syntax


(Command)
(Query)


:GENerator:MGOUtput U$,CH$,A$
:GENerator:MGOUtput? U$,CH$

(Response)

U$,CH$,A$
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A$ = OFF, ON


Details


Sets signal generation output for the U8793 Arbitrary Waveform Generator Unit.
Returns the signal generation output setting as text data.

OFF Disables signal generation.
ON Generates a signal when signal generation control is in the RUN state.


Example


:GENerator:MGOUtput U1,CH1,ON
:GENerator:MGOUtput? U1,CH1
(Response) :GENERATOR:MGOUTPUT U1,CH1,ON (when headers are enabled)


Note


-


Usage
Conditions








Set or query the output terminal state (U8793)


Syntax


(Command)
(Query)


:GENerator:MGSTop U$,CH$,A$
:GENerator:MGSTop? U$,CH$

(Response)

U$,CH$,A$
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A$ = SHORT, OPEN


Details


Sets the output terminal state when U8793 Arbitrary Waveform Generator Unit output is turned off.
Returns the output terminal state setting as text data.
SHORT, OPEN


Example


:GENerator:MGSTop U1,CH1,SHORT
:GENerator:MGSTop? U1,CH1
(Response) :GENERATOR:MGSTOP U1,CH1,SHORT (when headers are enabled)


Note


-


Usage
Conditions








Set or query the name of waveform to generate (U8793)


Syntax


(Command)
(Query)


:GENerator:MGNAme U$,CH$,"A$"
:GENerator:MGNAme? U$,CH$

(Response)

U$,CH$,"A$"
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A$ = Name


Details


Sets the waveform name to generate when the waveform type for the U8793 Arbitrary Waveform Generator Unit is set to [Arbitrary].
Returns the generated waveform name setting as text data.


Example


:GENerator:MGNAme U1,CH1,"TEST"
:GENerator:MGNAme? U1,CH1
(Response) :GENERATOR:MGNAME U1,CH1,"TEST" (when headers are enabled)


Note


-


Usage
Conditions


Signal generation must be in the STOP state.




Query the data count of arbitrary waveform. (U8793)


Syntax


(Query)


:GENerator:MGNUmber? U$,CH$

(Response)

U$,CH$,<NR1>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Data count


Details


Returns the data count for the waveform that is generated when the waveform type for the U8793 Arbitrary Waveform Generator Unit is set to [Arbitrary] as an NR1 value.


Example


:GENerator:MGNUmber? U1,CH1
(Response) :GENERATOR:MGNUMBER U1,CH1,1000 (when headers are enabled)


Note


-


Usage
Conditions





Set or query the clock frequency of arbitrary waveform (U8793)


Syntax


(Command)
(Query)


:GENerator:MGCLock U$,CH$,A
:GENerator:MGCLock? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Clock frequency


Details


Sets the clock frequency when the waveform type for the U8793 Arbitrary Waveform Generator Unit is set to [Arbitrary].
Returns the clock frequency as an NR2 value.
Valid setting range: 0 to 2000000 (in 0.01 increments; unit: [Hz])


Example


:GENerator:MGCLock U1,CH1,1250
:GENerator:MGCLock? U1,CH1
(Response) :GENERATOR:MGCLOCK U1,CH1,1250.00 (when headers are enabled)


Note


-


Usage
Conditions





Set or query the clock period of arbitrary waveform (U8793)


Syntax


(Command)
(Query)


:GENerator:MGCPeriod U$,CH$,A
:GENerator:MGCPeriod? U$,CH$

(Response)

U$,CH$,A<NR3>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Clock period


Details


Sets the clock period when the waveform type for the U8793 Arbitrary Waveform Generator Unit is set to [Arbitrary].
Returns the clock period as an NR3 value (with 9 significant digits).
Valid setting range: 0 to 100 (unit: [s])


Example


:GENerator:MGCPeriod U1,CH1,0.125
:GENerator:MGCPeriod? U1,CH1
(Response) :GENERATOR:MGCPERIOD U1,CH1,1.25000000E-01 (when headers are enabled)


Note


Although the clock period can be specified within the above range, the setting is actually configured as a clock frequency. Consequently, the values that can be set are limited, and the setting will be automatically converted to a valid clock frequency value.


Usage
Conditions





Set or query the delay (U8793)


Syntax


(Command)
(Query)


:GENerator:MGDElay U$,CH$,A
:GENerator:MGDElay? U$,CH$

(Response)

U$,CH$,A<NR1>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Delay


Details


Sets the delay when the waveform type for the U8793 Arbitrary Waveform Generator Unit is set to [Arbitrary].
Returns the delay as an NR1 value.
Valid setting range: -250000 to 250000 (unit: [data points])


Example


:GENerator:MGDElay U1,CH1,-1250
:GENerator:MGDElay? U1,CH1
(Response) :GENERATOR:MGDELAY U1,CH1,-1250 (when headers are enabled)


Note


Positive delay values result in leading phase, while negative delay values result in lagging phase.


Usage
Conditions





Set or query the loop count of arbitrary waveform. (U8793)


Syntax


(Command)
(Query)


:GENerator:MGLOop U$,CH$,A
:GENerator:MGLOop? U$,CH$

(Response)

U$,CH$,A<NR1>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Loop count


Details


Sets the loop count when the waveform type for the U8793 Arbitrary Waveform Generator Unit is set to [Arbitrary].
Returns the loop count as an NR1 value.
Valid setting range: 0 to 50000 (with the value 0 indicating an infinite number of loops)


Example


:GENerator:MGLOop U1,CH1,1250
:GENerator:MGLOop? U1,CH1
(Response) :GENERATOR:MGLOOP U1,CH1,1250 (when headers are enabled)


Note


-


Usage
Conditions





Set or query the amplitude adjustment value of arbitrary waveform. (U8793)


Syntax


(Command)
(Query)


:GENerator:MGVErnier U$,CH$,A
:GENerator:MGVErnier? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Amplitude adjustment value


Details


Sets the amplitude adjustment value when the waveform type for the U8793 Arbitrary Waveform Generator Unit is set to [User waveform].
Returns the amplitude adjustment value as an NR2 value.
Valid setting range: 0 to 2 (in 0.001 increments)
The amplitude of the user waveform can be increased or decreased within the range of 0~ to 2~.
(The unit cannot generate output in excess of the range of -10 V to +15 V.)


Example


:GENerator:MGVErnier U1,CH1,1.25
:GENerator:MGVErnier? U1,CH1
(Response) :GENERATOR:MGVERNIER U1,CH1,1.250 (when headers are enabled)


Note


-


Usage
Conditions





Set or query the filter of arbitrary waveform. (U8793)


Syntax


(Command)
(Query)


:GENerator:MGFIlter U$,CH$,A$
:GENerator:MGFIlter? U$,CH$

(Response)

U$,CH$,A$
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A$ = OFF, 50, 100, 200, 500, 1K, 2K, 5K, 10K, 20K, 50K, 100K, 200K, 500K, 1M (Filter)


Details


Sets the filter when the waveform type for the U8793 Arbitrary Waveform Generator Unit is set to [Arbitrary].
Returns the filter setting as text data.


Example


:GENerator:MGFIlter U1,CH1,200K
:GENerator:MGFIlter? U1,CH1
(Response) :GENERATOR:MGFILTER U1,CH1,200K (when headers are enabled)


Note


-


Usage
Conditions





Set or query the sweep (U8793)


Syntax


(Command)
(Query)


:GENerator:SWSEt U$,CH$,K$,A$
:GENerator:SWSEt? U$,CH$,K$

(Response)

U$,CH$,K$,A$
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
K$ = FREquency, PERiod, AMPlitude, OFFset, DUTy, CLOck, CPEriod, VERnier
A$ = OFF, ON


Details


Sets sweep operation for the U8793 Arbitrary Waveform Generator Unit.
Returns the sweep setting as text data.
The parameter for which to enable sweep operation is selected with K$.

FREquency Frequency
PERiod Period
AMPlitude Amplitude
OFFset Offset
DUTy Duty (Pulse wave)
CLOck Clock freqency (Arbitrary waveform)
CPEriod Clock period (Arbitrary waveform)
VERnier Amplitude adjust (Arbitrary waveform)


Example


:GENerator:SWSEt U1,CH1,FREquency,ON
:GENerator:SWSEt? U1,CH1,FREquency
(Response) :GENERATOR:SWSET U1,CH1,FREQUENCY,ON (when headers are enabled)


Note


Although the duty can be set when the waveform type is set to [Pulse], sweep operation can be applied to only one of either duty or frequency. (The last setting to be turned on will take effect.)


Usage
Conditions


Signal generation must be in the STOP state.




Set or query the sweep end value. (U8793)


Syntax


(Command)
(Query)


:GENerator:SWENd U$,CH$,K$,A
:GENerator:SWENd? U$,CH$,K$

(Response)

U$,CH$,K$,A
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
K$ = FREquency, PERiod, AMPlitude, OFFset, DUTy, CLOck, CPEriod, VERnier
A = Sweep end value


Details


Sets the sweep end value for the U8793 Arbitrary Waveform Generator Unit.
Returns the sweep end value as an NR2 or NR3 value.
The parameter for which to set the end value is selected with K$.

FREquency Frequency
PERiod Period
AMPlitude Amplitude
OFFset Offset
DUTy Duty (Pulse wave)
CLOck Clock freqency (Arbitrary waveform)
CPEriod Clock period (Arbitrary waveform)
VERnier Amplitude adjust (Arbitrary waveform)


Example


:GENerator:SWENd U1,CH1,FREQ,1250
:GENerator:SWENd? U1,CH1,FREQ
(Response) :GENERATOR:SWEND U1,CH1,FREQUENCY,1250 (when headers are enabled)


Note


Although this command can be used to set the sweep end value, the value when not using the sweep function is used as the sweep start value. See the respective setting commands for more information.


Usage
Conditions


Signal generation must be in the STOP state.




Set or query sweep time (U8793)


Syntax


(Command)
(Query)


:GENerator:SWTIme U$,CH$,A
:GENerator:SWTIme? U$,CH$

(Response)

U$,CH$,A<NR3>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Sweep time (unit: [s])


Details


Sets the sweep time for the U8793 Arbitrary Waveform Generator Unit.
Returns the sweep time as an NR3 value.
Valid setting range: 0.00001 to 1000 (unit: [s]; set with 5 significant digits within the range to the left)


Example


:GENerator:SWTIme U1,CH1,1.25
:GENerator:SWTIme? U1,CH1
(Response) :GENERATOR:SWTIME U1,CH1,1.2500E+00 (when headers are enabled)


Note


-


Usage
Conditions


Signal generation must be in the STOP state.




Set or query the overall loop count. (U8793)


Syntax


(Command)
(Query)


:GENerator:MGWHole U$,CH$,A
:GENerator:MGWHole? U$,CH$

(Response)

U$,CH$,A<NR1>
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A = Overall loop count


Details


Sets the overall loop count when the waveform type for the U8793 Arbitrary Waveform Generator Unit is set to [Program].
Returns the overall loop count as an NR1 value.
Valid setting range: 0 to 50000 (with the value 0 indicating an infinite number of loops)


Example


:GENerator:MGWHole U1,CH1,1250
:GENerator:MGWHole? U1,CH1
(Response) :GENERATOR:MGWHOLE U1,CH1,1250 (when headers are enabled)


Note


-


Usage
Conditions


Signal generation must be in the STOP state.




Registers a new program or references a previously registered program. (U8793)


Syntax


(Command)


:GENerator:MPBEgin U$,CH$,A$
U$ = U1 to (Unit No.)
CH$ = CH1, CH2 (Channel No.)
A$ = NEW, REF


Details


Registers a new program or references a previously registered program.
NEW Registers a new program.
REF  References a previously registered program.

To register program steps :GENerator:MPSTep command
To reference program steps :GENerator:MPSTep? command
To finish registering or referencing a program, use the :GENerator:MPFInish command.


Example


[NEW]
:GENerator:MPBEgin U1,CH1,NEW (New registration start)
:GENerator:MPSTep SIN,1000,-1,10,-1,0,-99,0,1,0,OFF (Set the sine wave)
:GENerator:MPSTep DC,5,2,OFF (Set the DC)
:GENerator:MPFInish (Completion of registration)

[REF]
:GENerator:MPBEgin U1,CH1,REF (Reference start)
:GENerator:MPMAxstep? (Query the step count)
(Response) 2
:GENerator:MPSTep? (Query the step)
(Response) SIN,1000,-1,10,-1,0,-99,0,1,0,OFF (Returns the setting value of the first step)
:GENerator:MPSTep? (Query the step)
(Response) DC,5,2,OFF (Returns the setting value of the second step)
:GENerator:MPFInish (Completion of references)


Note


-


Usage
Conditions


Signal generation must be in the STOP state.
The Edit Program screen is not being displayed.




Cancel registration or referencing (U8793)


Syntax


(Command)


:GENerator:MPFInish
:GENerator:MPABort


Details


Cancels registration of a new program or referencing of a previously registered program.

MPFInishFinishes registration or referencing.
MPABort Cancels registration or referencing (if registering steps, discarding any steps in the process of being registered).


Example


:GENerator:MPFInish


Note


-


Usage
Conditions





Set the step when registering a program (U8793)


Syntax


(Command)


:GENerator:MPSTep K$ (,"N$",F1,F2,A1,A2,V1,V2,O1,O2,P,D1,D2T,L,H$)
K$: Waveform type (DC, SIN, RECTanguler, PULSe, TRIAngle, UPRAmp, DWRAmp, FUNCtion)
N$: Name of arbitrary waveform
F1: Start frequency
F2: End frequency (Set to -1 when not using the sweep function.)
A1: Start amplitude
A2: End amplitude (Set to -1 when not using the sweep function.)
V1: Start value of the amplitude adjustment
V2: End value of the amplitude adjustment (Set to -1 when not using the sweep function.)
O1: Start offset
O2: End offset (Set to -99 when not using the sweep function.)
P: Phase
D1: Start duty
D2: End duty (Set to -1 when not using the sweep function.)
T: Signal generation time or sweep time
L: Loop count (1 to 1000)
H$: Hold (OFF/ON)


Details


Sets steps when registering a program.
Steps are registered in order starting with the first step according to the order in which they are sent.
The following parameters are specified depending on the waveform type:

DC K$,O1,T,H$
PULSe K$,F1,F2,A1,A2,O1,O2,P,D1,D2,T,L,H$
FUNCtion K$,N$,F1,F2,V1,V2,O1,O2,T,L,H$
Other K$,F1,F2,A1,A2,O1,O2,P,T,L,H$


Example


:GENerator:MPBEgin U1,CH1,NEW (New registration start)
:GENerator:MPSTep SIN,1000,-1,10,-1,0,-99,0,1,10,OFF (Set the sine wave)
:GENerator:MPSTep DC,5,2,OFF (Set the DC)
:GENerator:MPFInish (Completion of registration)



Note


The sweep function can be set for only one of either pulse waveform frequency or duty.
Attempting to use the sweep setting for both parameters will result in an error.


Usage
Conditions


The "Register new program" command must have been sent before this command.
The Edit Program screen is not being displayed.




Query the step when referencing a program (U8793)


Syntax


(Query)


:GENerator:MPSTep?

(Response)

K$ (,"N$",F1,F2,A1,A2,V1,V2,O1,O2,P,D1,D2T,L,H$)
K$: Waveform type (DC, SIN, RECTanguler, PULSe, TRIAngle, UPRAmp, DWRAmp, FUNCtion)
N$: Name of arbitrary waveform
F1: Start frequency
F2: End frequency (Returns -1 when not using the sweep function.)
A1: Start amplitude
A2: End amplitude (Returns -1 when not using the sweep function.)
V1: Start value of the amplitude adjustment
V2: End value of the amplitude adjustment (Returns -1 when not using the sweep function.)
O1: Start offset
O2: End offset (Returns -99 when not using the sweep function.)
P: Phase
D1: Start duty
D2: End duty (Returns -1 when not using the sweep function.)
T: Signal generation time or sweep time
L: Loop count (Returns 0 when infinity.)
H$: Hold (OFF/ON)


Details


Queries a step when referencing a program.
One step is sent in order each time this command is sent.
Steps are sent in order, from the first step to the last step.
The parameters that are sent vary with the waveform type as follows:

DC K$,O1,T,H$
PULSe K$,F1,F2,A1,A2,O1,O2,P,D1,D2,T,L,H$
FUNCtion K$,N$,F1,F2,V1,V2,O1,O2,T,L,H$
Other K$,F1,F2,A1,A2,O1,O2,P,T,L,H$


Example


:GENerator:MPBEgin U1,CH1,REF (Reference start)
:GENerator:MPMAxstep? (Query the step count)
(Response) 2
:GENerator:MPSTep? (Query the step)
(Response) SIN,1000,-1,10,-1,0,-99,0,1,10,OFF (Returns the setting value of the first step)
:GENerator:MPSTep? (Query the step)
(Response) DC,5,2,OFF (Returns the setting value of the second step)
:GENerator:MPFInish (Completion of references)

(when headers are enabled)


Note


To check the maximum number of steps in a previously registered program, send a query with the "Query maximum number of steps in program" command.


Usage
Conditions


The "References a previously registered program" command must have been sent before this command.
The Edit Program screen is not being displayed.




Query maximum number of steps in program (U8793)


Syntax


(Query)


:GENerator:MPMAxstep?

(Response)

A<NR1>
A: Maximum number of steps in program


Details


Queries the maximum number of steps in the program being referenced.


Example


:GENerator:MPBEgin U1,CH1,REF (Reference start)
:GENerator:MPMAxstep? (Query the step count)
(Response) 2
:GENerator:MPSTep? (Query the step)
(Response) SIN,1000,-1,10,-1,0,-99,0,1,10,OFF (Returns the setting value of the first step)
:GENerator:MPSTep? (Query the step)
(Response) DC,5,2,OFF (Returns the setting value of the second step)
:GENerator:MPFInish (Completion of references)

(when headers are enabled)


Note


-


Usage
Conditions


The "References a previously registered program" command must have been sent before this command.
The Edit Program screen is not being displayed.




Set or query the waveform type (MR8790)


Syntax


(Command)
(Query)


:GENerator:WGKInd U$,CH$,A$
:GENerator:WGKInd? U$,CH$

(Response)

U$,CH$,A$
U$ = U1 to (Unit No.)
CH$ = CH1 to CH4 (Channel No.)
A$ = DC, SIN


Details


Sets the waveform type for the MR8790 Waveform Generator Unit.
Returns the waveform type setting as text data.

DC   DC output
SIN  Sine wave output


Example


:GENerator:WGKInd U1,CH1,SIN
:GENerator:WGKInd? U1,CH1
(Response)  :GENERATOR:WGKIND U1,CH1,SIN  (when headers are enabled)


Note


Usage
Conditions


Signal generation must be in the STOP state.




Set or query the offset (MR8790)


Syntax


(Command)
(Query)


:GENerator:WGOFfset U$,CH$,A
:GENerator:WGOFfset? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1 to CH4 (Channel No.)
A = Offset


Details


Sets the offset or (when the waveform type is set to DC) voltage for the MR8790 Waveform Generator Unit.
Returns the offset or (when the waveform type is set to DC) voltage as an NR2 value.
Valid setting range: -10 to 10 (in 0.001 increments; unit: [V])


Example


:GENerator:WGOFfset U1,CH1,1.25
:GENerator:WGOFfset? U1,CH1
(Response) :GENERATOR:WGOFFSET U1,CH1,1.250 (when headers are enabled)


Note


-


Usage
Conditions





Set or query the frequency (MR8790)


Syntax


(Command)
(Query)


:GENerator:WGFRequency U$,CH$,A
:GENerator:WGFRequency? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1 to CH4 (Channel No.)
A = Frequency


Details


Sets the waveform type for the MR8790 Waveform Generator Unit.
Returns the frequency as an NR2 value.
Valid setting range: 0 to 20000 (in 1 increments; unit: [Hz])


Example


:GENerator:WGFRequency U1,CH1,1250
:GENerator:WGFRequency? U1,CH1
(Response) :GENERATOR:WGFREQUENCY U1,CH1,1250 (when headers are enabled)


Note


-


Usage
Conditions





Set or query the period (MR8790)


Syntax


(Command)
(Query)


:GENerator:WGPEriod U$,CH$,A
:GENerator:WGPEriod? U$,CH$

(Response)

U$,CH$,A<NR3>
U$ = U1 to (Unit No.)
CH$ = CH1 to CH4 (Channel No.)
A = Period


Details


Sets the period for the MR8790 Waveform Generator Unit.
Returns the period as an NR3 value (with 9 significant digits).
Valid setting range: 0 to 1 (unit: [s])


Example


:GENerator:WGPEriod U1,CH1,0.125
:GENerator:WGPEriod? U1,CH1
(Response) :GENERATOR:WGPERIOD U1,CH1,1.25000000E-01 (when headers are enabled)


Note


Although the period can be specified within the above range, the setting is actually configured as a frequency. Consequently, the values that can be set are limited, and the setting will be automatically converted to a valid frequency value.


Usage
Conditions





Set or query the amplitude (MR8790)


Syntax


(Command)
(Query)


:GENerator:WGAMplitude U$,CH$,A
:GENerator:WGAMplitude? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1 to CH4 (Channel No.)
A = Amplitude


Details


Sets the amplitude for the MR8790 Waveform Generator Unit.
Returns the amplitude as an NR2 value.
Valid setting range: 0 to 10 (in 0.001 increments; unit: [Vpp])


Example


:GENerator:WGAMplitude U1,CH1,12.5
:GENerator:WGAMplitude? U1,CH1
(Response) :GENERATOR:WGAMPLITUDE U1,CH1,12.500 (when headers are enabled)


Note


The voltage that can be generated represents the total of the amplitude and offset and is subject to an upper limit of +10 V and a lower limit of -10 V.


Usage
Conditions








Set or query the output terminal state (MR8790)


Syntax


(Command)
(Query)


:GENerator:WGSTop U$,CH$,A$
:GENerator:WGSTop? U$,CH$

(Response)

U$,CH$,A$
U$ = U1 to (Unit No.)
CH$ = CH1 to CH4 (Channel No.)
A$ = SHORT, OPEN


Details


Sets the output terminal state when MR8790 Waveform Generator Unit output is turned off.
Returns the output terminal state setting as text data.
SHORT, OPEN


Example


:GENerator:WGSTop U1,CH1,SHORT
:GENerator:WGSTop? U1,CH1
(Response) :GENERATOR:WGSTOP U1,CH1,SHORT (when headers are enabled)


Note


-


Usage
Conditions








Set or query the waveform output (MR8790)


Syntax


(Command)
(Query)


:GENerator:WGOUtput U$,CH$,A$
:GENerator:WGOUtput? U$,CH$

(Response)

U$,CH$,A$
U$ = U1 to (Unit No.)
CH$ = CH1 to CH4 (Channel No.)
A$ = OFF, ON


Details


Sets signal generation output for the MR8790 Waveform Generator Unit.
Returns the signal generation output setting as text data.

OFF Disables signal generation.
ON  Generates a signal when signal generation control is in the RUN state.


Example


:GENerator:WGOUtput U1,CH1,ON
:GENerator:WGOUtput? U1,CH1
(Response) :GENERATOR:WGOUTPUT U1,CH1,ON (when headers are enabled)


Note


-


Usage
Conditions





Set or query of the mode (MR8791)


Syntax


(Command)
(Query)


:GENerator:PGMOde U$,A$
:GENerator:PGMOde? U$

(Response)

U$,A$
U$ = U1 to (Unit No.)
A$ = PULSe, PATTern


Details


Sets the mode of the M8791 Pulse Generator Unit.
Returns the waveform type setting as text data.
PULSe, PATTern


Example


:GENerator:PGMOde U1,PULSE
:GENerator:PGMOde? U1
(Response)  :GENERATOR:PGMODE U1,PULSE  (when headers are enabled)


Note


The [Pattern] setting is only available when the channels to use setting is set to the maximum value.


Usage
Conditions


Signal generation must be in the STOP state.




Set or query the frequency (MR8791)


Syntax


(Command)
(Query)


:GENerator:PGFRequency U$,CH$,A
:GENerator:PGFRequency? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1 to CH8 (Channel No.)
A = Frequency


Details


Sets the waveform type for the U8791 Pulse Generator Unit.
Returns the frequency as an NR2 value.
Valid setting range: 0 to 20000 (in 0.1 increments; unit: [Hz])


Example


:GENerator:PGFRequency U1,CH1,1250
:GENerator:PGFRequency? U1,CH1
(Response) :GENERATOR:PGFREQUENCY U1,CH1,1250.0 (when headers are enabled)


Note


When the mode is set to [Pattern], set the clock frequency using :PGCLock .


Usage
Conditions





Set or query the period (MR8791)


Syntax


(Command)
(Query)


:GENerator:PGPEriod U$,CH$,A
:GENerator:PGPEriod? U$,CH$

(Response)

U$,CH$,A<NR3>
U$ = U1 to (Unit No.)
CH$ = CH1 to CH8 (Channel No.)
A = Period


Details


Sets the period for the MR8791 Pulse Generator Unit.
Returns the period as an NR3 value (with 9 significant digits).
Valid setting range: 0 to 10 (unit: [s])


Example


:GENerator:PGPEriod U1,CH1,0.125
:GENerator:PGPEriod? U1,CH1
(Response) :GENERATOR:PGPERIOD U1,CH1,1.25000000E-01 (when headers are enabled)


Note


Although the period can be specified within the above range, the setting is actually configured as a frequency. Consequently, the values that can be set are limited, and the setting will be automatically converted to a valid frequency value.

When the mode is set to [Pattern], set the clock period using :PGCPeriod .


Usage
Conditions





Set or query the duty (MR8791)


Syntax


(Command)
(Query)


:GENerator:PGDUty U$,CH$,A
:GENerator:PGDUty? U$,CH$

(Response)

U$,CH$,A<NR2>
U$ = U1 to (Unit No.)
CH$ = CH1 to CH8 (Channel No.)
A = Duty


Details


Sets the duty for the MR8791 Pulse Generator Unit.
Returns the duty as an NR2 value.
Valid setting range: 0 to 100 (in 0.1 increments; unit: [%])


Example


:GENerator:PGDUty U1,CH1,12.5
:GENerator:PGDUty? U1,CH1
(Response) :GENERATOR:PGDUTY U1,CH1,12.5 (when headers are enabled)


Note


-


Usage
Conditions





Set or query the waveform output (MR8791)


Syntax


(Command)
(Query)


:GENerator:PGOUtput U$,CH$,A$
:GENerator:PGOUtput? U$,CH$

(Response)

U$,CH$,A$
U$ = U1 to (Unit No.)
CH$ = CH1 to CH8 (Channel No.)
A$ = OFF, ON


Details


Sets signal generation output for the MR8791 Pulse Generator Unit.
Returns the signal generation output setting as text data.

OFF Disables signal generation.
ON  Generates a signal when signal generation control is in the RUN state.


Example


:GENerator:PGOUtput U1,CH1,ON
:GENerator:PGOUtput? U1,CH1
(Response) :GENERATOR:PGOUTPUT U1,CH1,ON (when headers are enabled)


Note


-


Usage
Conditions








Set or query the output type (MR8791)


Syntax


(Command)
(Query)


:GENerator:PGTTl U$,CH$,A$
:GENerator:PGTTl? U$,CH$

(Response)

U$,CH$,A$
U$ = U1 to (Unit No.)
CH$ = CH1 to CH8 (Channel No.)
A$ = TTL, OC


Details


Sets the output type for the M8791 Pulse Generator Unit.
Returns the output type setting as text data.

TTL TTL output
OC  Open Collenctor output


Example


:GENerator:PGTTl U1,CH1,TTL
:GENerator:PGTTl? U1,CH1
(Response) :GENERATOR:PGTTL U1,CH1,TTL (when headers are enabled)


Note


-


Usage
Conditions





Set or query the pattern number (MR8791)


Syntax


(Command)
(Query)


:GENerator:PGPAttern U$,A
:GENerator:PGPAttern? U$

(Response)

U$,A<NR1>
U$ = U1 to (Unit No.)
A = 1 to 16 (Pattern No.)


Details


Sets the pattern number for the M8791 Pulse Generator Unit.
Returns the pattern number as an NR1 value.


Example


:GENerator:PGPAttern U1,1
:GENerator:PGPAttern? U1
(Response)  :GENERATOR:PGPATTERN U1,1  (when headers are enabled)


Note


Usage
Conditions


Signal generation must be in the STOP state.







Query the pattern data count (MR8791)


Syntax


(Query)


:GENerator:PGNUmber? U$,P

(Response)

U$,P<NR1>,A<NR1>
U$: U1 to (Unit No.)
P: 1 to 16 (Pattern No.)
A: 0 to 2048 (Data count)


Details


Query the pattern data count.


Example



:GENerator:PGNUmber? U1,1
(Response) :GENERATOR:PGNUMBER U1,1,1000(when headers are enabled)


Note


-


Usage
Conditions







Set or query the clock frequency (MR8791)


Syntax


(Command)
(Query)


:GENerator:PGCLock U$,A
:GENerator:PGCLock? U$

(Response)

U$,A<NR1;>
U$ = U1 to (Unit No.)
A = Clock frequency


Details


Sets the clock frequency of the generated pattern.
Returns the clock frequency as an NR2 value.
Valid setting range: 0 to 120000 (in 10 increments; unit: [Hz])


Example


:GENerator:PGCLock U1,1000
:GENerator:PGCLock? U1
(Response) :GENERATOR:PGCLOCK U1,1000 (when headers are enabled)


Note


-


Usage
Conditions





Set or query of the clock period (U8791)


Syntax


(Command)
(Query)


:GENerator:PGCPeriod U$,A
:GENerator:PGCPeriod? U$

(Response)

U$,A<NR3>
U$ = U1 to (Unit No.)
A = Period


Details


Sets the clock period of the generated pattern.
Returns the clock period as an NR3 value (with 9 significant digits).
Valid setting range: 0 to 0.1 (unit: [s])


Example


:GENerator:PGCPeriod U1,0.0125
:GENerator:PGCPeriod? U1
(Response) :GENERATOR:PGCPERIOD U1,CH1,1.25000000E-04 (when headers are enabled)


Note


Although the clock period can be specified within the above range, the setting is actually configured as a clock frequency. Consequently, the values that can be set are limited, and the setting will be automatically converted to a valid clock frequency value.


Usage
Conditions








Set or query the signal generation output in the pattern mode (MR8791)


Syntax


(Command)
(Query)


:GENerator:PGCOutput U$,A$
:GENerator:PGCOutput? U$

(Response)

U$,A$
U$ = U1 to (Unit No.)
A$ = OFF, ON


Details


Sets signal generation output in the pattern mode for the MR8791 Pulse Generator Unit.
Returns the signal generation output setting as text data.

OFF Disables signal generation.
ON  Generates a signal when signal generation control is in the RUN state.


Example


:GENerator:PGCOutput U1,ON
:GENerator:PGCOutput? U1
(Response) :GENERATOR:PGCOUTPUT U1,ON (when headers are enabled)


Note


-


Usage
Conditions