Appendix A API Commands
ChartScan User’s Manual A-39
K - Enter Calibration Mode
TYPE
Calibration
EXECUTION
Immediate
SYNTAX
Kkey
Enter Calibration Mode if the keyword (or password) is correct, where key is
the keyword in the form of a 5-digit number nnnnn. Therefore the
password can be no longer than 5 characters.
K?
Query Kkey as defined above.
DESCRIPTION
Note: Calibration should only be performed by a qualified metrology lab. If necessary contact the f actory for
assistance.
The Enter Calibration Mode (K) command places the unit into Calibration Mode. While in Calibration Mode the
unit may be calibrated using any of the defined calibration commands. In addition, all other c ommands are valid
during Calibration Mode. However, if the unit is not in Calibration Mode, none of the defined calibration
commands are valid, and an error condition will be generated if any of these commands are issued.
The K command requires a pre-defined keyword as a parameter. This keyword must match the existing keyword
definition in order to enter Calibration Mode. If the keyword is not correct, Calibration Mode will not be entered
and no calibration commands will be processed.
Note: If the keyword becomes lost or forgotten a new keyword can be issued with the *K command.
Note: Refer to Chapter 6 for detailed calibration instruction.
EXAMPLE
PRINT#1, “OUTPUT07;K12345X”
‘ Enter Calibration Mode with the keyword 12345
PRINT#1, “OUTPUT07;U2X”
‘ Check for keyword error
PRINT #1, “ENTER07"
INPUT#2, C%
‘ Get the Calibration Status Register
IF (C% AND 16) THEN
‘ Is there a keyword error?
PRINT,"ERROR-INVALID KEYWORD”
HALT
‘ If so, stop execution
ENDIF
‘ Connect short across applicable channel
PRINT#1, “OUTPUT10;H17X”
‘ Calculate offset for card #2
‘ Wait for command to complete
‘ Wait until trigger LED stops flashing
‘ Apply (-) precision voltage
PRINT#1, “OUTPUT10;G17,1X”
‘ Calculate (-) gain for card #2
‘ Wait for command to complete
‘ Apply (+) precision voltage
PRINT#1, “OUTPUT10;G17,1X”
‘ Calculate (+) gain for card #2
‘ Wait for command to complete
‘ Remove precision voltage
PRINT# 1, “EX”
‘ End Calibration Mode