More API Clean up - multiple source breakers
-
ALL
-
Changed
- All exceptions raised by the Python bindings inherit from
<driver>.Error
- Exception type formerly known as
<driver>.Error
is now known as<driver>.DriverError
- This encapsulates any error that is returned by the underlying driver
- All timeout parameters can now also take a simple number in seconds.
timeout=datetime.timedelta(milliseconds=100)
andtimeout=0.1
are identical. #796
- All exceptions raised by the Python bindings inherit from
-
-
NI-DMM
-
Changed
- Enum values that start with an underscore + digit have been renamed
Function._2_WIRE_RES
-->Function.TWO_WIRE_RES
Function._4_WIRE_RES
-->Function.FOUR_WIRE_RES
ThermistorType._44004
-->ThermistorType.THERMISTOR_44004
ThermistorType._44006
-->ThermistorType.THERMISTOR_44006
ThermistorType._44007
-->ThermistorType.THERMISTOR_44007
TransducerType._2_WIRE_RTD
-->TransducerType.TWO_WIRE_RTD
TransducerType._4_WIRE_RTD
-->TransducerType.FOUR_WIRE_RTD
Session.get_ext_cal_recommended_interval()
now returns adatetime.timedelta
for the interval #794
- Enum values that start with an underscore + digit have been renamed
-
-
NI-DCPower
-
Changed
Session.fetch_multiple()
andSession.measure_multiple()
now return list of named tuples instead of multiple arrays. See fetch_multiple and measure_multipleSession.cal_self_calibration()
renamed toSession.self_cal()
to match other drivers - issue #615Session.set_sequence()
values parameter no longer has a default value and must be passed in. Parameter order has changed as a result of this - issue #797- Session constructor channel parameter can now use any channel format that repeated capabilities can use #807
Session.get_ext_cal_recommended_interval()
now returns adatetime.timedelta
for the interval #794
-
Removed
- Advanced Sequence functions - until #504 can be fixed in a proper way
create_advanced_sequence()
create_advanced_sequence_step()
delete_advanced_sequence()
- Advanced Sequence functions - until #504 can be fixed in a proper way
-
-
NI-FGEN
-
Changed
-
Removed
Session.cal_adc_input
attribute andSession.enums.CalADCInput
enum - External Cal not supported in Python- Session constructor channel parameter can now use any channel format that repeated capabilities can use #807
-
-
NI-SCOPE
-
Changed
Session.fetch()
,Session.read()
andSession.fetch_into()
updated- Takes additional parameters that modify fetch behavior
- Add resulting record as part of the waveform info
- Channel name and record number added to waveform info
- See documentation for fetch,
read,
and fetch_into for more details.
- Rename
wfm
parameter towaveform
infetch()
andfetch_into()
- Enum values and attribute names that start with an underscore + digit have been renamed
Session._5102_adjust_pretrigger_samples
-->Session.adjust_pretrigger_samples_5102
Session._5v_out_output_terminal
-->Session.five_v_out_output_terminal
ExportableSignals._5V_OUT
-->ExportableSignals.FIVE_V_OUT
FlexFIRAntialiasFilterType._48_TAP_STANDARD
-->FlexFIRAntialiasFilterType.FOURTYEIGHT_TAP_STANDARD
FlexFIRAntialiasFilterType._48_TAP_HANNING
-->FlexFIRAntialiasFilterType.FOURTYEIGHT_TAP_HANNING
FlexFIRAntialiasFilterType._16_TAP_HANNING
-->FlexFIRAntialiasFilterType.SIXTEEN_TAP_HANNING
FlexFIRAntialiasFilterType._8_TAP_HANNING
-->FlexFIRAntialiasFilterType.EIGHT_TAP_HANNING
VideoSignalFormat._480I_59_94_FIELDS_PER_SECOND
-->VideoSignalFormat.VIDEO_480I_59_94_FIELDS_PER_SECOND
VideoSignalFormat._480I_60_FIELDS_PER_SECOND
-->VideoSignalFormat.VIDEO_480I_60_FIELDS_PER_SECOND
VideoSignalFormat._480P_59_94_FRAMES_PER_SECOND
-->VideoSignalFormat.VIDEO_480P_59_94_FRAMES_PER_SECOND
VideoSignalFormat._480P_60_FRAMES_PER_SECOND
-->VideoSignalFormat.VIDEO_480P_60_FRAMES_PER_SECOND
VideoSignalFormat._576I_50_FIELDS_PER_SECOND
-->VideoSignalFormat.VIDEO_576I_50_FIELDS_PER_SECOND
VideoSignalFormat._576P_50_FRAMES_PER_SECOND
-->VideoSignalFormat.VIDEO_576P_50_FRAMES_PER_SECOND
VideoSignalFormat._720P_50_FRAMES_PER_SECOND
-->VideoSignalFormat.VIDEO_720P_50_FRAMES_PER_SECOND
VideoSignalFormat._720P_59_94_FRAMES_PER_SECOND
-->VideoSignalFormat.VIDEO_720P_59_94_FRAMES_PER_SECOND
VideoSignalFormat._720P_60_FRAMES_PER_SECOND
-->VideoSignalFormat.VIDEO_720P_60_FRAMES_PER_SECOND
VideoSignalFormat._1080I_50_FIELDS_PER_SECOND
-->VideoSignalFormat.VIDEO_1080I_50_FIELDS_PER_SECOND
VideoSignalFormat._1080I_59_94_FIELDS_PER_SECOND
-->VideoSignalFormat.VIDEO_1080I_59_94_FIELDS_PER_SECOND
VideoSignalFormat._1080I_60_FIELDS_PER_SECOND
-->VideoSignalFormat.VIDEO_1080I_60_FIELDS_PER_SECOND
VideoSignalFormat._1080P_24_FRAMES_PER_SECOND
-->VideoSignalFormat.VIDEO_1080P_24_FRAMES_PER_SECOND
Session.cal_self_calibration()
renamed toSession.self_cal()
to match other drivers - issue #615
-
Removed
- Following properties are now removed (use parameters to fetch calls):
fetch_relative_to
fetch_offset
fetch_record_number
fetch_num_records
- Removed
number_of_coefficients
parameter fromget_equalization_filter_coefficients()
- Removed Measurement Library waveform methods and properties - issue #809
actual_meas_wfm_size()
add_waveform_processing()
clear_waveform_processing()
fetch_array_measurement()
clear_waveform_measurement_stats()
fetch_measurement()
fetch_measurement_stats()
read_measurement()
configure_ref_levels()
meas_ref_level_units
meas_other_channel
meas_hysteresis_percent
meas_last_acq_histogram_size
meas_voltage_histogram_size
meas_voltage_histogram_low_volts
meas_voltage_histogram_high_volts
meas_time_histogram_size
meas_time_histogram_low_volts
meas_time_histogram_high_volts
meas_time_histogram_low_time
meas_time_histogram_high_time
meas_polynomial_interpolation_order
meas_interpolation_sampling_factor
meas_filter_cutoff_freq
meas_filter_center_freq
meas_filter_ripple
meas_filter_transient_waveform_percent
meas_filter_type
meas_filter_order
meas_filter_taps
meas_chan_low_ref_level
meas_chan_mid_ref_level
meas_chan_high_ref_level
meas_filter_width
meas_fir_filter_window
meas_array_gain
meas_array_offset
meas_percentage_method
fetch_meas_num_samples
- Following properties are now removed (use parameters to fetch calls):
-