Signametrics
48
DMMSetRate
Description
Set the measurement rate.
#include "SMU2060.h"
#include "USBDMMUser.h"
int DMMSetRate
(
int
nDmm,
int
iRate
)
Remarks
This function sets the rate at which the DMM makes measurements. The allowed values
are defined in the DMMUser.h file. The rate (
iRate
) can be set from 0.5rps (RATE_p5)
to 250rps (RATE_250). Some of the rates have specific power line rejection as indicated
in the specification part of this manual. See DMM
Parameter
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
iRate
int
A pre-defined constant corresponding to the desired rate.
Return Value
The return value is one of the following constants.
Value
Meaning
DMM_OKAY
DMM initialized successfully.
Negative Value
Error code
ERR_PARAMETER
Invalid measurement rate value entered.
Example
status = DMMSetRate(0, RATE_2);
// Set to 2rps