def niDigital_WaitUntilDone(self, vi, timeout):
    with self._func_lock:
        if (self.niDigital_WaitUntilDone_cfunc is None):
            self.niDigital_WaitUntilDone_cfunc = self._get_library_function('niDigital_WaitUntilDone')
            self.niDigital_WaitUntilDone_cfunc.argtypes = [ViSession, ViReal64]
            self.niDigital_WaitUntilDone_cfunc.restype = ViStatus
    return self.niDigital_WaitUntilDone_cfunc(vi, timeout)
def niDigital_WaitUntilDone(self, vi, timeout):
    with self._func_lock:
        if (self.niDigital_WaitUntilDone_cfunc is None):
            self.niDigital_WaitUntilDone_cfunc = self._get_library_function('niDigital_WaitUntilDone')
            self.niDigital_WaitUntilDone_cfunc.argtypes = [ViSession, ViReal64]
            self.niDigital_WaitUntilDone_cfunc.restype = ViStatus
    return self.niDigital_WaitUntilDone_cfunc(vi, timeout)