コード例 #1
0
ファイル: daqmx.py プロジェクト: epage/DAQpy
def get_daqmx_update_version():
   return utils.get_scalar(c_system.DAQmxGetSysNIDAQUpdateVersion, ctypes.c_uint32)
コード例 #2
0
ファイル: daqmx.py プロジェクト: epage/DAQpy
def get_daqmx_minor_version():
   return utils.get_scalar(c_system.DAQmxGetSysNIDAQMinorVersion, ctypes.c_uint32)
コード例 #3
0
ファイル: daqmx.py プロジェクト: epage/DAQpy
def get_physical_chan_bool_attribute(devName, attrId):
   value = utils.get_scalar(c_daqmx.DAQmxGetPhysicalChanAttribute, ctypes.c_uint32, ctypes.c_char_p(devName), ctypes.c_int32(attrId))
   return bool(value)
コード例 #4
0
ファイル: daqmx.py プロジェクト: epage/DAQpy
def get_physical_chan_double_attribute(devName, attrId):
   return utils.get_scalar(c_daqmx.DAQmxGetPhysicalChanAttribute, ctypes.c_double, devName, ctypes.c_int32(attrId))
コード例 #5
0
ファイル: daqmx.py プロジェクト: epage/DAQpy
def get_device_bool_attribute(devName, attrId):
   value = utils.get_scalar(c_daqmx.DAQmxGetDeviceAttribute, ctypes.c_uint32, ctypes.c_char_p(devName), ctypes.c_int32(attrId))
   return bool(value)
コード例 #6
0
ファイル: daqmx.py プロジェクト: epage/DAQpy
def get_device_double_attribute(devName, attrId):
   return utils.get_scalar(c_daqmx.DAQmxGetDeviceAttribute, ctypes.c_double, devName, ctypes.c_int32(attrId))