Keithley 2182 User Manual page 146

Nanovoltmeter
Hide thumbs Also See for 2182:
Table of Contents

Advertisement

8-6
Limits
NOTES 1. The fail message ("0") for a limit test indicates that the reading is outside the
Programming example
The following program fragment performs limit tests on a voltage input to Channel 1:
'Configure 2182 for one-shot DCV1 measurements:
CALL SEND(7, "*rst",status%)
' Configure limit tests:
CALL SEND(7,":calc3:lim:upp 0.1",status%)
CALL SEND(7,":calc3:lim:low -0.1",status%)
CALL SEND(7,":calc3:lim2:upp 1",status%)
CALL SEND(7,":calc3:lim2:low -1",status%)
CALL SEND(7,":calc3:lim:stat on",status%)
CALL SEND(7,":calc3:lim2:stat on",status%)
'Trigger one reading and display it:
CALL SEND(7,":read?",status%)
reading$ = SPACE$(80)
CALL ENTER(reading$, length%, 7,status%)
PRINT reading$
'Check result of Limit 1 test:
CALL SEND(7,":calc3:lim:fail?",status%)
reading$ = SPACE$(80)
CALL ENTER(reading$, length%, 7, status%)
PRINT reading$
'Check result of Limit 2 test:
CALL SEND (7, ":calc3:lim2:fail?", status%)
reading$ = SPACE$(80)
CALL ENTER(reading$, length%, 7,status%)
PRINT reading$
specified limits.
2. With auto clear enabled, the fail message ("0") is cleared when the instrument
goes back into the idle state. If programmed not to go back into idle, you can
manually clear the fail condition by sending the CLEar[:IMMediate] command.
With auto clear disabled, the fail condition will have to be cleared manually.
3. When not in a continuous measurement mode (waiting for a trigger), you can
change the limits and re-test the last reading. After changing the limits, send
CALCulate3:IMMediate to re-perform the limit tests on the last reading. Note that
sending IMMediate does not initiate (trigger) a reading. It simply repeats the limit
tests on the last reading.
'Put 2182 in a one-shot mode.
'Set HI1 limit to 0.1.
'Set LO1 limit to -0.1.
'Set HI2 limit to 1.
'Set LO2 limit to -1.
'Enable Limit 1 test.
'Enable Limit 2 test.
'Trigger and request a
'reading.
'Address 2182 to talk.
'Display reading on CRT.
'Request result of
'Limit 1 test.
'Address 2182 to talk.
'Display result of
'Limit 1 test.
'Request result of
'Limit 2 test.
'Address 2182 to talk.
'Display result of
'Limit 2 test.

Advertisement

Table of Contents
loading

This manual is also suitable for:

2182a

Table of Contents