Releases: ni/nimi-python
Releases · ni/nimi-python
nitclk 1.0, nidigital 0.4, and 1.2 of other modules
-
ALL
-
Added
- Zip file per driver for all examples and any helper files
- Link to zip file on examples documentation
- Support for Python 3.8
-
Changed
-
Removed
- Python 2.7 support - Python Software Foundation version status
- Python 3.4 support - Python Software Foundation PEP 429
- PyPy and PyPy3 support #1271
-
-
NI-DCPower
-
Added
create_advanced_sequence()- #504- Instead of a list of attribute IDs, you pass in a list of property names as strings
- Includes example to see how to use it
- Additional methods and properties that were made public (rather than private)
create_advanced_sequence_step()delete_advanced_sequence()active_advanced_sequenceactive_advanced_sequence_step
-
-
NI-FGEN
-
Added
nifgen.Session.import_attribute_configuration_file()nifgen.Session.import_attribute_configuration_buffer()nifgen.Session.export_attribute_configuration_file()nifgen.Session.export_attribute_configuration_buffer()nifgen.Session.get_channel_name()
-
Changed
nifgen.Session.send_software_edge_trigger()now takes two parameters -triggerandtrigger_id- See documentation on how to call this function
- Calling the previous way will log a DeprecationWarning to the warning subsystem
- #1300
-
-
NI-Digital Pattern Driver
-
Added
-
Changed
write_source_waveform_site_unique()now supportsnumpy.arrayandlistas site waveform typesfetch_history_ram_cycle_informationmethod now supports fetching multiple History RAM samples in a single API call - #1071- Update methods that require
pin_listto be passed in, such thatpin_listcan be passed in viapinsrepeated capability - #1294
-
Removed
- Removed redundant (redundant because corresponding properties can be used instead) API methods - #1065
- Removed programmatic pin map creation API - #1124
- Removed
fetch_history_ram_cycle_pin_dataandfetch_history_ram_scan_cycle_number. They are not needed sincefetch_history_ram_cycle_information
was updated to return class instances that contains cycle pin data and scan cycle number - #1071
-
-
NI-TClk
-
Changed
- Method parameters and properties that are time based now take or return a
datetime.timedeltaobject
- Method parameters and properties that are time based now take or return a
-
Removed
- Ability to pass an integer as a session / session reference
nitclk.SessionReference.script_trigger_master_sessionremoved - repeated capabilities not supported on nitclk attributes - #1221
-
Fix Linux support, Update "Driver Version Tested Against" in documentation
-
ALL
-
Changed
- Fix #1140: Linux support was accidentally broken.
- Update "Driver Version Tested Against", in documentation, with latest versions installed on nimi-bot.
-
nidigital improvements and bug fixes, Python 3.8 support, nise to 1.1.4
-
ALL
-
Added
- Support for Python 3.8
ViUInt8is now a valid type in APIs
-
-
NI-Digital Pattern Driver
-
Added
fetch_capture_waveform()- returns dictionary { site: data, site: data, ... }write_source_waveform_site_unique()- takes waveform_name and dictionary { site: data, site: data, ... }pinsis now a valid repeated capability
-
Changed
- Fix get/set properties - #1062
- Removed array-size parameter from apply_tdr_offsets() and write_source_waveform_broadcast_u32() methods - #1070
- Renamed
write_source_waveform_broadcast_u32()towrite_source_waveform_broadcast() get_pin_results_pin_information()- returns namedtuplePinInfo(pin_indexes, site_numbers, channel_indexes)
-
-
NI Switch Executive
-
Changed
- Version updated to 1.1.4 to match other released nimi-python modules
-
NI-TClk initial release, niSwitchExecutive to 1.0, correctly identify phase, other minor fixes
1.1.3 - 2019-10-21
-
ALL
-
Changed
- The development status in
setup.pywill be based on the module version:- version >= 1.0
- .devN or .aN - Alpha
- .bN, .cN or .rcN - Beta
- <nothing> or .postN - Stable
- version < 1.0 and version >= 0.5 - Beta
- version < 0.5 - Alpha
- version >= 1.0
- Improved installation instructions by not putting a version to pin to. This is confusing in master (what read the docs shows by default) since that version doesn't exist yet.
- The development status in
-
-
NI-DCPower
-
Changed
- Fix type of
sequence_step_delta_time_enabledproperty - #1015
- Fix type of
-
-
NI-FGEN
-
NI-SCOPE
-
Added
cable_sense_signal_enable,cable_sense_voltage,cable_sense_modeproperties and associated enumenabled_channels,product_codepropertiesglitch_condition,glitch_polarity,glitch_widthproperties and associated enumsrunt_high_threshold,runt_low_threshold,runt_polarity,runt_condition,runt_time_high_limit,runt_time_low_limitproperties and associated enumswidth_condition,width_high_threshold,width_low_threshold,width_polarityproperties and associated enums
-
-
NI Switch Executive
-
Changed
- Update to 1.0 - now ready for production use
-
-
NI-Digital Pattern Driver
-
Added
- Initial support
- Very basic at this point and subject to change
- Looking for any testing and/or feedback
get_channel_name_from_string()
-
Changed
-
New enums:
Enum name Where used DigitalEdgedigital_edge_conditional_jump_trigger_edge,digital_edge_start_trigger_edgeApertureTimeUnitsppmu_aperture_time_units,ppmu_configure_aperture_time(units)PPMUOutputFunctionppmu_output_functionSelectedFunctionselected_functionTDREndpointTerminationtdr_endpoint_terminationSignalexport_signal(signal) -
[Source Breaker] No longer return the "actual size" from functions that use 'ivi-dance-with-a-twist'. This only affects
nidigital.
-
-
Removed
- Should be private -
get_session_state(),get_desired_attribute_*(),ppmu_measure_cached(),read_static_cached(),configure_ref_clock(),disable(),
get_number_of_vectors(),get_pattern_file_path(),get_pin_type(),get_time_set_compare_edges(),get_time_set_drive_edges(),
is_pattern_file_modified_since_load(),load_levels_internal(),load_pattern_internal(),load_timing_internal(),uncommit() - Need to determine how to generate this function -
fetch_capture_waveform_u32()
- Should be private -
-
-
NI-TClk
-
Added
- Initial support
-
Minor bug fixes
-
ALL
-
Changed
- Switched to slightly different metadata format - Actual
True/Falseinstead of strings - New internal process for generating metadata
- Switched to slightly different metadata format - Actual
-
-
NI-FGEN
-
Changed
- Enum values for
HardwareStatewere incorrect - fix to match niFgen.h
- Enum values for
-
-
NI-SCOPE
-
Changed
- Fixed enum values for
TIME_HISTOGRAM_MEAN_PLUS_STDEV,TIME_HISTOGRAM_MEAN_PLUS_2_STDEV,HF_REJECTand `LF_REJECT
- Fixed enum values for
-
Bug fixes and updated metadata
-
ALL
-
Changed
- Updated generated metadata
- Updated "Driver Version Tested Against"
- Update visatype definitions to work on Linux as well as Windows - #911
-
-
NI-DMM
-
Added
- import_attribute_configuration_file function
- export_attribute_configuration_file function
- import_attribute_configuration_buffer function
- import_attribute_configuration_buffer function
-
-
NI-DCPower
-
Added
- import_attribute_configuration_file function
- export_attribute_configuration_file function
- import_attribute_configuration_buffer function
- import_attribute_configuration_buffer function
-
-
NI-SCOPE
-
Added
- import_attribute_configuration_file function
- export_attribute_configuration_file function
- import_attribute_configuration_buffer function
- import_attribute_configuration_buffer function
-
Bug fixes
-
ALL
-
Added
-
Changed
- No longer globally set warnings filter for
DriverWarning- if you want all warnings from the driver, you will need to setwarnings.filterwarnings("always", category=<driver>.DriverWarning)in your code - Fix __repr__ for niscope.WaveformInfo - #920
- No longer globally set warnings filter for
-
-
NI-SCOPE
-
Changed
- Format of output of wavefrom_info.str()
-
-
NI Switch Executive
-
Added
- Initial Release
-
Official 1.0 release
1.0.0 - 2018-06-08
-
ALL
-
Removed
- Explicitly disallow using a repeated capability on Session.
session[0].vertical_range = 1.0will no longer work. Instead usesession.channels[0].vertical_range = 1.0- #853
- Explicitly disallow using a repeated capability on Session.
-
-
NI-DMM
-
Changed
- Fixed name
freq_voltage_autorangebecamefreq_voltage_auto_range
- Fixed name
-
Removed
configure_ac_bandwidth()- #875configure_open_cable_comp_values()- #875configure_power_line_frequency()- #875configure_short_cable_comp_values()- #875get_aperture_time_info()- #875get_auto_range_value()- #875get_measurement_period()- #875latency- #875shunt_value- #875meas_dest_slope- #875sample_trigger_slope- #875trigger_slope- #875
-
-
NI-ModInst
-
Changed
- Double close will now allow NI-ModInst to return error
-
-
NI-Switch
-
Removed
cabled_module_scan_advanced_bus- #881cabled_module_trigger_bus- #881master_slave_scan_advanced_bus- #881master_slave_trigger_bus- #881parsed_scan_list- #881trigger_mode- #881scan_advanced_polarity- #881trigger_input_polarity- #881configure_scan_list()- #881configure_scan_trigger()- #881route_trigger_input()- #881set_continuous_scan()- #881
-
-
NI-DCPower
-
Removed
- Remove trigger configuration methods, use attributes instead #860
configure_digital_edge_measure_trigger()- usesession.digital_edge_measure_trigger_edge&session.digital_edge_measure_trigger_input_terminalconfigure_digital_edge_pulse_trigger()- usesession.digital_edge_pulse_trigger_edge&session.digital_edge_pulse_trigger_input_terminalconfigure_digital_edge_sequence_advance_trigger()- usesession.digital_edge_sequence_advance_trigger_edge&session.digital_edge_sequence_advance_trigger_input_terminalconfigure_digital_edge_source_trigger()- usesession.digital_edge_source_trigger_edge&session.digital_edge_source_trigger_input_terminalconfigure_digital_edge_start_trigger()- usesession.digital_edge_start_trigger_edge&session.digital_edge_start_trigger_input_terminal
- Remove polarity attributes for triggers that are PXI backplane only (only support rising edge) #860
digital_edge_measure_trigger_edgedigital_edge_pulse_trigger_edgedigital_edge_sequence_advance_trigger_edgedigital_edge_source_trigger_edgedigital_edge_start_trigger_edge
- Remove trigger configuration methods, use attributes instead #860
-
-
NI-FGEN
-
Changed
num_channelsattribute renamed tochannel_count- now consistent with other driverssend_software_edge_trigger()no longer takes any parameters.- To send a start software trigger, call it on the session directly:
python session.send_software_edge_trigger() - To send a script software trigger, call it on the script triggers container:
python session.script_triggers[1].send_software_edge_trigger()
- To send a start software trigger, call it on the session directly:
-
Removed
- Remove trigger configuration methods, use attributes instead #860
configure_digital_edge_script_trigger()- usesession.digital_edge_script_trigger_source&session.digital_edge_script_trigger_edgeconfigure_digital_level_script_trigger()- usesession.digital_level_script_trigger_source&session.digital_level_script_trigger_active_levelconfigure_digital_edge_start_trigger()- usesession.digital_edge_start_trigger_source&session.digital_edge_start_trigger_edge
- Removed
get_fir_filter_coefficients()- #535, #596
- Remove trigger configuration methods, use attributes instead #860
-
-
NI-SCOPE
-
Added
niscope_fetch_forever.pyexample
-
Removed
- Removed default value for
levelparameter onconfigure_trigger_edge()- parameter list is now
configure_trigger_edge(self, trigger_source, level, trigger_coupling, slope=enums.TriggerSlope.POSITIVE, holdoff=datetime.timedelta(seconds=0.0), delay=datetime.timedelta(seconds=0.0))
- parameter list is now
- Removed default values for
levelandhysteresisparameters onconfigure_trigger_hysteresis()- parameter list is now
configure_trigger_hysteresis(self, trigger_source, level, hysteresis, trigger_coupling, slope=enums.TriggerSlope.POSITIVE, holdoff=datetime.timedelta(seconds=0.0), delay=datetime.timedelta(seconds=0.0))
- parameter list is now
- Removed default value for
-
API and Documentation cleanup
-
ALL
-
Added
-
Changed
-
Removed
- IVI properties as applicable - some were already removed from some drivers #824
engine_major_versionengine_minor_versionengine_revisionprimary_errorsecondary_errorerror_elaborationio_session_typeio_session/visa_rm_sessiongroup_capabilitiesinterchange_checkrange_checkrecord_coercionsspecific_driver_class_spec_major_versionspecific_driver_class_spec_minor_versionquery_instrument_statuscachespecific_driver_prefix
- IVI properties as applicable - some were already removed from some drivers #824
-
-
NI-DCPower
-
NI-FGEN
-
Changed
- Some functions missed setting repeated capabilities, leaving these as parameters instead of using the repeated capabilites object.
session.configure_digital_edge_script_trigger('ScriptTrigger0', source, ...)becomessession.script_triggers[0].configure_digital_edge_script_trigger(source, ...)session.configure_digital_level_script_trigger('ScriptTrigger0', source, ...)becomessession.script_triggers[0].configure_digital_level_script_trigger(source, ...)
- Some functions missed setting repeated capabilities, leaving these as parameters instead of using the repeated capabilites object.
-
Removed
export_signal()- #828osp_fir_filter_interpolation- #864osp_fir_filter_gaussian_bt- #864osp_fir_filter_flat_passband- #864osp_fir_filter_enabled- #864osp_enabled- #864osp_data_processing_mode- #864osp_compensate_for_filter_group_delay- #864osp_cic_filter_interpolation- #864osp_cic_filter_gain- #864osp_cic_filter_enabled- #864osp_carrier_phase_q- #864osp_carrier_phase_i- #864osp_carrier_frequency- #864osp_carrier_enabled- #864osp_pre_filter_offset_q- #864osp_pre_filter_offset_i- #864osp_pre_filter_gain_q- #864osp_pre_filter_gain_i- #864osp_overflow_status- #864osp_overflow_error_reporting- #864osp_mode- #864osp_frequency_shift- #864osp_fir_filter_type- #864osp_fir_filter_root_raised_cosine_alpha- #864osp_fir_filter_raised_cosine_alpha- #864ready_for_start_event_level_active_level- #859started_event_level_active_level- #859done_event_level_active_level- #859started_event_output_behavior- #859done_event_output_behavior- #859marker_event_output_behavior- #859marker_event_pulse_polarity- #859started_event_pulse_polarity- #859done_event_pulse_polarity- #859started_event_pulse_width- #859done_event_pulse_width- #859marker_event_pulse_width- #859started_event_pulse_width_units- #859done_event_pulse_width_units- #859marker_event_pulse_width_units- #859marker_event_toggle_initial_state- #859marker_event_live_status- #859ready_for_start_event_live_status- #859marker_event_latched_status- #859done_event_latched_status- #859started_event_latched_status- #859marker_event_delay- #859started_event_delay- #859done_event_delay- #859marker_event_delay_units- #859started_event_delay_units- #859done_event_delay_units- #859direct_dma_enabled- #858direct_dma_windowaddress- #858direct_dma_window_size#858gain_dac_value- #88offset_dac_vaue- #858id_query_respone- #858oscillator_freq_ac_value- #858oscillator_phase_dac_vale- #858post_amplifier_attenuatio- #858pre_amplifier_attenuation- #858p2p_endpoint_fullness_strt_trigger_level- #858pci_dma_optimizations_enabled- #858sample_clock_absolute_delay- #858synchronization- #858sync_duty_cycl_high- #858sync_out_output_terinal- #858trigger_source- #858video_wavefor_type- #858
-
-
NI-SCOPE
-
Removed
-
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>.Erroris 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.1are 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_RESFunction._4_WIRE_RES-->Function.FOUR_WIRE_RESThermistorType._44004-->ThermistorType.THERMISTOR_44004ThermistorType._44006-->ThermistorType.THERMISTOR_44006ThermistorType._44007-->ThermistorType.THERMISTOR_44007TransducerType._2_WIRE_RTD-->TransducerType.TWO_WIRE_RTDTransducerType._4_WIRE_RTD-->TransducerType.FOUR_WIRE_RTD
Session.get_ext_cal_recommended_interval()now returns adatetime.timedeltafor 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.timedeltafor 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_inputattribute andSession.enums.CalADCInputenum - 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
wfmparameter towaveforminfetch()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_5102Session._5v_out_output_terminal-->Session.five_v_out_output_terminalExportableSignals._5V_OUT-->ExportableSignals.FIVE_V_OUTFlexFIRAntialiasFilterType._48_TAP_STANDARD-->FlexFIRAntialiasFilterType.FOURTYEIGHT_TAP_STANDARDFlexFIRAntialiasFilterType._48_TAP_HANNING-->FlexFIRAntialiasFilterType.FOURTYEIGHT_TAP_HANNINGFlexFIRAntialiasFilterType._16_TAP_HANNING-->FlexFIRAntialiasFilterType.SIXTEEN_TAP_HANNINGFlexFIRAntialiasFilterType._8_TAP_HANNING-->FlexFIRAntialiasFilterType.EIGHT_TAP_HANNINGVideoSignalFormat._480I_59_94_FIELDS_PER_SECOND-->VideoSignalFormat.VIDEO_480I_59_94_FIELDS_PER_SECONDVideoSignalFormat._480I_60_FIELDS_PER_SECOND-->VideoSignalFormat.VIDEO_480I_60_FIELDS_PER_SECONDVideoSignalFormat._480P_59_94_FRAMES_PER_SECOND-->VideoSignalFormat.VIDEO_480P_59_94_FRAMES_PER_SECONDVideoSignalFormat._480P_60_FRAMES_PER_SECOND-->VideoSignalFormat.VIDEO_480P_60_FRAMES_PER_SECONDVideoSignalFormat._576I_50_FIELDS_PER_SECOND-->VideoSignalFormat.VIDEO_576I_50_FIELDS_PER_SECONDVideoSignalFormat._576P_50_FRAMES_PER_SECOND-->VideoSignalFormat.VIDEO_576P_50_FRAMES_PER_SECONDVideoSignalFormat._720P_50_FRAMES_PER_SECOND-->VideoSignalFormat.VIDEO_720P_50_FRAMES_PER_SECONDVideoSignalFormat._720P_59_94_FRAMES_PER_SECOND-->VideoSignalFormat.VIDEO_720P_59_94_FRAMES_PER_SECONDVideoSignalFormat._720P_60_FRAMES_PER_SECOND-->VideoSignalFormat.VIDEO_720P_60_FRAMES_PER_SECONDVideoSignalFormat._1080I_50_FIELDS_PER_SECOND-->VideoSignalFormat.VIDEO_1080I_50_FIELDS_PER_SECONDVideoSignalFormat._1080I_59_94_FIELDS_PER_SECOND-->VideoSignalFormat.VIDEO_1080I_59_94_FIELDS_PER_SECONDVideoSignalFormat._1080I_60_FIELDS_PER_SECOND-->VideoSignalFormat.VIDEO_1080I_60_FIELDS_PER_SECONDVideoSignalFormat._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_tofetch_offsetfetch_record_numberfetch_num_records
- Removed
number_of_coefficientsparameter 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_unitsmeas_other_channelmeas_hysteresis_percentmeas_last_acq_histogram_sizemeas_voltage_histogram_sizemeas_voltage_histogram_low_voltsmeas_voltage_histogram_high_voltsmeas_time_histogram_sizemeas_time_histogram_low_voltsmeas_time_histogram_high_voltsmeas_time_histogram_low_timemeas_time_histogram_high_timemeas_polynomial_interpolation_ordermeas_interpolation_sampling_factormeas_filter_cutoff_freqmeas_filter_center_freqmeas_filter_ripplemeas_filter_transient_waveform_percentmeas_filter_typemeas_filter_ordermeas_filter_tapsmeas_chan_low_ref_levelmeas_chan_mid_ref_levelmeas_chan_high_ref_levelmeas_filter_widthmeas_fir_filter_windowmeas_array_gainmeas_array_offsetmeas_percentage_methodfetch_meas_num_samples
- Following properties are now removed (use parameters to fetch calls):
-