andor3.error module

Error code definitions and exception class for dealing with errors reported from the Andor SDK.

exception andor3.error.AndorError(error_code)[source]

Bases: RuntimeError

Exception used to indicate an error returned by the Andor SDK3.

Parameters

error_code – Numerical error code used by the Andor SDK3.

class andor3.error.AT_ERR(value)[source]

Bases: IntEnum

Enumeration listing the valid Andor SDK3 numerical error codes.

BUFFERFULL = 14
COMM = 17
CONNECTION = 10
DEVICEINUSE = 38
DEVICENOTFOUND = 39
EXCEEDEDMAXSTRINGLENGTH = 9
HARDWARE_OVERFLOW = 100
INDEXNOTAVAILABLE = 7
INDEXNOTIMPLEMENTED = 8
INVALIDALIGNMENT = 16
INVALIDHANDLE = 12
INVALIDSIZE = 15
NODATA = 11
NOMEMORY = 37
NOTIMPLEMENTED = 2
NOTINITIALISED = 1
NOTREADABLE = 4
NOTWRITABLE = 5
NULL_COUNT_VAR = 30
NULL_EVCALLBACK = 33
NULL_FEATURE = 20
NULL_HANDLE = 21
NULL_IMPLEMENTED_VAR = 22
NULL_ISAVAILABLE_VAR = 31
NULL_MAXSTRINGLENGTH = 32
NULL_MAXVALUE = 27
NULL_MINVALUE = 26
NULL_PTRSIZE = 36
NULL_QUEUE_PTR = 34
NULL_READABLE_VAR = 23
NULL_READONLY_VAR = 24
NULL_STRING = 29
NULL_VALUE = 28
NULL_WAIT_PTR = 35
NULL_WRITABLE_VAR = 25
OUTOFRANGE = 6
READONLY = 3
STRINGNOTAVAILABLE = 18
STRINGNOTIMPLEMENTED = 19
SUCCESS = 0
TIMEDOUT = 13
property description

Return a string describing the error code.