
Signametrics
116
tive Value
DMM_E
lid DMM function.
Example
status = DMMSetFuncRange(0, VDC_3V);
DMMSet
SM2060
;
SM
n
.
#include "DMMUser.h"
int
DMMSetFunction
(
int
nDmm, int nFunc
)
emarks
This function sets the function used by the DMM. The DMMUser.h file contains a table
of values defined as
VDC
,
VAC
,
IAC
,
IDC
,
OHMS4W
,
OHMS2W etc..
. Not all functions
are available for all DMM types.
Parameter
Nega
Error code
_FUNC
Inva
Function
2064
;
Descriptio
Set the DMM function
#include "SM206032.h"
R
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
nFunc
int
A pre-defined constant corresponding to the desired function.
Return Value
The return value is one of the following constants.
Value
Meaning
DMM_OKAY
DMM initialized successfully.
Value
Error code
DMM_E_FUNC
Invalid DMM function.
Example
status = DMMSetFunction(0, INDUCTANCE);
DMMSetInductFreq
SM2060
SM2064
;
Description
Set the frequency of the Inductance Source.
#include "SM206032.h"
int
DMMSetInductFreq(int
nDmm, double lpdFreq)
Remarks
This function sets the frequency of the Inductance measurement source. The value of the
frequency should be between 20 Hz and 100kHz. This function overrides the default
frequency for each of the inductance ranges. Therefore, setting a new Inductance
measurement range changes this frequency, and may result in higher error than that at the
default value. Use this function after setting the range.
Parameter
Negative
Type/Description