def do_num_booleans_per_chan(self):
"""
int: Indicates the number of Boolean values expected per channel
in a sample for line-based writes. This property is
determined by the channel in the task with the most digital
lines. If a channel has fewer lines than this number, NI-
DAQmx ignores the extra Boolean values.
"""
val = ctypes.c_uint()
cfunc = lib_importer.windll.DAQmxGetWriteDigitalLinesBytesPerChan
if cfunc.argtypes is None:
with cfunc.arglock:
if cfunc.argtypes is None:
cfunc.argtypes = [
lib_importer.task_handle,
ctypes.POINTER(ctypes.c_uint)]
error_code = cfunc(
self._handle, ctypes.byref(val))
check_for_error(error_code)
return val.value
评论列表
文章目录