def niDigital_GetError(self, vi, error_code, error_description_buffer_size, error_description):
    with self._func_lock:
        if (self.niDigital_GetError_cfunc is None):
            self.niDigital_GetError_cfunc = self._get_library_function('niDigital_GetError')
            self.niDigital_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)]
            self.niDigital_GetError_cfunc.restype = ViStatus
    return self.niDigital_GetError_cfunc(vi, error_code, error_description_buffer_size, error_description)
def niDigital_GetError(self, vi, error_code, error_description_buffer_size, error_description):
    with self._func_lock:
        if (self.niDigital_GetError_cfunc is None):
            self.niDigital_GetError_cfunc = self._get_library_function('niDigital_GetError')
            self.niDigital_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)]
            self.niDigital_GetError_cfunc.restype = ViStatus
    return self.niDigital_GetError_cfunc(vi, error_code, error_description_buffer_size, error_description)