Specifications
RIGOL Chapter 3 Application Examples
3-10 M300 Programming Guide
To Configure the Scan List
Requirements
Use the SCPI commands to realize the following functions:
Configure the scan list as follows, and initiate the scan.
Scan count
Trigger mode
Related setting
10
TIMer
Interval: 0.05s
1
BUS
None
1
EXTernal
Edge: Falling
1
ABSolute
Time: 8:00 every day
1
ALARm2
Channel: Alarm2
1. *IDN? /*Query the ID string of M300 to check whether the
remote communication is normal*/
2. TRIG:COUN 10 /*Set the number of scans to 100*/
3. TRIG:SOUR TIM /*Set the trigger mode to auto (timer)*/
4. TRIG:TIM 0.05 /*Set the scan interval to 0.05s*/
5. READ? /*Initiate the scan and read the readings*/
6. CALC:AVER:MAX? (@102:106) /*Query the maximum values for channels 102 through 106*/
7. CALC:AVER:MIN? (@102:106) /*Query the minimum values for channels 102 through 106*/
8. CALC:AVER:AVE? (@102:106) /*Query the average values for channels 102 through 106*/
9. CALC:AVER:PTP? (@102:106) /*Query the peak to peak values for channels 102 through 106*/
10. CALC:AVER:SDEV? (@102:106) /*Query the standard deviation values for channels 102 through 106*/
11. TRIG:COUN 1 /*Set the number of scans to 1*/
12. TRIG:SOUR BUS /*Set the trigger source to manual*/
13. INIT /*Place the instrument in the "wait-for-trigger" state*/
14. *TRG /*Trigger a scan*/
15. R? /*Read and erase the readings*/
16. TRIG:COUN 1 /*Set the number of scans to 1*/
17. TRIG:SOUR EXT /*Set the trigger mode to external*/
18. TRIG:EDGE FALL /*Set the edge type of the trigger signal to falling*/
19. INIT /*Place the instrument in the "wait-for-trigger" state*/
20. FETCh? /*Read the readings*/
21. TRIG:COUN 5 /*Set the number of scans to 5*/
22. TRIG:SOUR ABS /*Set the trigger mode to absolute time*/
23. TRIG:ABS *,*,8,0,0 /*Set the trigger absolute time to 8:00 every day*/
24. INIT /*Place the instrument in the "wait-for-trigger" state*/
25. FETCh? /*Read the readings*/
26. TRIG:COUN 1 /*Set the number of scans to 1*/
27. TRIG:SOUR AlAR2 /*Set the trigger mode to alarm*/
28. ROUT:MON:CHAN (@103,104) /*Add channels 103 and 104 into the monitor list*/
29. ROUT:MON:STAT ON /*Enable the monitor mode*/
30. INIT /*Place the instrument in the "wait-for-trigger" state*/
31. FETCh? /*Read the readings*/