def niDigital_UnloadAllPatterns(self, vi, unload_keep_alive_pattern):
    with self._func_lock:
        if (self.niDigital_UnloadAllPatterns_cfunc is None):
            self.niDigital_UnloadAllPatterns_cfunc = self._get_library_function('niDigital_UnloadAllPatterns')
            self.niDigital_UnloadAllPatterns_cfunc.argtypes = [ViSession, ViBoolean]
            self.niDigital_UnloadAllPatterns_cfunc.restype = ViStatus
    return self.niDigital_UnloadAllPatterns_cfunc(vi, unload_keep_alive_pattern)
def niDigital_UnloadAllPatterns(self, vi, unload_keep_alive_pattern):
    with self._func_lock:
        if (self.niDigital_UnloadAllPatterns_cfunc is None):
            self.niDigital_UnloadAllPatterns_cfunc = self._get_library_function('niDigital_UnloadAllPatterns')
            self.niDigital_UnloadAllPatterns_cfunc.argtypes = [ViSession, ViBoolean]
            self.niDigital_UnloadAllPatterns_cfunc.restype = ViStatus
    return self.niDigital_UnloadAllPatterns_cfunc(vi, unload_keep_alive_pattern)