def niDigital_GetPatternName(self, vi, pattern_index, name_buffer_size, name):
    with self._func_lock:
        if (self.niDigital_GetPatternName_cfunc is None):
            self.niDigital_GetPatternName_cfunc = self._get_library_function('niDigital_GetPatternName')
            self.niDigital_GetPatternName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)]
            self.niDigital_GetPatternName_cfunc.restype = ViStatus
    return self.niDigital_GetPatternName_cfunc(vi, pattern_index, name_buffer_size, name)
def niDigital_GetPatternName(self, vi, pattern_index, name_buffer_size, name):
    with self._func_lock:
        if (self.niDigital_GetPatternName_cfunc is None):
            self.niDigital_GetPatternName_cfunc = self._get_library_function('niDigital_GetPatternName')
            self.niDigital_GetPatternName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)]
            self.niDigital_GetPatternName_cfunc.restype = ViStatus
    return self.niDigital_GetPatternName_cfunc(vi, pattern_index, name_buffer_size, name)