
Programming Overview - 5
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
Calibration
Selftest
Powerbus not ready
Abort
CF_NOT_ READY
Calibration done
Selftest passed
Powerbus ready
CF_IDLE
Initiated
CF_ERASING
Erase done
CF_INITIATED
Trigger occurred
CF_FORMING
Forming complete
Figure 5-3. Instrument Run State
55