Operator`s manual

45 Signametrics
Example double reading; int status = DMMReadNorm(0, &reading);
DMMReadNsamples
Description Take a reading that is in base value.
#include "SMU2060.h"
int DMMReadNsamples(int nDmm, int iN)
Remarks In response to this command the DMM take iN measurements, and sends them back to
the USB bus. In order not to loose any, and cause overrun, use
DMMGetStoredReading() in a tight loop. Measurements are made using the currently
selected function, range and aperture.
Parameter
Type/Description
nDmm
int Identifies the DMM. DMMs are numbered starting with zero.
iN
Int The number of measurements to be taken. This value must be
between 2 and 10,000.
Return Value Integer value version code or an error code.
Value
Meaning
POS_FS or NEG_FS
Positive or Negative Full Scale, or overrange
Negative Value
Error code
DMM_OKAY
No error
Example
int status = DMMReadNsamples(0, 100);
DMMReadStr
Description Return the next reading from the DMM formatted for printing.
#include "SMU2060.H"
int DMMReadStr(int nDmm, LPSTR lpszReading)
Remarks This function is the string version of DMMRead(). It reads the next measurement result,
performs all scaling and conversion required, and returns the result as a string formatted
for printing. The print format is determined by the range and function. See DMMRead()
for more details.
Parameter
Type/Description
nDmm
int Identifies the DMM. DMMs are numbered starting with zero.
lpszReading
LPSTR Points to a buffer (at least 64 characters long) to hold the
converted result. The return value will consist of a leading sign, a
floating-point value in exponential notation, and a units specifier.
Return Value The return value is one of the following constants, or the string length is OK.