RIGOL Chapter 3 Application Examples
3-4 DP800 Programming Guide
To Use the Recorder
Requirement
Use the SCPI commands to realize the following functions:
Set the record period to 2s and the storage directory of the record file to C:\REC 1:RIGOL.ROF; enable the
recorder, wait for about 2 minutes and disable the recorder.
Method
1 *IDN? /*Query the ID character string of the power supply to check whether the
remote communication is normal*/
2 :OUTP CH1,ON /*Enable the output of CH1; otherwise, the recorded data of CH1 will be 0*/
3 :OUTP CH2,ON /*Enable the output of CH2; otherwise, the recorded data of CH2 will be 0*/
4 :OUTP CH3,ON /*Enable the output of CH3; otherwise, the recorded data of CH3 will be 0*/
5 :REC:PERI 2 /*Set the record period to 2s*/
6 :REC:MEM 1,RIGOL.ROF /*Set the storage directory of the record file to C:\REC 1:RIGOL.ROF*/
7 :REC ON /*Enable the recorder*/
/*Wait for about 2 minutes……*/
8 :REC OFF /*Disable the recorder*/
To Use the Analyzer
Requirement
Use the SCPI commands to realize the following functions:
Open the C:\REC 1:RIGOL.ROF file; set the start time to 1s and the end time to 100s.
Execute the analysis.
Read the analysis results.
Method
1 *IDN? /*Query the ID character string of the power supply to check whether the
remote communication is normal*/
2 :ANAL:MEM 1 /*Open the C:\REC 1:RIGOL.ROF file*/
3 :ANAL:STARTT 1 /*Set the start time to 1s*/
4 :ANAL:ENDT 100 /*Set the end time to 100s*/
5 :ANAL:ANAL /*Execute the analysis*/
6 :ANAL:RES? /*Read the analysis results*/