Specifications
Chapter 3 Application Examples RIGOL
M300 Programming Guide 3-9
108. CALC:COMP:TYPE EQU /*Set the alarm mode to “equal” for channel 301*/
109. CALC:COMP:STAT ON /*Enable the alarm function for channel 301*/
110. OUTP:ALAR2:SOUR (@301) /*Set the alarm channel to Alarm2 for channel 301*/
111. DIG:TYPE TTL,(@301) /*Set the level type to TTL for channel 301*/
112. CONF:DIG:WORD (@303) /*Configure channel 303 to 16-bit digital input and reset the scan list */
113. CALC:COMP:DATA 121 /*Set the alarm value to 121 for channel 303*/
114. CALC:COMP:MASK 5 /*Set the alarm mask to 5 for channel 303*/
115. CALC:COMP:TYPE NEQ /*Set the alarm mode to “not equal” for channel 303*/
116. CALC:COMP:STAT ON /*Enable the alarm function for channel 303*/
117. OUTP:ALAR3:SOUR (@303) /*Set the alarm channel to Alarm3 for channel 303*/
118. DIG:TYPE USER,(@303) /*Set the level type to USER for channel 303*/
119. DIG:LEVel 5,(@303) /*Set the voltage level to 5V for channel 303*/
120. DIG:THReshold 3.5,(@303) /*Set the voltage threshold to 3.5V for channel 303*/
121. CONF:TOT READ,(@305) /*Configure channel 305 to TOT READ mode and reset the scan list*/
122. CALC:LIM:UPP 1000 /*Set the alarm upper limit to 1000 for channel 305*/
123. CALC:LIM:UPP:STAT ON /*Enable the upper limit alarm for channel 305 */
124. OUTP:ALAR4:SOUR (@305) /*Set the alarm channel to Alarm4 for channel 305*/
125. TOT:SLOP NEG /*Set the trigger mode to falling edge trigger for channel 305*/
126. CONF:TOT RRES,(@307) /*Configure channel 307 to TOT RRESet mode and reset the scan list*/
127. TOT:SLOP POS /*Set the trigger mode to rising edge trigger for channel 307*/
128. TOT:THR 5 /*Set the threshold to 5V for channel 307*/
129. ROUT:SCAN (@101:115,119:124,201:206,301,303,305,307) /*Add the above channels to the
scan list*/