Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'''
A string containing the instrument models supported by the specific driver.
'''
temp_rtd_a = attributes.AttributeViReal64(1150121)
'''
Specifies the Callendar-Van Dusen A coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is 3.9083e-3 (Pt3851).
'''
temp_rtd_b = attributes.AttributeViReal64(1150122)
'''
Specifies the Callendar-Van Dusen B coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is -5.775e-7(Pt3851).
'''
temp_rtd_c = attributes.AttributeViReal64(1150123)
'''
Specifies the Callendar-Van Dusen C coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is -4.183e-12(Pt3851).
'''
temp_rtd_res = attributes.AttributeViReal64(1250242)
'''
Specifies the RTD resistance at 0 degrees Celsius. This applies to all supported RTDs, including custom RTDs. The default value is 100 (?).
'''
temp_rtd_type = attributes.AttributeEnum(attributes.AttributeViInt32, enums.RTDType, 1150120)
'''
Specifies the type of RTD used to measure temperature. The default value is NIDMM_VAL_TEMP_RTD_PT3851.
Refer to the NIDMM_ATTR_TEMP_RTD_TYPE topic in the NI Digital Multimeters Help for additional information about defined values.
'''
temp_tc_fixed_ref_junc = attributes.AttributeViReal64(1250233)
'''
Specifies the reference junction temperature when a fixed reference junction is used to take a thermocouple measurement. The default value is 25.0 (°C).
'''
temp_tc_ref_junc_type = attributes.AttributeEnum(attributes.AttributeViInt32, enums.ThermocoupleReferenceJunctionType, 1250232)
'''
Specifies the type of reference junction to be used in the reference junction compensation of a thermocouple. The only supported value, NIDMM_VAL_TEMP_REF_JUNC_FIXED, is fixed.
'''
ac_max_freq = attributes.AttributeViReal64(1250007)
'''
Specifies the maximum frequency component of the input signal for AC measurements. This attribute is used only for error checking and verifies that the value of this parameter is less than the maximum frequency of the device. This attribute affects the DMM only when you set the NIDMM_ATTR_FUNCTION attribute to AC measurements.
The valid range is 1 Hz-300 kHz for the NI 4070/4071/4072, 10 Hz-100 kHz for the NI 4065, and 20 Hz-25 kHz for the NI 4050 and NI 4060.
'''
ac_min_freq = attributes.AttributeViReal64(1250006)
'''
Specifies the minimum frequency component of the input signal for AC measurements. This attribute affects the DMM only when you set the NIDMM_ATTR_FUNCTION attribute to AC measurements.
The valid range is 1 Hz-300 kHz for the NI 4070/4071/4072, 10 Hz-100 kHz for the NI 4065, and 20 Hz-25 kHz for the NI 4050 and NI 4060.
'''
adc_calibration = attributes.AttributeEnum(attributes.AttributeViInt32, enums.ADCCalibration, 1150022)
'''
For the NI 4070/4071/4072 only, specifies the ADC calibration mode.
'''
aperture_time = attributes.AttributeViReal64(1250321)
'''
Specifies the measurement aperture time for the current configuration. Aperture time is specified in units set by NIDMM_ATTR_APERTURE_TIME_UNITS. To override the default aperture, set this attribute to the desired aperture time after calling niDMM_ConfigureMeasurement. To return to the default, set this attribute to NIDMM_VAL_APERTURE_TIME_AUTO (-1).
On the NI 4070/4071/4072, the minimum aperture time is 8.89 usec, and the maximum aperture time is 149 sec. Any number of powerline cycles (PLCs) within the minimum and maximum ranges is allowed on the NI 4070/4071/4072.
On the NI 4065 the minimum aperture time is 333 µs, and the maximum aperture time is 78.2 s. If setting the number of averages directly, the total measurement time is aperture time X the number of averages, which must be less than 72.8 s. The aperture times allowed are 333 µs, 667 µs, or multiples of 1.11 ms-for example 1.11 ms, 2.22 ms, 3.33 ms, and so on. If you set an aperture time other than 333 µs, 667 µs, or multiples of 1.11 ms, the value will be coerced up to the next supported aperture time.
On the NI 4060, when the powerline frequency is 60 Hz, the PLCs allowed are 1 PLC, 6 PLC, 12 PLC, and 120 PLC. When the powerline frequency is 50 Hz, the PLCs allowed are 1 PLC, 5 PLC, 10 PLC, and 100 PLC.
'''
aperture_time_units = attributes.AttributeEnum(attributes.AttributeViInt32, enums.ApertureTimeUnits, 1250322)
'''
Specifies the units of aperture time for the current configuration.
The NI 4060 does not support an aperture time set in seconds.
'''
auto_range_value = attributes.AttributeViReal64(1250331)
'''
Specifies the value of the range. If auto ranging, shows the actual value of the active range. The value of this attribute is set during a read operation.
'''
auto_zero = attributes.AttributeEnum(attributes.AttributeViInt32, enums.AutoZero, 1250332)
To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help.
'''
sample_trigger_slope = attributes.AttributeEnum(attributes.AttributeViInt32, enums.SampleTrigSlope, 1150010)
'''
Specifies the edge of the signal from the specified sample trigger source on which the DMM is triggered.
'''
serial_number = attributes.AttributeViString(1150054)
'''
A string containing the serial number of the instrument. This attribute corresponds to the serial number label that is attached to most products.
'''
settle_time = attributes.AttributeViReal64(1150028)
'''
Specifies the settling time in seconds. To override the default settling time, set this attribute. To return to the default, set this attribute to NIDMM_VAL_SETTLE_TIME_AUTO (-1).
The NI 4050 and NI 4060 are not supported.
'''
short_cable_comp_reactance = attributes.AttributeViReal64(1150046)
'''
For the NI 4072 only, represents the reactive part (reactance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place.
Changing the function or the range through this attribute or through niDMM_ConfigureMeasurementDigits resets the value of this attribute to the default value.
'''
short_cable_comp_resistance = attributes.AttributeViReal64(1150047)
'''
For the NI 4072 only, represents the active part (resistance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place.
Changing the function or the range through this attribute or through niDMM_ConfigureMeasurementDigits resets the value of this attribute to the default value.
'''
shunt_value = attributes.AttributeViReal64(1150003)
'''
For the NI 4050 only, specifies the shunt resistance value.
The NI 4050 requires an external shunt resistor for current measurements. This attribute should be set to the value of shunt resistor.
'''
simulate = attributes.AttributeViBoolean(1050005)
'''
'''
resolution_absolute = attributes.AttributeViReal64(1250008)
'''
Specifies the measurement resolution in absolute units. Setting this attribute to higher values increases the measurement accuracy. Setting this attribute to lower values increases the measurement speed.
NI-DMM ignores this attribute for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the NIDMM_ATTR_LC_NUMBER_MEAS_TO_AVERAGE attribute.
'''
resolution_digits = attributes.AttributeViReal64(1250003)
'''
Specifies the measurement resolution in digits. Setting this attribute to higher values increases the measurement accuracy. Setting this attribute to lower values increases the measurement speed.
NI-DMM ignores this attribute for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the NIDMM_ATTR_LC_NUMBER_MEAS_TO_AVERAGE attribute.
'''
sample_count = attributes.AttributeViInt32(1250301)
'''
Specifies the number of measurements the DMM takes each time it receives a trigger in a multiple point acquisition.
'''
sample_interval = attributes.AttributeViReal64(1250303)
'''
Specifies the amount of time in seconds the DMM waits between measurement cycles. This attribute only applies when the NIDMM_ATTR_SAMPLE_TRIGGER attribute is set to INTERVAL.
On the NI 4060, the value for this attribute is used as the settling time. When this attribute is set to 0, the NI 4060 does not settle between measurement cycles. The onboard timing resolution is 1 µs on the NI 4060.
The NI 4065 and NI 4070/4071/4072 use the value specified in this attribute as additional delay. On the NI 4065 and NI 4070/4071/4072, the onboard timing resolution is 34.72 ns and the valid range is 0-149 s.
Only positive values are valid when setting the sample interval.
The NI 4050 is not supported.
'''
sample_trigger = attributes.AttributeEnum(attributes.AttributeViInt32, enums.SampleTrigger, 1250302)
'''
Specifies the sample trigger source.
To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help.
'''
sample_trigger_slope = attributes.AttributeEnum(attributes.AttributeViInt32, enums.SampleTrigSlope, 1150010)
'''
Specifies the edge of the signal from the specified sample trigger source on which the DMM is triggered.
'''
Size in samples of the internal data buffer. Maximum is 134,217,727 (OX7FFFFFF) samples. When set to NIDMM_VAL_BUFFER_SIZE_AUTO (-1), NI-DMM chooses the buffer size.
'''
cable_comp_type = attributes.AttributeEnum(attributes.AttributeViInt32, enums.CableCompensationType, 1150045)
'''
For the NI 4072 only, the type of cable compensation that is applied to the current capacitance or inductance measurement for the current range.
Changing the function or the range through this attribute or through niDMM_ConfigureMeasurementDigits resets the value of this attribute to the default value.
'''
cache = attributes.AttributeViBoolean(1050004)
'''
Specifies whether to cache the value of attributes. When caching is enabled, the instrument driver keeps track of the current instrument settings and avoids sending redundant commands to the instrument. Thus, it significantly increases execution speed. The instrument driver can choose always to cache or to never cache particular attributes regardless of the setting of this attribute. The default value is VI_TRUE (1). Use the niDMM_InitWithOptions function to override this value.
'''
channel_count = attributes.AttributeViInt32(1050203)
'''
Indicates the number of channels that the specific instrument driver supports. For each attribute for which the IVI_VAL_MULTI_CHANNEL flag attribute is set, the IVI engine maintains a separate cache value for each channel.
'''
current_source = attributes.AttributeViReal64(1150025)
'''
Specifies the current source provided during diode measurements.
The NI 4050 and NI 4060 are not supported.
'''
dc_bias = attributes.AttributeEnum(attributes.AttributeViInt32, enums.DCBias, 1150053)
'''
For the NI 4072 only, controls the available DC bias for capacitance measurements.
'''
dc_noise_rejection = attributes.AttributeEnum(attributes.AttributeViInt32, enums.DCNoiseRejection, 1150026)
'''
Specifies the DC noise rejection mode.
The NI 4050 and NI 4060 are not supported.
'''
driver_setup = attributes.AttributeViString(1050007)
'''
This attribute indicates the Driver Setup string that the user specified when initializing the driver.
range_check = attributes.AttributeViBoolean(1050002)
'''
Specifies whether to validate attribute values and function parameters. If enabled, the instrument driver validates the parameter values passed to driver functions. Range checking parameters is very useful for debugging. After the user program is validated, this attribute can be set to VI_FALSE (0) to disable range checking and maximize performance.
The default value is VI_TRUE (1). Use the niDMM_InitWithOptions function to override this value.
'''
record_coercions = attributes.AttributeViBoolean(1050006)
'''
Specifies whether the IVI engine keeps a list of the value coercions it makes for ViInt32 and ViReal64 attributes. Call niDMM_GetNextCoercionRecord to extract and delete the oldest coercion record from the list.
The default value is VI_FALSE (0). Use the niDMM_InitWithOptions function to override this value.
'''
resolution_absolute = attributes.AttributeViReal64(1250008)
'''
Specifies the measurement resolution in absolute units. Setting this attribute to higher values increases the measurement accuracy. Setting this attribute to lower values increases the measurement speed.
NI-DMM ignores this attribute for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the NIDMM_ATTR_LC_NUMBER_MEAS_TO_AVERAGE attribute.
'''
resolution_digits = attributes.AttributeViReal64(1250003)
'''
Specifies the measurement resolution in digits. Setting this attribute to higher values increases the measurement accuracy. Setting this attribute to lower values increases the measurement speed.
NI-DMM ignores this attribute for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the NIDMM_ATTR_LC_NUMBER_MEAS_TO_AVERAGE attribute.
'''
sample_count = attributes.AttributeViInt32(1250301)
'''
Specifies the number of measurements the DMM takes each time it receives a trigger in a multiple point acquisition.
'''
sample_interval = attributes.AttributeViReal64(1250303)
'''
Specifies the amount of time in seconds the DMM waits between measurement cycles. This attribute only applies when the NIDMM_ATTR_SAMPLE_TRIGGER attribute is set to INTERVAL.
On the NI 4060, the value for this attribute is used as the settling time. When this attribute is set to 0, the NI 4060 does not settle between measurement cycles. The onboard timing resolution is 1 µs on the NI 4060.
The NI 4065 and NI 4070/4071/4072 use the value specified in this attribute as additional delay. On the NI 4065 and NI 4070/4071/4072, the onboard timing resolution is 34.72 ns and the valid range is 0-149 s.
Only positive values are valid when setting the sample interval.
The NI 4050 is not supported.
'''
dc_bias = attributes.AttributeEnum(attributes.AttributeViInt32, enums.DCBias, 1150053)
'''
For the NI 4072 only, controls the available DC bias for capacitance measurements.
'''
dc_noise_rejection = attributes.AttributeEnum(attributes.AttributeViInt32, enums.DCNoiseRejection, 1150026)
'''
Specifies the DC noise rejection mode.
The NI 4050 and NI 4060 are not supported.
'''
driver_setup = attributes.AttributeViString(1050007)
'''
This attribute indicates the Driver Setup string that the user specified when initializing the driver.
Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the niDMM Init With Options.vi.
If the user does not specify a Driver Setup string, this attribute returns an empty string.
'''
freq_voltage_autorange = attributes.AttributeViReal64(1150044)
'''
For the NI 4070/4071/4072 only, specifies the value of the frequency voltage range. If Auto Ranging, shows the actual value of the active frequency voltage range. If not Auto Ranging, the value of this attribute is the same as that of NIDMM_ATTR_FREQ_VOLTAGE_RANGE.
'''
freq_voltage_range = attributes.AttributeViReal64(1250101)
'''
Specifies the maximum amplitude of the input signal for frequency measurements.
'''
function = attributes.AttributeEnum(attributes.AttributeViInt32, enums.Function, 1250001)
'''
Specifies the measurement function.
Refer to the NIDMM_ATTR_FUNCTION topic in the NI Digital Multimeters Help for device-specific information.
If you are setting this attribute directly, you must also set the NIDMM_ATTR_OPERATION_MODE attribute, which controls whether the DMM takes standard single or multipoint measurements, or acquires a waveform. If you are programming attributes directly, you must set the NIDMM_ATTR_OPERATION_MODE attribute before setting other configuration attributes. If the NIDMM_ATTR_OPERATION_MODE attribute is set to NIDMM_VAL_WAVEFORM_MODE, the only valid function types are NIDMM_VAL_WAVEFORM_VOLTAGE and NIDMM_VAL_WAVEFORM_CURRENT. Set the NIDMM_ATTR_OPERATION_MODE attribute to NIDMM_VAL_IVIDMM_MODE to set all other function values.
'''
group_capabilities = attributes.AttributeViString(1050401)
'''
A string containing the capabilities and extension groups supported by the specific driver.
To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help.
'''
meas_dest_slope = attributes.AttributeEnum(attributes.AttributeViInt32, enums.MeasurementDestinationSlope, 1150002)
'''
Specifies the polarity of the generated measurement complete signal.
'''
number_of_averages = attributes.AttributeViInt32(1150032)
'''
Specifies the number of averages to perform in a measurement. For the NI 4070/4071/4072, applies only when the aperture time is not set to AUTO and Auto Zero is ON. The default is 1.
The NI 4050 and NI 4060 are not supported.
'''
offset_comp_ohms = attributes.AttributeEnum(attributes.AttributeViInt32, enums.OffsetCompensatedOhms, 1150023)
'''
For the NI 4070/4071/4072 only, enables or disables offset compensated ohms.
'''
open_cable_comp_conductance = attributes.AttributeViReal64(1150049)
'''
For the NI 4072 only, specifies the active part (conductance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place.
Changing the function or the range through this attribute or through niDMM_ConfigureMeasurementDigits resets the value of this attribute to the default value.
'''
open_cable_comp_susceptance = attributes.AttributeViReal64(1150048)
'''
For the NI 4072 only, specifies the reactive part (susceptance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place.
Changing the function or the range through this attribute or through niDMM_ConfigureMeasurementDigits resets the value of this attribute to the default value.
'''
operation_mode = attributes.AttributeEnum(attributes.AttributeViInt32, enums.OperationMode, 1150014)
'''
Specifies how the NI 4065 and NI 4070/4071/4072 acquire data. When you call niDMM_ConfigureMeasurementDigits, NI-DMM sets this attribute to NIDMM_VAL_IVIDMM_MODE. When you call niDMM_ConfigureWaveformAcquisition, NI-DMM sets this attribute to NIDMM_VAL_WAVEFORM_MODE. If you are programming attributes directly, you must set this attribute before setting other configuration attributes.
'''
powerline_freq = attributes.AttributeViReal64(1250333)
'''
Specifies the powerline frequency. The NI 4050 and NI 4060 use this value to select an aperture time to reject powerline noise by selecting the appropriate internal sample clock and filter. The NI 4065 and NI 4070/4071/4072 use this value to select a timebase for setting the NIDMM_ATTR_APERTURE_TIME attribute in powerline cycles (PLCs).
settle_time = attributes.AttributeViReal64(1150028)
'''
Specifies the settling time in seconds. To override the default settling time, set this attribute. To return to the default, set this attribute to NIDMM_VAL_SETTLE_TIME_AUTO (-1).
The NI 4050 and NI 4060 are not supported.
'''
short_cable_comp_reactance = attributes.AttributeViReal64(1150046)
'''
For the NI 4072 only, represents the reactive part (reactance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place.
Changing the function or the range through this attribute or through niDMM_ConfigureMeasurementDigits resets the value of this attribute to the default value.
'''
short_cable_comp_resistance = attributes.AttributeViReal64(1150047)
'''
For the NI 4072 only, represents the active part (resistance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place.
Changing the function or the range through this attribute or through niDMM_ConfigureMeasurementDigits resets the value of this attribute to the default value.
'''
shunt_value = attributes.AttributeViReal64(1150003)
'''
For the NI 4050 only, specifies the shunt resistance value.
The NI 4050 requires an external shunt resistor for current measurements. This attribute should be set to the value of shunt resistor.
'''
simulate = attributes.AttributeViBoolean(1050005)
'''
Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver functions perform range checking and call IVI Get and Set functions, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver functions return calculated values.
The default value is VI_FALSE (0). Use the niDMM_InitWithOptions function to override this setting.
Simulate can only be set within the InitWithOptions function. The attribute value cannot be changed outside of the function.
'''
specific_driver_class_spec_major_version = attributes.AttributeViInt32(1050515)
'''
The major version number of the class specification for the specific driver.
'''
specific_driver_class_spec_minor_version = attributes.AttributeViInt32(1050516)
'''
'''
open_cable_comp_conductance = attributes.AttributeViReal64(1150049)
'''
For the NI 4072 only, specifies the active part (conductance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place.
Changing the function or the range through this attribute or through niDMM_ConfigureMeasurementDigits resets the value of this attribute to the default value.
'''
open_cable_comp_susceptance = attributes.AttributeViReal64(1150048)
'''
For the NI 4072 only, specifies the reactive part (susceptance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place.
Changing the function or the range through this attribute or through niDMM_ConfigureMeasurementDigits resets the value of this attribute to the default value.
'''
operation_mode = attributes.AttributeEnum(attributes.AttributeViInt32, enums.OperationMode, 1150014)
'''
Specifies how the NI 4065 and NI 4070/4071/4072 acquire data. When you call niDMM_ConfigureMeasurementDigits, NI-DMM sets this attribute to NIDMM_VAL_IVIDMM_MODE. When you call niDMM_ConfigureWaveformAcquisition, NI-DMM sets this attribute to NIDMM_VAL_WAVEFORM_MODE. If you are programming attributes directly, you must set this attribute before setting other configuration attributes.
'''
powerline_freq = attributes.AttributeViReal64(1250333)
'''
Specifies the powerline frequency. The NI 4050 and NI 4060 use this value to select an aperture time to reject powerline noise by selecting the appropriate internal sample clock and filter. The NI 4065 and NI 4070/4071/4072 use this value to select a timebase for setting the NIDMM_ATTR_APERTURE_TIME attribute in powerline cycles (PLCs).
After configuring powerline frequency, set the NIDMM_ATTR_APERTURE_TIME_UNITS attribute to PLCs. When setting the NIDMM_ATTR_APERTURE_TIME attribute, select the number of PLCs for the powerline frequency. For example, if powerline frequency = 50 Hz (or 20ms) and aperture time in PLCs = 5, then aperture time in Seconds = 20ms * 5 PLCs = 100 ms. Similarly, if powerline frequency = 60 Hz (or 16.667 ms) and aperture time in PLCs = 6, then aperture time in Seconds = 16.667 ms * 6 PLCs = 100 ms.
'''
range = attributes.AttributeViReal64(1250002)
'''
Specifies the measurement range. Use positive values to represent the absolute value of the maximum expected measurement. The value is in units appropriate for the current value of the NIDMM_ATTR_FUNCTION attribute. For example, if NIDMM_ATTR_FUNCTION is set to NIDMM_VAL_VOLTS, the units are volts.
The NI 4050 and NI 4060 only support Auto Range when the trigger and sample trigger is set to IMMEDIATE.
NIDMM_VAL_AUTO_RANGE_ON -1.0
NI-DMM performs an Auto Range before acquiring the measurement.
NIDMM_VAL_AUTO_RANGE_OFF -2.0
NI-DMM sets the Range to the current NIDMM_ATTR_AUTO_RANGE_VALUE and uses this range for all subsequent measurements until the measurement configuration is changed.
NIDMM_VAL_AUTO_RANGE_ONCE -3.0
NI-DMM performs an Auto Range before acquiring the next measurement. The NIDMM_ATTR_AUTO_RANGE_VALUE is stored and used for all subsequent measurements until the measurement configuration is changed.
'''
range_check = attributes.AttributeViBoolean(1050002)