This subsystem specifies measurements and indicates when a limit has been exceeded.
The following example enables limit testing of 100 DC voltage measurements and indicates whether measurements were outside the range of 3.2 to 3.4 V. Measurements above 3.4 V set bit 12 (Upper Limit Failed) of the Questionable Status Register; measurements below 3.2 V set bit 11 (Lower Limit Failed).
*CLS
STAT:PRES
CONF:VOLT 10,.001
SAMP:COUN 100
CALC:LIM:LOW 3.2
CALC:LIM:UPP 3.4
CALC:LIM:STAT ON
INIT
*WAI
STAT:QUES?
Typical Response: +4096 (at least one measurement was above the upper limit)
CALCulate:LIMit:CLEar[:IMMediate]
CALCulate:LIMit:{LOWer|UPPer}[:DATA]
Clears front panel indications of limits being exceeded and clears bit 11 ("Lower Limit Failed") and bit 12 ("Upper Limit Failed") in the Condition Register of the Questionable Data Register event register group. The corresponding event register bits are unaffected.
A condition register continuously monitors the state of the instrument. Condition register bits are updated in real time; they are neither latched nor buffered.
An event register is a read-only register that latches events from the condition register. While an event bit is set, subsequent events corresponding to that bit are ignored.
Parameter | Typical Return |
---|---|
(none) | (none) |
Clear the limit test results: CALC:LIM:CLE |
Sets an upper or lower limit.
Parameter | Typical Return |
---|---|
-1.0E+15 to -1.0E-15, or 0.0 (default) or +1.0E-15 to 1.0E+15 |
+1.00000000E+00 |
See Example. |
Enables or disables limit testing.
Parameter | Typical Return |
---|---|
{ON|1|OFF|0}. Default: OFF. | 0 (OFF) or 1 (ON) |
See Example. |