|
18 | 18 | ExcitationVoltageOrCurrent, FilterResponse, FilterType, |
19 | 19 | ForceIEPESensorSensitivityUnits, ForceUnits, FrequencyUnits, Impedance1, |
20 | 20 | InputDataTransferCondition, LVDTSensitivityUnits, LengthUnits, |
21 | | - PowerIdleOutputBehavior, PowerOutputState, PressureUnits, RTDType, |
22 | | - RVDTSensitivityUnits, RawDataCompressionType, ResistanceConfiguration, |
23 | | - ResistanceUnits, ResolutionType, ScaleType, Sense, SensorPowerCfg, |
24 | | - SensorPowerType, ShuntCalSelect, SoundPressureUnits, SourceSelection, |
25 | | - StrainGageBridgeType, StrainGageRosetteMeasurementType, |
26 | | - StrainGageRosetteType, StrainUnits, TemperatureUnits, |
27 | | - TerminalConfiguration, ThermocoupleType, TorqueUnits, UsageTypeAI, |
28 | | - VelocityIEPESensorSensitivityUnits, VelocityUnits, VoltageUnits) |
| 21 | + PowerIdleOutputBehavior, PowerOutputState, PowerUnits, PressureUnits, |
| 22 | + RTDType, RVDTSensitivityUnits, RawDataCompressionType, |
| 23 | + ResistanceConfiguration, ResistanceUnits, ResolutionType, ScaleType, |
| 24 | + Sense, SensorPowerCfg, SensorPowerType, ShuntCalSelect, |
| 25 | + SoundPressureUnits, SourceSelection, StrainGageBridgeType, |
| 26 | + StrainGageRosetteMeasurementType, StrainGageRosetteType, StrainUnits, |
| 27 | + TemperatureUnits, TerminalConfiguration, ThermocoupleType, TorqueUnits, |
| 28 | + UsageTypeAI, VelocityIEPESensorSensitivityUnits, VelocityUnits, |
| 29 | + VoltageUnits) |
29 | 30 |
|
30 | 31 |
|
31 | 32 | class AIChannel(Channel): |
@@ -882,6 +883,90 @@ def ai_bridge_units(self, val): |
882 | 883 | def ai_bridge_units(self): |
883 | 884 | self._interpreter.reset_chan_attribute(self._handle, self._name, 0x2f92) |
884 | 885 |
|
| 886 | + @property |
| 887 | + def ai_calculated_power_current_max(self): |
| 888 | + """ |
| 889 | + float: Specifies the current maximum value you expect to |
| 890 | + measure. This value is in the units you specify with a units |
| 891 | + property. When you query this property, it returns the |
| 892 | + coerced current maximum value that the device can measure |
| 893 | + with the current settings. |
| 894 | + """ |
| 895 | + |
| 896 | + val = self._interpreter.get_chan_attribute_double(self._handle, self._name, 0x31ef) |
| 897 | + return val |
| 898 | + |
| 899 | + @ai_calculated_power_current_max.setter |
| 900 | + def ai_calculated_power_current_max(self, val): |
| 901 | + self._interpreter.set_chan_attribute_double(self._handle, self._name, 0x31ef, val) |
| 902 | + |
| 903 | + @ai_calculated_power_current_max.deleter |
| 904 | + def ai_calculated_power_current_max(self): |
| 905 | + self._interpreter.reset_chan_attribute(self._handle, self._name, 0x31ef) |
| 906 | + |
| 907 | + @property |
| 908 | + def ai_calculated_power_current_min(self): |
| 909 | + """ |
| 910 | + float: Specifies the current minimum value you expect to |
| 911 | + measure. This value is in the units you specify with a units |
| 912 | + property. When you query this property, it returns the |
| 913 | + coerced current minimum value that the device can measure |
| 914 | + with the current settings. |
| 915 | + """ |
| 916 | + |
| 917 | + val = self._interpreter.get_chan_attribute_double(self._handle, self._name, 0x31f0) |
| 918 | + return val |
| 919 | + |
| 920 | + @ai_calculated_power_current_min.setter |
| 921 | + def ai_calculated_power_current_min(self, val): |
| 922 | + self._interpreter.set_chan_attribute_double(self._handle, self._name, 0x31f0, val) |
| 923 | + |
| 924 | + @ai_calculated_power_current_min.deleter |
| 925 | + def ai_calculated_power_current_min(self): |
| 926 | + self._interpreter.reset_chan_attribute(self._handle, self._name, 0x31f0) |
| 927 | + |
| 928 | + @property |
| 929 | + def ai_calculated_power_voltage_max(self): |
| 930 | + """ |
| 931 | + float: Specifies the voltage maximum value you expect to |
| 932 | + measure. This value is in the units you specify with a units |
| 933 | + property. When you query this property, it returns the |
| 934 | + coerced voltage maximum value that the device can measure |
| 935 | + with the current settings. |
| 936 | + """ |
| 937 | + |
| 938 | + val = self._interpreter.get_chan_attribute_double(self._handle, self._name, 0x31ed) |
| 939 | + return val |
| 940 | + |
| 941 | + @ai_calculated_power_voltage_max.setter |
| 942 | + def ai_calculated_power_voltage_max(self, val): |
| 943 | + self._interpreter.set_chan_attribute_double(self._handle, self._name, 0x31ed, val) |
| 944 | + |
| 945 | + @ai_calculated_power_voltage_max.deleter |
| 946 | + def ai_calculated_power_voltage_max(self): |
| 947 | + self._interpreter.reset_chan_attribute(self._handle, self._name, 0x31ed) |
| 948 | + |
| 949 | + @property |
| 950 | + def ai_calculated_power_voltage_min(self): |
| 951 | + """ |
| 952 | + float: Specifies the voltage minimum value you expect to |
| 953 | + measure. This value is in the units you specify with a units |
| 954 | + property. When you query this property, it returns the |
| 955 | + coerced voltage minimum value that the device can measure |
| 956 | + with the current settings. |
| 957 | + """ |
| 958 | + |
| 959 | + val = self._interpreter.get_chan_attribute_double(self._handle, self._name, 0x31ee) |
| 960 | + return val |
| 961 | + |
| 962 | + @ai_calculated_power_voltage_min.setter |
| 963 | + def ai_calculated_power_voltage_min(self, val): |
| 964 | + self._interpreter.set_chan_attribute_double(self._handle, self._name, 0x31ee, val) |
| 965 | + |
| 966 | + @ai_calculated_power_voltage_min.deleter |
| 967 | + def ai_calculated_power_voltage_min(self): |
| 968 | + self._interpreter.reset_chan_attribute(self._handle, self._name, 0x31ee) |
| 969 | + |
885 | 970 | @property |
886 | 971 | def ai_charge_units(self): |
887 | 972 | """ |
@@ -2410,6 +2495,25 @@ def ai_power_supply_fault_detect_enable(self, val): |
2410 | 2495 | def ai_power_supply_fault_detect_enable(self): |
2411 | 2496 | self._interpreter.reset_chan_attribute(self._handle, self._name, 0x3191) |
2412 | 2497 |
|
| 2498 | + @property |
| 2499 | + def ai_power_units(self): |
| 2500 | + """ |
| 2501 | + :class:`nidaqmx.constants.PowerUnits`: Specifies the units to |
| 2502 | + use to return power measurements from the channel. |
| 2503 | + """ |
| 2504 | + |
| 2505 | + val = self._interpreter.get_chan_attribute_int32(self._handle, self._name, 0x31ec) |
| 2506 | + return PowerUnits(val) |
| 2507 | + |
| 2508 | + @ai_power_units.setter |
| 2509 | + def ai_power_units(self, val): |
| 2510 | + val = val.value |
| 2511 | + self._interpreter.set_chan_attribute_int32(self._handle, self._name, 0x31ec, val) |
| 2512 | + |
| 2513 | + @ai_power_units.deleter |
| 2514 | + def ai_power_units(self): |
| 2515 | + self._interpreter.reset_chan_attribute(self._handle, self._name, 0x31ec) |
| 2516 | + |
2413 | 2517 | @property |
2414 | 2518 | def ai_pressure_units(self): |
2415 | 2519 | """ |
|
0 commit comments