Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, expected_value):
_ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0)
def __init__(self):
_PointerMatcher.__init__(self, _visatype.ViBoolean)
def __init__(self, expected_size_or_value):
_BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value)
Monitors the progress of the acquisitions and/or generations
corresponding to sessions.
Args:
sessions (list of (Driver Session or nitclk.SessionReference)): sessions is an array of sessions that are being synchronized.
Returns:
done (bool): Indicates that the operation is done. The operation is done when each
session has completed without any errors or when any one of the sessions
reports an error.
'''
session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160
sessions_ctype = get_ctypes_pointer_for_buffer(value=_converters.convert_to_nitclk_session_number_list(sessions, _visatype.ViSession), library_type=_visatype.ViSession) # case B520
done_ctype = _visatype.ViBoolean() # case S220
error_code = self._library.niTClk_IsDone(session_count_ctype, sessions_ctype, None if done_ctype is None else (ctypes.pointer(done_ctype)))
errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
return bool(done_ctype.value)
Monitors the progress of the acquisitions and/or generations
corresponding to sessions.
Args:
sessions (list of (Driver Session or nitclk.SessionReference)): sessions is an array of sessions that are being synchronized.
Returns:
done (bool): Indicates that the operation is done. The operation is done when each
session has completed without any errors or when any one of the sessions
reports an error.
'''
session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160
sessions_ctype = get_ctypes_pointer_for_buffer(value=_converters.convert_to_nitclk_session_number_list(sessions), library_type=_visatype.ViSession) # case B520
done_ctype = _visatype.ViBoolean() # case S220
error_code = self._library.niTClk_IsDone(session_count_ctype, sessions_ctype, None if done_ctype is None else (ctypes.pointer(done_ctype)))
errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
return bool(done_ctype.value)