Skip to content

Commit 3151edf

Browse files
authored
Pick up new metadata for mioDAQ configurable digital voltage feature (#653)
* Pick up new metadata for mioDAQ configurable digital voltage feature Signed-off-by: Siu Fong Tan <siu.fong.tan@ni.com> * Filter out CalculatedPower stuff until it is fully supported * Pull latest nidaqmx.proto from grpc-device --------- Signed-off-by: Siu Fong Tan <siu.fong.tan@ni.com>
1 parent 18cc3ee commit 3151edf

File tree

9 files changed

+2156
-1949
lines changed

9 files changed

+2156
-1949
lines changed

generated/nidaqmx/_stubs/nidaqmx_pb2.py

+1,938-1,936
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/nidaqmx/_stubs/nidaqmx_pb2.pyi

+53-6
Original file line numberDiff line numberDiff line change
@@ -3409,13 +3409,15 @@ class _PhysicalChannelInt32AttributeEnumTypeWrapper(google.protobuf.internal.enu
34093409
PHYSICALCHANNEL_ATTRIBUTE_PHYSICAL_CHAN_AI_TERM_CFGS: _PhysicalChannelInt32Attribute.ValueType # 9026
34103410
PHYSICALCHANNEL_ATTRIBUTE_PHYSICAL_CHAN_AO_TERM_CFGS: _PhysicalChannelInt32Attribute.ValueType # 10659
34113411
PHYSICALCHANNEL_ATTRIBUTE_PHYSICAL_CHAN_AI_POWER_CONTROL_TYPE: _PhysicalChannelInt32Attribute.ValueType # 12654
3412+
PHYSICALCHANNEL_ATTRIBUTE_PHYSICAL_CHAN_DIG_PORT_LOGIC_FAMILY: _PhysicalChannelInt32Attribute.ValueType # 12779
34123413

34133414
class PhysicalChannelInt32Attribute(_PhysicalChannelInt32Attribute, metaclass=_PhysicalChannelInt32AttributeEnumTypeWrapper): ...
34143415

34153416
PHYSICALCHANNEL_INT32_ATTRIBUTE_UNSPECIFIED: PhysicalChannelInt32Attribute.ValueType # 0
34163417
PHYSICALCHANNEL_ATTRIBUTE_PHYSICAL_CHAN_AI_TERM_CFGS: PhysicalChannelInt32Attribute.ValueType # 9026
34173418
PHYSICALCHANNEL_ATTRIBUTE_PHYSICAL_CHAN_AO_TERM_CFGS: PhysicalChannelInt32Attribute.ValueType # 10659
34183419
PHYSICALCHANNEL_ATTRIBUTE_PHYSICAL_CHAN_AI_POWER_CONTROL_TYPE: PhysicalChannelInt32Attribute.ValueType # 12654
3420+
PHYSICALCHANNEL_ATTRIBUTE_PHYSICAL_CHAN_DIG_PORT_LOGIC_FAMILY: PhysicalChannelInt32Attribute.ValueType # 12779
34193421
global___PhysicalChannelInt32Attribute = PhysicalChannelInt32Attribute
34203422

34213423
class _PhysicalChannelBoolAttribute:
@@ -3463,6 +3465,7 @@ class _PhysicalChannelResetAttributeEnumTypeWrapper(google.protobuf.internal.enu
34633465
PHYSICALCHANNEL_RESET_ATTRIBUTE_PHYSICAL_CHAN_AI_POWER_CONTROL_VOLTAGE: _PhysicalChannelResetAttribute.ValueType # 12652
34643466
PHYSICALCHANNEL_RESET_ATTRIBUTE_PHYSICAL_CHAN_AI_POWER_CONTROL_ENABLE: _PhysicalChannelResetAttribute.ValueType # 12653
34653467
PHYSICALCHANNEL_RESET_ATTRIBUTE_PHYSICAL_CHAN_AI_POWER_CONTROL_TYPE: _PhysicalChannelResetAttribute.ValueType # 12654
3468+
PHYSICALCHANNEL_RESET_ATTRIBUTE_PHYSICAL_CHAN_DIG_PORT_LOGIC_FAMILY: _PhysicalChannelResetAttribute.ValueType # 12779
34663469

34673470
class PhysicalChannelResetAttribute(_PhysicalChannelResetAttribute, metaclass=_PhysicalChannelResetAttributeEnumTypeWrapper): ...
34683471

@@ -3472,6 +3475,7 @@ PHYSICALCHANNEL_RESET_ATTRIBUTE_AO_POWER_AMP_CHANNEL_ENABLE: PhysicalChannelRese
34723475
PHYSICALCHANNEL_RESET_ATTRIBUTE_PHYSICAL_CHAN_AI_POWER_CONTROL_VOLTAGE: PhysicalChannelResetAttribute.ValueType # 12652
34733476
PHYSICALCHANNEL_RESET_ATTRIBUTE_PHYSICAL_CHAN_AI_POWER_CONTROL_ENABLE: PhysicalChannelResetAttribute.ValueType # 12653
34743477
PHYSICALCHANNEL_RESET_ATTRIBUTE_PHYSICAL_CHAN_AI_POWER_CONTROL_TYPE: PhysicalChannelResetAttribute.ValueType # 12654
3478+
PHYSICALCHANNEL_RESET_ATTRIBUTE_PHYSICAL_CHAN_DIG_PORT_LOGIC_FAMILY: PhysicalChannelResetAttribute.ValueType # 12779
34753479
global___PhysicalChannelResetAttribute = PhysicalChannelResetAttribute
34763480

34773481
class _PhysicalChannelDoubleAttribute:
@@ -6210,13 +6214,15 @@ class _LogicFamily:
62106214
class _LogicFamilyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LogicFamily.ValueType], builtins.type):
62116215
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
62126216
LOGIC_FAMILY_UNSPECIFIED: _LogicFamily.ValueType # 0
6217+
LOGIC_FAMILY_1POINT_8_V: _LogicFamily.ValueType # 16184
62136218
LOGIC_FAMILY_2POINT_5_V: _LogicFamily.ValueType # 14620
62146219
LOGIC_FAMILY_3POINT_3_V: _LogicFamily.ValueType # 14621
62156220
LOGIC_FAMILY_5_V: _LogicFamily.ValueType # 14619
62166221

62176222
class LogicFamily(_LogicFamily, metaclass=_LogicFamilyEnumTypeWrapper): ...
62186223

62196224
LOGIC_FAMILY_UNSPECIFIED: LogicFamily.ValueType # 0
6225+
LOGIC_FAMILY_1POINT_8_V: LogicFamily.ValueType # 16184
62206226
LOGIC_FAMILY_2POINT_5_V: LogicFamily.ValueType # 14620
62216227
LOGIC_FAMILY_3POINT_3_V: LogicFamily.ValueType # 14621
62226228
LOGIC_FAMILY_5_V: LogicFamily.ValueType # 14619
@@ -6592,6 +6598,35 @@ STRAIN_GAGE_BRIDGE_TYPE1_QUARTER_BRIDGE_I: StrainGageBridgeType1.ValueType # 10
65926598
STRAIN_GAGE_BRIDGE_TYPE1_QUARTER_BRIDGE_II: StrainGageBridgeType1.ValueType # 10272
65936599
global___StrainGageBridgeType1 = StrainGageBridgeType1
65946600

6601+
class _StrainGageRosetteMeasurementType:
6602+
ValueType = typing.NewType("ValueType", builtins.int)
6603+
V: typing_extensions.TypeAlias = ValueType
6604+
6605+
class _StrainGageRosetteMeasurementTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StrainGageRosetteMeasurementType.ValueType], builtins.type):
6606+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
6607+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_UNSPECIFIED: _StrainGageRosetteMeasurementType.ValueType # 0
6608+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_PRINCIPAL_STRAIN_1: _StrainGageRosetteMeasurementType.ValueType # 15971
6609+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_PRINCIPAL_STRAIN_2: _StrainGageRosetteMeasurementType.ValueType # 15972
6610+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_PRINCIPAL_STRAIN_ANGLE: _StrainGageRosetteMeasurementType.ValueType # 15973
6611+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_CARTESIAN_STRAIN_X: _StrainGageRosetteMeasurementType.ValueType # 15974
6612+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_CARTESIAN_STRAIN_Y: _StrainGageRosetteMeasurementType.ValueType # 15975
6613+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_CARTESIAN_SHEAR_STRAIN_XY: _StrainGageRosetteMeasurementType.ValueType # 15976
6614+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_MAX_SHEAR_STRAIN: _StrainGageRosetteMeasurementType.ValueType # 15977
6615+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_MAX_SHEAR_STRAIN_ANGLE: _StrainGageRosetteMeasurementType.ValueType # 15978
6616+
6617+
class StrainGageRosetteMeasurementType(_StrainGageRosetteMeasurementType, metaclass=_StrainGageRosetteMeasurementTypeEnumTypeWrapper): ...
6618+
6619+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_UNSPECIFIED: StrainGageRosetteMeasurementType.ValueType # 0
6620+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_PRINCIPAL_STRAIN_1: StrainGageRosetteMeasurementType.ValueType # 15971
6621+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_PRINCIPAL_STRAIN_2: StrainGageRosetteMeasurementType.ValueType # 15972
6622+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_PRINCIPAL_STRAIN_ANGLE: StrainGageRosetteMeasurementType.ValueType # 15973
6623+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_CARTESIAN_STRAIN_X: StrainGageRosetteMeasurementType.ValueType # 15974
6624+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_CARTESIAN_STRAIN_Y: StrainGageRosetteMeasurementType.ValueType # 15975
6625+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_CARTESIAN_SHEAR_STRAIN_XY: StrainGageRosetteMeasurementType.ValueType # 15976
6626+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_MAX_SHEAR_STRAIN: StrainGageRosetteMeasurementType.ValueType # 15977
6627+
STRAIN_GAGE_ROSETTE_MEASUREMENT_TYPE_MAX_SHEAR_STRAIN_ANGLE: StrainGageRosetteMeasurementType.ValueType # 15978
6628+
global___StrainGageRosetteMeasurementType = StrainGageRosetteMeasurementType
6629+
65956630
class _StrainGageRosetteType:
65966631
ValueType = typing.NewType("ValueType", builtins.int)
65976632
V: typing_extensions.TypeAlias = ValueType
@@ -7290,6 +7325,7 @@ class _ChannelInt32AttributeValuesEnumTypeWrapper(google.protobuf.internal.enum_
72907325
CHANNEL_INT32_LENGTH_UNITS4_FROM_CUSTOM_SCALE: _ChannelInt32AttributeValues.ValueType # 10065
72917326
CHANNEL_INT32_LEVEL1_HIGH: _ChannelInt32AttributeValues.ValueType # 10192
72927327
CHANNEL_INT32_LEVEL1_LOW: _ChannelInt32AttributeValues.ValueType # 10214
7328+
CHANNEL_INT32_LOGIC_FAMILY_1POINT_8_V: _ChannelInt32AttributeValues.ValueType # 16184
72937329
CHANNEL_INT32_LOGIC_FAMILY_2POINT_5_V: _ChannelInt32AttributeValues.ValueType # 14620
72947330
CHANNEL_INT32_LOGIC_FAMILY_3POINT_3_V: _ChannelInt32AttributeValues.ValueType # 14621
72957331
CHANNEL_INT32_LOGIC_FAMILY_5_V: _ChannelInt32AttributeValues.ValueType # 14619
@@ -7671,6 +7707,7 @@ CHANNEL_INT32_LENGTH_UNITS4_FEET: ChannelInt32AttributeValues.ValueType # 10380
76717707
CHANNEL_INT32_LENGTH_UNITS4_FROM_CUSTOM_SCALE: ChannelInt32AttributeValues.ValueType # 10065
76727708
CHANNEL_INT32_LEVEL1_HIGH: ChannelInt32AttributeValues.ValueType # 10192
76737709
CHANNEL_INT32_LEVEL1_LOW: ChannelInt32AttributeValues.ValueType # 10214
7710+
CHANNEL_INT32_LOGIC_FAMILY_1POINT_8_V: ChannelInt32AttributeValues.ValueType # 16184
76747711
CHANNEL_INT32_LOGIC_FAMILY_2POINT_5_V: ChannelInt32AttributeValues.ValueType # 14620
76757712
CHANNEL_INT32_LOGIC_FAMILY_3POINT_3_V: ChannelInt32AttributeValues.ValueType # 14621
76767713
CHANNEL_INT32_LOGIC_FAMILY_5_V: ChannelInt32AttributeValues.ValueType # 14619
@@ -7939,6 +7976,7 @@ class _DeviceInt32AttributeValuesEnumTypeWrapper(google.protobuf.internal.enum_t
79397976
DEVICE_INT32_PRODUCT_CATEGORY_FIELD_DAQ: _DeviceInt32AttributeValues.ValueType # 16151
79407977
DEVICE_INT32_PRODUCT_CATEGORY_TEST_SCALE_CHASSIS: _DeviceInt32AttributeValues.ValueType # 16180
79417978
DEVICE_INT32_PRODUCT_CATEGORY_TEST_SCALE_MODULE: _DeviceInt32AttributeValues.ValueType # 16181
7979+
DEVICE_INT32_PRODUCT_CATEGORY_MIO_DAQ: _DeviceInt32AttributeValues.ValueType # 16182
79427980
DEVICE_INT32_PRODUCT_CATEGORY_UNKNOWN: _DeviceInt32AttributeValues.ValueType # 12588
79437981
DEVICE_INT32_TRIGGER_USAGE_ADVANCE: _DeviceInt32AttributeValues.ValueType # 12488
79447982
DEVICE_INT32_TRIGGER_USAGE_PAUSE: _DeviceInt32AttributeValues.ValueType # 12489
@@ -8073,6 +8111,7 @@ DEVICE_INT32_PRODUCT_CATEGORY_SC_EXPRESS: DeviceInt32AttributeValues.ValueType
80738111
DEVICE_INT32_PRODUCT_CATEGORY_FIELD_DAQ: DeviceInt32AttributeValues.ValueType # 16151
80748112
DEVICE_INT32_PRODUCT_CATEGORY_TEST_SCALE_CHASSIS: DeviceInt32AttributeValues.ValueType # 16180
80758113
DEVICE_INT32_PRODUCT_CATEGORY_TEST_SCALE_MODULE: DeviceInt32AttributeValues.ValueType # 16181
8114+
DEVICE_INT32_PRODUCT_CATEGORY_MIO_DAQ: DeviceInt32AttributeValues.ValueType # 16182
80768115
DEVICE_INT32_PRODUCT_CATEGORY_UNKNOWN: DeviceInt32AttributeValues.ValueType # 12588
80778116
DEVICE_INT32_TRIGGER_USAGE_ADVANCE: DeviceInt32AttributeValues.ValueType # 12488
80788117
DEVICE_INT32_TRIGGER_USAGE_PAUSE: DeviceInt32AttributeValues.ValueType # 12489
@@ -8204,6 +8243,10 @@ class _PhysicalChannelInt32AttributeValuesEnumTypeWrapper(google.protobuf.intern
82048243
PHYSICALCHANNEL_INT32_CO_OUTPUT_TYPE_PULSE_TIME: _PhysicalChannelInt32AttributeValues.ValueType # 10269
82058244
PHYSICALCHANNEL_INT32_CO_OUTPUT_TYPE_PULSE_FREQ: _PhysicalChannelInt32AttributeValues.ValueType # 10119
82068245
PHYSICALCHANNEL_INT32_CO_OUTPUT_TYPE_PULSE_TICKS: _PhysicalChannelInt32AttributeValues.ValueType # 10268
8246+
PHYSICALCHANNEL_INT32_LOGIC_FAMILY_1POINT_8_V: _PhysicalChannelInt32AttributeValues.ValueType # 16184
8247+
PHYSICALCHANNEL_INT32_LOGIC_FAMILY_2POINT_5_V: _PhysicalChannelInt32AttributeValues.ValueType # 14620
8248+
PHYSICALCHANNEL_INT32_LOGIC_FAMILY_3POINT_3_V: _PhysicalChannelInt32AttributeValues.ValueType # 14621
8249+
PHYSICALCHANNEL_INT32_LOGIC_FAMILY_5_V: _PhysicalChannelInt32AttributeValues.ValueType # 14619
82078250
PHYSICALCHANNEL_INT32_NAV_MEASUREMENT_TYPE_ALTITUDE: _PhysicalChannelInt32AttributeValues.ValueType # 15997
82088251
PHYSICALCHANNEL_INT32_NAV_MEASUREMENT_TYPE_LONGITUDE: _PhysicalChannelInt32AttributeValues.ValueType # 15998
82098252
PHYSICALCHANNEL_INT32_NAV_MEASUREMENT_TYPE_LATITUDE: _PhysicalChannelInt32AttributeValues.ValueType # 15999
@@ -8278,6 +8321,10 @@ PHYSICALCHANNEL_INT32_CI_MEASUREMENT_TYPE_GPS_TIMESTAMP: PhysicalChannelInt32Att
82788321
PHYSICALCHANNEL_INT32_CO_OUTPUT_TYPE_PULSE_TIME: PhysicalChannelInt32AttributeValues.ValueType # 10269
82798322
PHYSICALCHANNEL_INT32_CO_OUTPUT_TYPE_PULSE_FREQ: PhysicalChannelInt32AttributeValues.ValueType # 10119
82808323
PHYSICALCHANNEL_INT32_CO_OUTPUT_TYPE_PULSE_TICKS: PhysicalChannelInt32AttributeValues.ValueType # 10268
8324+
PHYSICALCHANNEL_INT32_LOGIC_FAMILY_1POINT_8_V: PhysicalChannelInt32AttributeValues.ValueType # 16184
8325+
PHYSICALCHANNEL_INT32_LOGIC_FAMILY_2POINT_5_V: PhysicalChannelInt32AttributeValues.ValueType # 14620
8326+
PHYSICALCHANNEL_INT32_LOGIC_FAMILY_3POINT_3_V: PhysicalChannelInt32AttributeValues.ValueType # 14621
8327+
PHYSICALCHANNEL_INT32_LOGIC_FAMILY_5_V: PhysicalChannelInt32AttributeValues.ValueType # 14619
82818328
PHYSICALCHANNEL_INT32_NAV_MEASUREMENT_TYPE_ALTITUDE: PhysicalChannelInt32AttributeValues.ValueType # 15997
82828329
PHYSICALCHANNEL_INT32_NAV_MEASUREMENT_TYPE_LONGITUDE: PhysicalChannelInt32AttributeValues.ValueType # 15998
82838330
PHYSICALCHANNEL_INT32_NAV_MEASUREMENT_TYPE_LATITUDE: PhysicalChannelInt32AttributeValues.ValueType # 15999
@@ -9168,15 +9215,15 @@ class CfgAnlgMultiEdgeRefTrigRequest(google.protobuf.message.Message):
91689215
@property
91699216
def task(self) -> session_pb2.Session: ...
91709217
@property
9171-
def trigger_slope_array(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
9218+
def trigger_slope_array(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___Slope1.ValueType]: ...
91729219
@property
91739220
def trigger_level_array(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ...
91749221
def __init__(
91759222
self,
91769223
*,
91779224
task: session_pb2.Session | None = ...,
91789225
trigger_sources: builtins.str = ...,
9179-
trigger_slope_array: collections.abc.Iterable[builtins.int] | None = ...,
9226+
trigger_slope_array: collections.abc.Iterable[global___Slope1.ValueType] | None = ...,
91809227
trigger_level_array: collections.abc.Iterable[builtins.float] | None = ...,
91819228
pretrigger_samples: builtins.int = ...,
91829229
) -> None: ...
@@ -9212,15 +9259,15 @@ class CfgAnlgMultiEdgeStartTrigRequest(google.protobuf.message.Message):
92129259
@property
92139260
def task(self) -> session_pb2.Session: ...
92149261
@property
9215-
def trigger_slope_array(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
9262+
def trigger_slope_array(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___Slope1.ValueType]: ...
92169263
@property
92179264
def trigger_level_array(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ...
92189265
def __init__(
92199266
self,
92209267
*,
92219268
task: session_pb2.Session | None = ...,
92229269
trigger_sources: builtins.str = ...,
9223-
trigger_slope_array: collections.abc.Iterable[builtins.int] | None = ...,
9270+
trigger_slope_array: collections.abc.Iterable[global___Slope1.ValueType] | None = ...,
92249271
trigger_level_array: collections.abc.Iterable[builtins.float] | None = ...,
92259272
) -> None: ...
92269273
def HasField(self, field_name: typing.Literal["task", b"task"]) -> builtins.bool: ...
@@ -12231,7 +12278,7 @@ class CreateAIRosetteStrainGageChanRequest(google.protobuf.message.Message):
1223112278
@property
1223212279
def task(self) -> session_pb2.Session: ...
1223312280
@property
12234-
def rosette_meas_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
12281+
def rosette_meas_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___StrainGageRosetteMeasurementType.ValueType]: ...
1223512282
def __init__(
1223612283
self,
1223712284
*,
@@ -12243,7 +12290,7 @@ class CreateAIRosetteStrainGageChanRequest(google.protobuf.message.Message):
1224312290
rosette_type: global___StrainGageRosetteType.ValueType = ...,
1224412291
rosette_type_raw: builtins.int = ...,
1224512292
gage_orientation: builtins.float = ...,
12246-
rosette_meas_types: collections.abc.Iterable[builtins.int] | None = ...,
12293+
rosette_meas_types: collections.abc.Iterable[global___StrainGageRosetteMeasurementType.ValueType] | None = ...,
1224712294
strain_config: global___StrainGageBridgeType1.ValueType = ...,
1224812295
strain_config_raw: builtins.int = ...,
1224912296
voltage_excit_source: global___ExcitationSource.ValueType = ...,

generated/nidaqmx/constants.py

+1
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ class LoggingOperation(Enum):
415415

416416

417417
class LogicFamily(Enum):
418+
ONE_POINT_EIGHT_V = 16184 #: Compatible with 1.8 V CMOS signals.
418419
TWO_POINT_FIVE_V = 14620 #: Compatible with 2.5 V CMOS signals.
419420
THREE_POINT_THREE_V = 14621 #: Compatible with LVTTL signals.
420421
FIVE_V = 14619 #: Compatible with TTL and 5 V CMOS signals.

generated/nidaqmx/error_codes.py

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77

88
class DAQmxErrors(IntEnum):
9+
ATTR_NOT_SUPPORTED_USE_PHYSICAL_CHANNEL_PROPERTY = -209896
10+
AI_CALCULATED_POWER_MIN_MAX_ATTR_NOT_SUPPORTED = -209895
11+
AI_MIN_MAX_ATTR_WRITE_NOT_SUPPORTED_FOR_CALC_POWER = -209894
12+
POWER_VOLTAGE_AND_CURRENT_CONFIGURATION_MISMATCH = -209893
13+
VOLTAGE_AND_CURRENT_CHANNELS_NOT_SAME_DEVICE = -209892
14+
VOLTAGE_AND_CURRENT_CHANNEL_COUNT_MISMATCH = -209891
15+
BREAKPOINT_MODES_INCONSISTENT = -209890
916
NEEDS_USB_SUPER_SPEED = -209889
1017
REMOTE_SENSE = -209888
1118
OVER_TEMPERATURE_PROTECTION_ACTIVATED = -209887

generated/nidaqmx/system/physical_channel.py

+48-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from nidaqmx._bitfield_utils import enum_bitfield_to_list
99
from nidaqmx.utils import unflatten_channel_string
1010
from nidaqmx.constants import (
11-
AOPowerUpOutputBehavior, AcquisitionType, SensorPowerType,
11+
AOPowerUpOutputBehavior, AcquisitionType, LogicFamily, SensorPowerType,
1212
TerminalConfiguration, UsageTypeAI, UsageTypeAO, UsageTypeCI, UsageTypeCO,
1313
WriteBasicTEDSOptions, _TermCfg)
1414

@@ -507,6 +507,53 @@ def di_samp_modes(self):
507507
val = self._interpreter.get_physical_chan_attribute_int32_array(self._name, 0x2fe0)
508508
return [AcquisitionType(e) for e in val]
509509

510+
@property
511+
def dig_port_logic_family(self):
512+
"""
513+
:class:`nidaqmx.constants.LogicFamily`: Specifies the digital
514+
port logic family to use for acquisition and generation. A
515+
logic family corresponds to voltage thresholds that are
516+
compatible with a group of voltage standards. Refer to the
517+
device documentation for information on the logic high and
518+
logic low voltages for these logic families.
519+
"""
520+
521+
val = self._interpreter.get_physical_chan_attribute_int32(self._name, 0x31eb)
522+
return LogicFamily(val)
523+
524+
@dig_port_logic_family.setter
525+
def dig_port_logic_family(self, val):
526+
from nidaqmx._library_interpreter import LibraryInterpreter
527+
from nidaqmx._lib import lib_importer, ctypes_byte_str, c_bool32
528+
if not isinstance(self._interpreter, LibraryInterpreter):
529+
raise NotImplementedError
530+
val = val.value
531+
cfunc = lib_importer.windll.DAQmxSetPhysicalChanDigPortLogicFamily
532+
if cfunc.argtypes is None:
533+
with cfunc.arglock:
534+
if cfunc.argtypes is None:
535+
cfunc.argtypes = [
536+
ctypes_byte_str, ctypes.c_int]
537+
error_code = cfunc(
538+
self._name, val)
539+
self._interpreter.check_for_error(error_code)
540+
541+
@dig_port_logic_family.deleter
542+
def dig_port_logic_family(self):
543+
from nidaqmx._library_interpreter import LibraryInterpreter
544+
from nidaqmx._lib import lib_importer, ctypes_byte_str, c_bool32
545+
if not isinstance(self._interpreter, LibraryInterpreter):
546+
raise NotImplementedError
547+
cfunc = lib_importer.windll.DAQmxResetPhysicalChanDigPortLogicFamily
548+
if cfunc.argtypes is None:
549+
with cfunc.arglock:
550+
if cfunc.argtypes is None:
551+
cfunc.argtypes = [
552+
ctypes_byte_str]
553+
error_code = cfunc(
554+
self._name)
555+
self._interpreter.check_for_error(error_code)
556+
510557
@property
511558
def do_port_width(self):
512559
"""

generated/nidaqmx/task/channels/_ai_channel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3563,8 +3563,8 @@ def pwr_remote_sense(self):
35633563
"""
35643564
:class:`nidaqmx.constants.Sense`: Specifies whether to use local
35653565
or remote sense to sense the output voltage. DAQmx Read
3566-
(Power) will return remote or local voltage based on the
3567-
Remote Sense attribute value. Reading this property will
3566+
(Power Supply) will return remote or local voltage based on
3567+
the Remote Sense attribute value. Reading this property will
35683568
return the user-defined value.
35693569
"""
35703570

0 commit comments

Comments
 (0)