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.
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 4-32)
SaveCableCompCaps590 user module
This function saves the nominal values of the capacitors used to do the 590 cable compensation procedure to the
indicated file. If no cable compensation file exists, this module creates one if the user has the proper system
permissions.
Usage
status = SaveCableCompCaps590(char *CabCompFile, double Lo2p100k, double Lo2p1M, double
Hi2p100k, double Hi2p1M, double Lo20p100k, double Lo20p1M, double Hi20p100k, double
Hi20p1M, double Lo200p100k, double Lo200p1M, double Hi200p100k, double 200p1M,
double Lo2n100k, double Lo2n1M, double Hi2n100k, double Hi2n1M);