MCPcopy Create free account
hub / github.com/LabPy/lantz / _get_error_string

Method _get_error_string

lantz/drivers/legacy/ni/daqmx/base.py:68–75  ·  view source on GitHub ↗
(self, error_code)

Source from the content-addressed store, hash-verified

66 _CHANNELS = {}
67
68 def _get_error_string(self, error_code):
69 size = self.lib.GetErrorString(error_code, None, 0)
70 if size <= 0:
71 raise InstrumentError('Could not retrieve error string.')
72 err, msg = self.lib.GetErrorString(error_code, *RetStr(size))
73 if err < 0:
74 raise InstrumentError('Could not retrieve error string.')
75 return msg
76
77 def _get_error_extended_error_info(self):
78 size = self.lib.GetExtendedErrorInfo(None, 0)

Callers 1

_return_handlerMethod · 0.95

Calls 2

InstrumentErrorClass · 0.90
RetStrClass · 0.90

Tested by

no test coverage detected