DSPEC 50
®
and DSPEC 502
®
Digital Gamma-Ray Spectrometer User’s Manual
932502G / 0618
For commands across the Ethernet interface, an optional checksum may be added to the end of
any command sent to MCB API. The checksum is a 1-byte unsigned integer sum of all of the
characters in a command, treated as unsigned integers, up to and including the comma or
space(s) that separates the checksum from the command. The checksum simply appears as an
extra parameter added to the end of the command parameter list. For commands that do not nor-
mally have parameters, the checksum appears as the only parameter separated from the header by
one or more spaces. All optional parameters must be included in a command if a checksum is to
be provided so that the checksum is not mistaken by the MCB API as a parameter. For example,
the SET_WINDOW command must include the two optional parameters, start and length, if the
checksum is provided (e.g.,
SET_WINDOW 0,16384,209
).
7.1.2. USB-Interface Error Codes
On each completion of the command, the MCB returns a macro error code and micro error code.
The macro error code represents the general class of error with 0 meaning no error, and the
micro error code represents the sub-class of error with 0 meaning no error. In case of error
condition, you can use the
MIOGetLastError
(DLL interface) or
GetErrMajor, GetErrMinor
(ActiveX control interface).
Macro error codes:
0
Success
1
Power-up just occurred
2
Battery-backed data lost
129
Command syntax error
131
Command execution error
132
Invalid Command
For macro code 129 (syntax error) or 131 (execution error), the following apply:
1
Invalid Verb
2
Invalid Noun
4
Invalid Modifier
128
Invalid first parameter
129
Invalid second parameter
130
Invalid third parameter
131
Invalid fourth parameter
132
Invalid number of parameters
133
Invalid command
78
Содержание DSPEC 50
Страница 4: ... Intentionally blank iv ...
Страница 8: ... Intentionally blank viii ...
Страница 10: ...x ...
Страница 26: ...DSPEC 50 and DSPEC 502 Digital Gamma Ray Spectrometer User s Manual 932502G 0618 Intentionally blank 16 ...
Страница 72: ...DSPEC 50 and DSPEC 502 Digital Gamma Ray Spectrometer User s Manual 932502G 0618 Intentionally blank 62 ...
Страница 76: ...DSPEC 50 and DSPEC 502 Digital Gamma Ray Spectrometer User s Manual 932502G 0618 Intentionally blank 66 ...
Страница 86: ...DSPEC 50 and DSPEC 502 Digital Gamma Ray Spectrometer User s Manual 932502G 0618 Intentionally blank 76 ...
Страница 132: ...DSPEC 50 and DSPEC 502 Digital Gamma Ray Spectrometer User s Manual 932502G 0618 Intentionally blank 122 ...
Страница 136: ...DSPEC 50 and DSPEC 502 Digital Gamma Ray Spectrometer User s Manual 932502G 0618 Intentionally blank 126 ...
Страница 144: ...DSPEC 50 and DSPEC 502 Digital Gamma Ray Spectrometer User s Manual 932502G 0618 Intentionally blank 134 ...
Страница 148: ...DSPEC 50 and DSPEC 502 Digital Gamma Ray Spectrometer User s Manual 932502G 0618 Intentionally blank 138 ...