Signametrics
138
the specified test as indicated by
iTest
. Repeat it for
iNumber
times. This
5.8 Maintanance Commands
GrdXingTest
SM2060
;
SM2064
;
Description
Perform the specified test
#include "SM206032.h"
int
GrdXingTgest(int
nDmm, int iNumber, int iTest)
emarks
Perform
R
function is used to perform basic H/W tests.
Parameter
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
int
Test
d/Write.
e iNumber
times. 2:
Guard Crossing st
Guarded
controll
tion test. 4: Gu
oopback test. 5:
High Speed Guard Crossing test (SM2064).
r
t
Num
be repeated.
turn V
Integer error code.
iTest
type. 0: Basi
High Speed
c Rea
1: Toggle Reset lin
imulation. 3:
ard Crossing l
er communica
iNumbe
in
ber of tests to
Re
alue
Value
Meaning
DMM_OK
on su
leted.
ive V
code
mple
in
gTest
; // Test G
ntroller
5.7 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.
HI_SPD_XING
-2
// High Speed Guard Crossing error, SM2064
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
TRIG_ERR
-11
// Trigger circuit error
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
AY
Operati
ccessfully comp
Negat
alue
Error
Exa
t i =
GrdXin
(0, 1, 3)
uarded co