def ctr_out_event_toggle_idle_state(self):
"""
:class:`nidaqmx.constants.Level`: Specifies the initial state of
the output terminal of the counter when
**ctr_out_event_output_behavior** is
**ExportActions2.TOGGLE**. The terminal enters this state
when NI-DAQmx commits the task.
"""
val = ctypes.c_int()
cfunc = (lib_importer.windll.
DAQmxGetExportedCtrOutEventToggleIdleState)
if cfunc.argtypes is None:
with cfunc.arglock:
if cfunc.argtypes is None:
cfunc.argtypes = [
lib_importer.task_handle, ctypes.POINTER(ctypes.c_int)]
error_code = cfunc(
self._handle, ctypes.byref(val))
check_for_error(error_code)
return Level(val.value)
评论列表
文章目录