Keithley 2002 User Manual page 197

Hide thumbs Also See for 2002:
Table of Contents

Advertisement

IEEE-488 Reference
Description
Program fragment
Parameters
Query
Description
Program fragment
3-74
With auto-clear enabled, the fail indication of a limit test clears when instrument operation en-
ters the idle state. With auto-clear disabled, the fail indication will remain until it is cleared by
the :CLEar[:IMMediate] command.
PRINT #1, "output 16; :calc3:lim:cle:auto on; auto?"
PRINT #1, "enter 16"
:PASS:SOURce <NRf>
:CALCulate3:PASS:SOURce <NRf>
<NRf> = 0 to 15 Specify digital pattern for output port
:SOURce Query programmed source value
This command is used to specify which line(s) of the Digital Output Port will go true when there
are no failures in the limit tests.
Each output line is assigned a decimal weight as follows:
Digital Output
Decimal Weight
Line #1
1
Line #2
2
Line #3
4
Line #4
8
The parameter value for the digital pattern is determined by adding the decimal weights of the
desired output lines. For example, if you want output lines #2 and #3 to go true when all enabled
limit tests pass, use a parameter value of 6 (2+4).
The actual true state (high or low) of each digital output line depends on its programmed polar-
ity. Polarity is programmed from the OUTPut Subsystem (see paragraph 3.16).
Note that when the binning strobe is enabled (see :BSTRobe command path), output line #4 is
not considered to be part of the digital output pattern. The binning strobe uses line #4. With the
strobe enabled, parameter values 8 through 15 are treated the same as parameters 0 through 7.
PRINT #1, "output 16; :calc3:pass:sour 3; sour?"
PRINT #1, "enter 16"
:CLIMits:FAIL?
:CALCulate3:CLIMits:FAIL?
This query command is used to obtain the composite result of the LIMIT 1 and LIMIT 2 tests.
The composite result is the logical OR'ed summary of LIMIT 1 and LIMIT 2:
1 = One or both tests have failed.
0 = Both tests have passed.
In the event of a failure (1), you can determine which test(s) has failed by using the fail com-
mand of each limit (:LIMit1:FAIL? and :LIMit2:FAIL?).
Specify "pass" pattern
Read composite result of limit tests
' Enable auto-clear and
query
' Get response message
from 2002
' Select line #3
' Get response message from
2002

Advertisement

Table of Contents
loading

Table of Contents