Operator`s manual

Table Of Contents
99 Signametrics
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
SMU2060 SMU2064
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. If a calibration file is not found or it is invalid, it reads the
calibration record from its on-board store and also saves it to a file specified in lpszCal.
Following, it performs self calibration. If the calibration record is outdated, it returns an
error as well as display a warning window indicating this. If any 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
SMU2060 SMU2064
Description Get the status of the autorange flag.
#include "SMU2060.h"
int DMMIsAutoRange(int nDmm)
Remarks This function returns the DMM autorange flag state.