Appendix A API Command Reference
NetScan Users Manual A-31
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 c ontact the factory for
assistance.
The Enter Calibration Mode (K) command places the unit into Calibration Mode. While i n Cal ibration Mode the
unit may be calibrated using any of the defined calibration commands. I n addi t ion, all other commands 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 matc h t he exist ing 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, K12345X
Enter Calibration Mode with the keyword 12345
PRINT#1, U2X
Check for keyword error
INPUT#1, A$
C% = VAL(A$)
Get the Calibration Status Register
IF (C% AND 16) THEN
Is there a keyword error?
PRINT,"ERROR-INVALID KEYWORD
STOP
If so, stop execution
ENDIF
Connect short across applicable channel
PRINT#1, H17X
Calculate offset for card #2
Wait for command to complete
Wait until trigger LED stops flashing
Apply (-) precision voltage
PRINT#1, G17,1X
Calculate (-) gain for card #2
Wait for command to complete
Apply (+) precision voltage
PRINT#1, G17,1X
Calculate (+) gain for card #2
Wait for command to complete
Remove precision voltage
PRINT#1, EX
End Calibration Mode