107
Signametrics
DMMQuickInit
SMU2060
SMU2064
Description
Initialize a DMM without tests.
#include "SMU2060.h"
int DMMQuickInit
(
int
nDmm,
LPCSTR
lpszCal
)
Remarks
It is not recommended to use this function for initialization since it is a short cut and does
not do all that is necessary for proper initialization. Use
DMMInit
instead. This function
or
DMMInit()
must be the first functions 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. This function is designed for speed and therefore does not perform the various
self tests and calibration performed by the DMMInit functions. It initializes the software
and reads the appropriate calibration record for the DMM from the file specified by
lpszCal
. Depending on the operating system, the execution of this function can be under
100ms.
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 = DMMQuickInit(0,"C:\SM60CAL.dat"); // Quickly initialize the first DMM
DMMRead
SMU2060
SMU2064
Description
Return the next floating-point reading from the DMM.
#include "SMU2060.h"
int
DMMRead(int
nDmm
, double *
lpdResult
)