Operator`s manual

Table Of Contents
79 Signametrics
DMMGetAverageVAC
SMU2060 SMU2064
Description Measure average of an AC voltage
#include "SMX2060.h"
int DMMGetAverageVAC(int nDmm, double dFrequency, double *lpdAvg)
Remarks This function returns a double floating value of the AC average voltage of a signal. The
Signale is converted to its absolute value (rectified) and averaged over one or more
periods. The DMM must be in the DC voltage measurement mode, and the appropriate
range selected. The signal frequency dFrequency, must be entered.
Parameter
Type/Description
nDmm
int Identifies the DMM. DMMs are numbered starting with zero.
dFrequency
Double The signal frequency
lpdAvg
double * Pointer where the AC Average is saved at.
Return Value Integer value version code or an error code.
Value
Meaning
Negative Value
Error code
Example
int status; double ACAverage;
status = DMMGetAverageVAC(0, 60.0, & ACAverage);
DMMGetBufferSize
SMU2060 SMU2064
Description Return the currently selected internal buffer size.
#include "SMU2060.h"
#include "USBDMMUser.h"
int DMMGetBufferSize(int nDmm, int * lpiLength)
Remarks This function returns the currently set buffer size. This value can be 80 or 120. The value
depends on the settings of the Aperture value.
Parameter
Type/Description
iDmm
int Identifies the DMM. DMMs are numbered starting with zero.
lpiLength
Int * Pointer at which the buffer length is stored.
Return Value The return value is one of the following constants.
Value
Meaning
Value int Error or Warning code
Example int length;