![background image](http://html2.mh-extra.com/html/keithley/2308/2308_user-manual_3948247219.webp)
2308-900-01 Rev. A / July 2008
Return to
Section Topics
B-7
Model 2308 Portable Device Battery/Charger Simulator User’s Manual
Appendix B: Calibration Reference
Using the *OPC command
Using *OPC is the preferred method to detect the end of each calibration step. To use
*OPC
, do
the following:
1. Enable operation complete by sending
*ESE 1
. This command sets the OPC (operation
complete bit) in the standard event enable register, allowing operation complete status from
the standard event status register to set the ESB (event summary bit) in the status byte
when operation complete is detected.
2. Send the *OPC command immediately following each calibration command. For
example:
:CAL:PROT:STEP0 14;*OPC
Note that you must include the semicolon (;) to separate the two commands, and that the
*OPC command must appear on the same line as the command.
3. After sending a calibration command, repeatedly test the ESB (Event Summary) bit (bit 5) in
the status byte until it is set (use
*STB?
to request the status byte).
4. Once operation complete has been detected, clear OPC status using one of two methods:
(1) use the *ESR? query, then read the response to clear the standard event status register,
or (2) send the *CLS command to clear the status registers. Note that sending
*CLS
will
also clear the error queue and operation complete status.
Using the *OPC? query
With the *OPC? (operation complete) query, the instrument will place an ASCII 1 in the output
queue when it has completed each step. To determine when the OPC response is ready, do the
following:
1. Send
the
*OPC?
query immediately following each calibration command. For
example:
:CAL:PROT:STEP0 14;*OPC?
2. Wait for an ASCII 1 to be read from the unit after addressing it to talk.
Generating an SRQ on calibration complete
An IEEE-488 bus SRQ (service request) can be used to detect operation complete instead of
repeatedly polling the Model 2308. To use this method, send both
*ESE 1
and
*SRE 32
to the
instrument, then include the
*OPC
command at the end of each calibration command line, as
covered above. Clear the SRQ by querying the ESR (using the
*ESR?
query) to clear OPC status,
then request the status byte with the
*STB?
query to clear the SRQ.
Refer to your controller's documentation for information on detecting and servicing SRQs.
Summary of Contents for 2308
Page 2: ......
Page 12: ...This page left blank intentionally...
Page 32: ...This page left blank intentionally...
Page 106: ...This page left blank intentionally...
Page 140: ...This page left blank intentionally...
Page 208: ...This page left blank intentionally...
Page 220: ...This page left blank intentionally...