Agilent Technologies E4371A Lawn Mower User Manual


 
Programming Overview - 5
55
To program one test to cause a cell to fail if the voltage does not exceed 4 volts within 30 minutes, and
another test to cause a test to fail if the voltage reaches 4 volts in under 5 minutes use:
cfSetSeqTest(server, 1, CF_VOLT_LE, 4, CF_TEST_AT, 30 *
SECONDS_PER_MINUTE, CF_FAIL);
cfSetSeqTest(server, 1, CF_VOLT_GE, 4, CF_TEST_BEFORE, 5 *
SECONDS_PER_MINUTE, CF_FAIL);
The time test type and time limit determines when a measurement is performed. CF_TEST_BEFORE
specifies that the measurement is performed continuously from the start of the step until the time limit.
CF_TEST_AFTER specifies that the measurement is performed continuously from the time limit until
the step is finished. CF_TEST_AT specifies that the measurement is performed once at the time limit.
If a test is true, NEXT causes the output to go to the next step, bypassing any remaining tests. FAIL
causes that specific output to be open circuited, removed from the sequence, and tagged as having failed.
If a measurement test is false, nothing happens.
Sequence Control
The diagram below shows the various run states of the instrument or group. It wakes up at power-on in
the CF_NOT_READY state, and stays in this state until selftest and initialization is completed and the dc
power supply on the power bus is turned on. This may take a few seconds. In the CF_NOT_READY
state, the outputs cannot be programmed on. The instrument is also in this state during calibration.
CF_NOT_ READY
CF_IDLE
CF_ERASING
Power-on
Calibration
Selftest
Powerbus not ready
Abort
Calibration done
Selftest passed
Powerbus ready
CF_INITIATED
CF_FORMING
Initiated
Erase done
Trigger occurred
Forming complete
Figure 5-3. Instrument Run State