def _parse_typedefs(self):
"""
Determines the ctypes data types of the Task and Cal handles
based on the version of the NI-DAQmx driver installed.
"""
from nidaqmx.system.system import System
system = System.local()
# If DAQmx 8.8 and lower, TaskHandle is a typedef for uInt32 since
# DAQmx didn't support 64-bit applications then.
version = system.driver_version
if version.major_version <= 8 and version.minor_version <= 8:
self._task_handle = ctypes.c_uint
else:
self._task_handle = ctypes.c_void_p
self._cal_handle = ctypes.c_uint
评论列表
文章目录