Operator`s manual

41 Signametrics
nDmm
int Identifies the DMM. DMMs are numbered starting with zero.
lpfResult
double * Pointer to the location which holds the version.
Return Value Integer error code.
Value
Meaning
Negative Value
Error code
Example int status; double ver;
status = DMMGetVer(0, &ver);
DMMInit
Description Initialize a DMM.
#include "SMU2060.H"
int DMMInit(int nDmm, LPCSTR lpszCal)
Remarks This function must be the first function to be executed. It opens the driver for the
specified DMM. The first DMM being 0, the second 1, etc.. It also initializes the DMM
hardware and does extensive self test to the DMM hardware. It then initializes the
software and reads the appropriate calibration record for the respective DMM from the
file specified by lpszCa, followed by self calibration. If the calibration record is outdated,
it opens a warning window. If an error is detected, an error code is returned.
Parameter
Type/Description
nDmm
int Identifies the DMM. DMMs are numbered starting with zero.
lpszCal
LPCSTR Points to the name of the file containing the calibration
constants for the DMM. Calibration information is normally read
from the file named SM60CAL.DAT located in the current directory.
Return Value The return value is one of the following constants.
Value
Meaning
DMM_OKAY
DMM initialized successfully.
Negative Value
Error code
Example /* initialize DMM */
int i = DMMInit(0,"C:\SM60CAL.dat");// Initialize the first DMM
DMMIsAutoRange
Description Get the status of the autorange flag.
#include "SMU2060.H"