Example 5: P/F Test
Purpose: Use commands to perform a P/F test.
P/F operation prompts for the over range voltage signal according to upper/lower
limits, and give a beep (the beeper must be on) at the same time.
The programming steps——RIGOL Commands:
0 *RST /*Reset the instrument for preparing measurement*/
1 cmdset□rigol /*Select RIGOL commands*/
2 *IDN? /*Query equipment ID to confirm if the
instrument works normally*/
3 /*Connect the test leads under DC voltage measurement mode*/
4 :function:voltage:DC /*Enable DC voltage measuring function*/
5 :measure:voltage:DC□<range> /*Set the measuring range*/
6 :calculate:limit:lower□<value1> /*Set the lower limit*/
7 :calculate:limit:upper□<value2> /*Set the upper limit*/
8 :calculate:function□limit /*Enable limit operation function*/
9 :calculate:limit? /*Query the measuring result*/
10 /*Returned value*/
11 :calculate:function□none /*Exit calculation function*/
Remarks:
1. Before sending line 4 command , the instrument should be connected under DC
voltage measure mode.
2. In line 6 and 7 commands, the parameter value2 should be greater than value1
and both of them should be within the scope of the range.
3. The return value of line 9 command is ―PASS‖ when the input voltage is within the
scope of the upper and lower limits, else ―FAIL‖ is returned and a beep is
generated (the beeper must be on) .