Signametrics
38
Parameter
Type/Description
nDevices
* int
Points to a location at which the number of devices is saved.
Return Value
Integer string length if successful, or an error code.
Value
Meaning
Negative Value
Error code
Positive Value < 100
The length of the returned string
Postive Value
≥
100
Warning code
Example
int I; int number;
I = DMMGetNumDevices(& number);
DMMGetRange
Description
Get DMM range code.
#include "SMU2060.H"
#include "DMMUser.h"
int DMMGetRange
(
int
nDmm
)
Remarks
This function returns the DMM range code. The range codes are in the sequence of 0, 1,
2, 3, … where 0 is the lowest range.
Parameter
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting
with zero.
Return Value
Integer value corresponding to the currently set DMM range, or an error code.
Value
Meaning
Zero or positive value
Range; zero being the lowest
Negative Value
Error code
Example
int
id;
if(DMMGetRange == 0) printf("Lowest range selected");
DMMGetRate
Description
Get the currently set reading rate
#include "SMU2060.H"
int
DMMGetRate(int
nDmm
, double *
lpdRate
)
Remarks
This function returns a double floating rate in readings per second. See
DMMSetRate
for details
Parameter
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
lpdRate
double *
Pointer where the rate is saved to.
Return Value
Integer value version code or an error code.
Value
Meaning