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 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.

Power-on

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

Page 55
Image 55
Agilent Technologies E4371A, E4370A, E4374A manual Sequence Control, Instrument Run State