To output burst waveform, To use the frequency counter function, To output burst waveform -6 – RIGOL DG1000Z Series User Manual

Page 226: To use the frequency counter function -6

Advertising
background image

RIGOL

Chapter 3 Application Examples

3-6

DG1000Z Programming Guide

To Output Burst Waveform

Requirement

Use the SCPI commands to realize the following functions:

Output burst waveform from the output connector of CH1 at the front panel; set the burst waveform to sine

(1kHz frequency, 5Vpp amplitude, 0V

DC

offset voltage and 0° start phase), the burst type to N cycle, the

number of cycles to 10, the burst time to 0.1s, the trigger source to internal, the trigger output signal to

falling edge and the trigger delay to 0.01s.

Method

1.

*IDN?

/*Query the ID string of the signal generator to check

whether the remote communication is normal*/

2.

:SOUR1:APPL:SIN 1000,5,0,0

/*Set the waveform of CH1 to sine, the frequency to 1kHz,

the amplitude to 5Vpp, the offset to 0V

DC

and the start

phase to 0°*/

3.

:SOUR1:BURS ON

/*Turn on the burst function of CH1*/

4.

:SOUR1:BURS:MODE TRIG

/*Set the burst type of CH1 to N cycle*/

5.

:SOUR1:BURS:NCYC 10

/*Set the number of cycles of the N cycle burst of CH1 to 10*/

6.

:SOUR1:BURS:INT:PER 0.1

/*Set the internal burst period of the N cycle burst of CH1 to

0.1s*/

7.

:SOUR1:BURS:TRIG:SOUR INT

/*Set the trigger source of the burst mode of CH1 to

internal*/

8.

:SOUR1:BURS:TRIG:TRIGO NEG

/*Set the edge type of the trigger output signal of the burst

mode of CH1 to falling edge*/

9.

:SOUR1:BURS:TDEL 0.01

/*Set the trigger delay of the N cycle burst of CH1 to 0.01s*/

10. :OUTP1 ON

/*Turn on the output of CH1*/

11. :SOUR1:BURS:TRIG

/*Trigger a burst output in CH1 immediately*/

To Use the Frequency Counter Function

Requirement

Use the SCPI commands to realize the following functions:

Enable the frequency counter function; set the instrument to select the proper gate time automatically

according to the characteristic of the signal to be measured; turn on the statistic function; set the display

mode of the statistic results to number, the sensitivity to 30%, the trigger level to 0.1V and the coupling

mode to AC coupling; turn on the high-frequency rejection function; set the running state to run.

Method

1.

*IDN?

/*Query the ID string of the signal generator to check

whether the remote communication is normal*/

2.

:COUN ON

/*Turn on the frequency counter function*/

3.

:COUN:AUTO

/*Set the instrument to select the proper gate time according

to the characteristic of the signal to be measured*/

4.

:COUN:STATI ON

/*Turn on the statistic function of the measurement results of

the frequency counter*/

5.

:COUN:STATI:DISP DIGITAL

/*Set the display mode of the statistic results of the

measurement results of the frequency counter to number*/

6.

:COUN:SENS 30

/*Set the trigger sensitivity of the frequency counter to

30%*/

7.

:COUN:LEVE 0.1

/*Set the trigger level of the frequency counter to 0.1V*/

8.

:COUN:COUP AC

/*Set the coupling mode of the input signal to AC coupling*/

9.

:COUN:HF ON

/*Turn on the high-frequency rejection function of the

frequency counter*/

10. :COUN RUN

/*Set the running state of the frequency counter to run*/

Advertising