Signametrics
54
5.8 Maintanance Commands
GrdXingTest
Description
Perform the specified test
#include "SM2060.h"
int
GrdXingTgest(int
nDmm, int iNumber, int iTest)
Remarks
Perform the specified test as indicated by
iTest
. Repeat it for
iNumber
times. This
function is used to perform basic H/W tests.
Parameter
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
iTest
int
Test type. 0: Basic Read/Write. 1: Toggle Reset line iNumber
times. 2: High Speed Guard Crossing stimulation. 3: Guarded
controller communication test. 4: Guard Crossing loopback test. 5:
High Speed Guard Crossing test (SM2064).
iNumber
int
Number of tests to be repeated.
Return Value
Integer error code.
Value
Meaning
DMM_OKAY
Operation successfully completed.
Negative Value
Error code
Example
int i =
GrdXingTest(0, 1, 3); // Test Guarded controller
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.
DMM_OKAY
0
// no error
DMM_E_CAL
-1
// cannot open the calibration file at the specified location.
DMM_E_INIT
-3
// DMM must be initialized in order to execute the operation.
DMM_E_IO
-4
// I/O Error, DMM not responding
NOT_FOUND
-5
// DMM was not detected PCI bus
DMM_E_CAL_R
-6
// Not found a valid calibration record in specified file.
ERR_AD_HW
-7
// H/W Error, the A/D does not respond.
ERR_HW_INIT
-8
// H/W error, can't access H/W to initialize it. May be due to bad address
NO_CAL_RECORD
-9
// can't find a cal record for for this DMM in the specified cal file.
ID_HW_ERR
-10
// Can't read ID from DMM
GUARD_COM
-12
// Communication error with DMM uP
TIMEOUT
-13
// process timed out Error
GUARD_XING
-14
// Guard crossing is broken
CONTROLR_COM
-15
// Microcontroller communication error
OVERRUN
-16
// Communication Overrun error
FRAME
-17
// Communication Frame error
RCV_FIFO
-18
// Com receive Fifo error