Operator`s manual

Table Of Contents
Signametrics 162
ClearBuffer
SMU2060 SMU2064
Description Clears the contents of the internal buffer.
#include "SMU2060.h"
int DMMClearBuffer(int nDmm, int iNumber, int iValue)
Remarks This function fills the internal buffer with iValue. It is useful when testing the various
trigger functions. Novmally iVlaue is set to zero.
Parameter
Type/Description
iValuet
int Value to fill into the buffer. Normally zero. Can be any value from
0 to 255 (0XFF)
nDmm
int Identifies the DMM. DMMs are numbered starting with zero.
Return Value Integer error code..
Value
Meaning
DMM_OKAY
Operation successfully completed.
Negative Value
Error code
Example int status = DMMClearBuffer(0, 0);
5.9 Error Codes
Operation of the DMM may be impaired, should be aborted or is not possible following an Error. Use the
DMMErrString() function, to retrieve the string describing the error. There values are included in the
SMU2060.H file.
DMM_OKAY 0 // no error
DMM_E_INIT -1 // Dmm not initialized
DMM_E_CAL_R -2 // cannot find valid calibration record
DMM_ERR_AD_HW -3 // A/D does not respond. H/W error
DMM_NO_CAL_RECORD -4 // can't find cal record for DMM
DMM_TRIG_ERR -5 // Trigger circuit error
DMM_GUARD_COM -6 // Microcontroller communication error
DMM_TIMEOUT -7 // process timed out Error
DMM_GUARD_XING -8 // Guard crossing is broken
DMM_WRONG_TYPE -9 // Wrong Cal record for DMM type
DMM_UNKNOWN_ERROR -10 // Undefined Error
DMM_CANT_OPEN_USB -11 // Can't open USB device. Already open
DMM_GENERAL_ERR -12 // General Error
DMM_CAL_STORE -13 // Error reading Cal record from local storage
DMM_CREAT_CAL_FILE -14 // Can't create named cal file to write to
DMM_OPEN_CAL_FILE -15 // Can't open cal file for reading cal record
DMM_CREAT_CAL_RCRD -16 // Can't create on-board Cal Record
DMM_ERROR_EEPROM_DTYPE -17 // Invalid dmm type in EEProm
DMM_ERROR_READBYTES -18 // unexpected number of bytes read
DMM_ERROR_WRITEBYTES -19 // unexpected number of bytes written