-SCS Parameter Analyzer Reference Manual Appendix B: Using a Model 590 C-
4200A-901-01 Rev. C / February 2017 B-33
LoadCableCorrectionConstants
LoadCableCorrectionConstants reads the cable compensation parameters for the range and frequency
specified from the cable compensation file and sends these parameters to the 590.
Usage
status = LoadCableCorrectionConstants(char *CabCompFile, char *instr_id,
*frequency, int range);
Returned values are placed in the Analyze sheet; see Details
The complete name and path for the cable compensation file; see Details
instr_id
The CMTR instrument ID; this can be
through
, depending on the
configuration of your system
The frequency of the correction constant: 0 = 1 MHz; 1 = 100 kHz
The range of the correct constant; see Details
Details
If the file specified by CapCompFile does not exist, it is created. The path that you specify must
exist. When entering the path information, be sure to use two \ characters to separate each directory
level. For example, if your cable compensation file is in file C:\calfiles\590cal.dat, you would
enter C:\\calfiles\\590cal.dat.
range values
Range 100 kHz values 1 MHz values
2 nF/2 ms 2 nF/20 ms
The return values from status can be:
• 0: OK.
• -10000 (INVAL_INST_ID): An invalid instrument ID was specified. This generally means that
there is no instrument with the specified ID in your configuration.
• -10020 (COMP_FILE_ACCESS_ERR): There was an error accessing the cable compensation
file.
• -10021 (COMP_FILE_NOT_EXIST): The specified compensation file does not exist.
• -10022 (KI590_NOT_IN_KCON): There is no CMTR defined in your system configuration.
Also see
SaveCableCompCaps590 user module (on page B-34)