RIGOL
Chapter 3 Application Instances
3-2
DG900 Programming Guide
To Output Basic Waveforms
Requirement
Use the SCPI commands to realize the following functions:
This section mainly introduces how to output Sine waveforms (frequency 500 Hz, amplitude 2.5 Vpp, offset
1 V
dc
, start phase 90°) from the front-panel [CH1] output connector.
Method 1
1. *IDN?
/*Queries the ID string of the signal generator to test whether
the remote communication works normally.*/
2. :SOUR1:APPL:SIN 500,2.5,1,90
/*Sets the waveform of CH1 to Sine with 500 Hz frequency,
2.5 Vpp amplitude, 1 V
dc
offset, and 90° start phase.*/
3. :OUTP1 ON
/*Enables the output of CH1.*/
Method 2
1. *IDN?
/*Queries the ID string of the signal generator to test whether
the remote communication works normally.*/
2. :SOUR1:FUNC SIN
/*Sets the waveform of CH1 to Sine.*/
3. :SOUR1:FREQ 500
/*Sets the waveform frequency of CH1 to 500 Hz.*/
4. :SOUR1:VOLT 2.5
/*Sets the waveform amplitude of CH1 to 2.5 Vpp.*/
5. :SOUR1:VOLT:OFFS 1
/*Sets the offset voltage of CH1 to 1 V
dc
.*/
6. :SOUR1:PHAS 90
/*Sets the start phase of CH1 to 90°.*/
7. :OUTP1 ON
/*Enables the output of CH1.*/
To Output the Arbitrary Waveform
Requirement
Use the SCPI commands to realize the following functions:
This section mainly introduces how to output arbitrary waveforms (frequency 100 Hz, amplitude 1 Vpp,
offset 2 V
dc
, start phase 3°) from the front-panel [CH1] output connector.
Method
1. *IDN?
/*Queries the ID string of the signal generator to test
whether the remote communication works normally.*/
2. :SOUR1:APPL:USER 100,1,2,3
/*Sets CH1 to output arbitrary waveform with 100 Hz
frequency, 1 Vpp amplitude, 2 V
dc
offset, and 3° start
phase.*/
3. :OUTP1 ON
/*Enables the output of CH1.*/
Summary of Contents for DG952
Page 2: ......
Page 168: ......
Page 181: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 7 ...
Page 185: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 11 ...
Page 187: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 13 ...
Page 199: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 25 ...
Page 200: ......