Releases: ni/measurement-plugin-python
MeasurementLink Support for Python v0.12.2
MeasurementLink Support for Python (ni-measurementlink-service
) is a Python framework that enables measurement developers to quickly create Python measurements and run them as a service (gRPC).
What's Changed
- BREAKING CHANGE: Update the
MeasurementService
__init__
method to take in the.serviceconfig
file path, version, and UI path. - Misc example and documentation improvements
Full Changelog: 0.12.2...0.12.1
Dependencies
- Python >= 3.8 (3.9 recommended)
- grpcio >= 1.49.1, < 2.x
- protobuf >= 4.21, < 5.x
- pywin32 >= 303 (Only for Windows)
Installation
Make sure the system has the recommended Python version installed.
Install the latest NIMS Framework using pip.
REM Activate the required virtual environment if any.
pip install ni-measurementlink-service
Install the ni-measurementlink-generator to create measurement services
REM Activate the required virtual environment if any.
pip install ni-measurementlink-generator
MeasurementLink Support for Python v0.12.1
MeasurementLink™ Support for Python (ni-measurementlink-service
) is a python framework that enables measurement developers to quickly create python measurements and run them as a service (gRPC).
What's Changed
- Add channel mapping to SessionInformation
- Add 'path' type specialization support
- Add VISA DMM example
- Various fixes and improvements to the examples
Full Changelog: 0.12.1...0.12.0
Dependencies
- Python >= 3.8 (3.9 recommended)
- grpcio >= 1.49.1, < 2.x
- protobuf >= 4.21, < 5.x
- pywin32 >= 303 (Only for Windows)
Installation
Make sure the system has the recommended Python version installed.
Install the latest NIMS Framework using pip.
REM Activate the required virtual environment if any.
pip install ni-measurementlink-service
Install the ni-measurementlink-generator to create measurement services
REM Activate the required virtual environment if any.
pip install ni-measurementlink-generator
MeasurementLink Support for Python v0.12.0
MeasurementLink™ Support for Python (ni-measurementlink-service
) is a python framework that enables measurement developers to quickly create python measurements and run them as a service (gRPC).
What's Changed
- Renamed the packages to 'ni-measurementlink-service' and 'ni-measurementlink-generator'. This corresponds with a change to the repo name
- Upgraded to protobuf 4.21. This is a new major version that uses the C upb library to improve performance. It breaks compatibility unless you set an environment variable to opt out of the new implementation: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
- Upgraded to grpcio & grpcio-tools 1.49.1. Version 1.48 and older require protobuf>=3.12.0, < 4.0dev, which means they are not compatible with protobuf 4.21
- Various fixes and enhancements to the examples including pin support
- Regenerated stub code with several updated .proto files
- Support for Python 3.10 and 3.11
Full Changelog: 0.12.0...0.11.1
Dependencies
- Python >= 3.8 (3.9 recommended)
- grpcio >= 1.49.1, < 2.x
- protobuf >= 4.21, < 5.x
- pywin32 >= 303 (Only for Windows)
Installation
Make sure the system has the recommended Python version installed.
Install the latest NIMS Framework using pip.
REM Activate the required virtual environment if any.
pip install ni-measurementlink-service
Install the ni-measurementlink-generator to create measurement services
REM Activate the required virtual environment if any.
pip install ni-measurementlink-generator
MeasurementLink™ Support for Python v0.11.1
MeasurementLink™ Support for Python (ni-measurement-service
) is a python framework that enables measurement developers to quickly create python measurements and run them as a service (gRPC).
What's Changed
- Fix build workflow failure that prevented
ni-measurement-generator
0.11.0 from being published to PyPI.
Full Changelog: 0.11.0...0.11.1
Dependencies
- Python >= 3.8 (3.9 recommended)
- grpcio >= 1.41.1, < 2.x
- protobuf >= 3.20, < 4.x
- pywin32 >= 303 (Only for Windows)
Installation
Make sure the system has the recommended Python version installed.
Install the latest NIMS Framework using pip.
REM Activate the required virtual environment if any.
pip install ni-measurement-service
Install the ni-measurement-generator to create measurement services
REM Activate the required virtual environment if any.
pip install ni-measurement-generator
MeasurementLink™ Support for Python v0.11.0
MeasurementLink™ Support for Python (ni-measurement-service
) is a python framework that enables measurement developers to quickly create python measurements and run them as a service (gRPC).
What's Changed
- Update to latest version of MeasurementLink gRPC
.proto
files and regenerate gRPC stubs. - Update DiscoveryClient to use updated key file path. This is required to interoperate with recent builds of MeasurementLink.
- Add support for 1D string arrays.
- Update documentation to use "MeasurementLink" terminology.
- Upgrade to Poetry 1.2 in order to make it easier to use a pre-release version of nimi-python.
- nimi-python support for gRPC is not released yet, so sharing instrument sessions between InstrumentStudio and TestStand requires obtaining nimi-python from the
generated
subdirectory of the nimi-python Git repo. - Poetry 1.2 allows us to specify references to the nimi-python Git repo in
pyproject.toml
.
- nimi-python support for gRPC is not released yet, so sharing instrument sessions between InstrumentStudio and TestStand requires obtaining nimi-python from the
- Loosen
grpcio
module versioning.ni-measurement-service
now supportsgrpcio
>= 1.41.1, < 2.x. It is no longer locked to a specificgrpcio
version. - Examples:
- Add new, pin-aware examples for NI-DMM, NI-FGEN, NI-SCOPE, and NI-SWITCH.
- Add pin control to the UI for all pin-aware examples.
- Measurement UI Editor currently only supports scalar pins. We are still working on support for pin arrays.
nidcpower_source_dc_voltage_with_labview_ui
demonstrates LabVIEW support for pin arrays.
- Update pin-aware examples to support sharing instrument sessions between InstrumentStudio and TestStand, using the NI gRPC Device Server and MeasurementLink Session Management service.
- Add TestStand sequences and setup/cleanup code modules to all pin-aware examples.
- Add project files for InstrumentStudio and MeasurementLink UI Editor with the appropriate pin map selected.
- Rename some existing examples.
- Fix slow logging with large number of samples in the DAQmx example.
- Update
sample_measurement
to demonstrate 1D string arrays.
Full Changelog: 0.10.2...0.11.0
Dependencies
- Python >= 3.8 (3.9 recommended)
- grpcio >= 1.41.1, < 2.x
- protobuf >= 3.20, < 4.x
- pywin32 >= 303 (Only for Windows)
Installation
Make sure the system has the recommended Python version installed.
Install the latest NIMS Framework using pip.
REM Activate the required virtual environment if any.
pip install ni-measurement-service
Install the ni-measurement-generator to create measurement services
REM Activate the required virtual environment if any.
pip install ni-measurement-generator
Python Measurement Support v0.10.2
The measurement framework support for Python that enables creating and running Python-based measurements.
Features added:
- Make stub generation easier with scripts and match the .proto file organization in ASW repo
- Update to respond to .proto file changes in measurement_service.proto and discovery_service.proto
Abbreviations
- NIMS - NI Measurement Service Framework -
ni_measurement_service
.
Dependencies
Installation
Make sure the system has the recommended python version is installed.
Install the latest NIMS Framework using pip.
REM Activate the required virtual environment if any.
pip install ni-measurement-service
Install the ni-measurement-generator to create measurement services
REM Activate the required virtual environment if any.
pip install ni-measurement-generator
Python Measurement Support v0.10.1
The measurement framework support for Python that enables creating and running Python-based measurements.
Features added:
- Make stub generation easier with scripts and match the .proto file organization in ASW repo
- Update to respond to .proto file changes in measurement_service.proto and discovery_service.proto
Abbreviations
- NIMS - NI Measurement Service Framework -
ni_measurement_service
.
Dependencies
Installation
Make sure the system has the recommended python version is installed.
Install the latest NIMS Framework using pip.
REM Activate the required virtual environment if any.
pip install ni-measurement-service
Install the ni-measurement-generator to create measurement services
REM Activate the required virtual environment if any.
pip install ni-measurement-generator
Python Measurement Support 0.9.2
The measurement framework support for Python that enables creating and running Python-based measurements.
Features added:
- Update so ui_file_path is now an list of ui_file_paths and uses a Url.
Abbreviations
- NIMS - NI Measurement Service Framework -
ni_measurement_service
.
Dependencies
Installation
Make sure the system has the recommended python version is installed.
Install the latest NIMS Framework using pip.
REM Activate the required virtual environment if any.
pip install ni-measurement-service
Install the ni-measurement-generator to create measurement services
REM Activate the required virtual environment if any.
pip install ni-measurement-generator
Python Measurement Support 0.9.1
The measurement framework support for Python that enables creating and running Python-based measurements.
Features added:
- Fix error in start.bat from the ni-measurement-generator
- Fix DCMeasurementUI.vi in the 'dc_measurement_labviewUI' example. It was broken.
Abbreviations
- NIMS - NI Measurement Service Framework -
ni_measurement_service
.
Dependencies
Installation
Make sure the system has the recommended python version is installed.
Install the latest NIMS Framework using pip.
REM Activate the required virtual environment if any.
pip install ni-measurement-service
Install the ni-measurement-generator to create measurement services
REM Activate the required virtual environment if any.
pip install ni-measurement-generator
Python Measurement Support 0.9.0
The measurement framework support for Python that enables creating and running Python-based measurements.
Features added:
- Add support for all the numeric and boolean array data types to the measurement-service datatype enum
- Change gRPC max receive / send message size to unlimited
Abbreviations
- NIMS - NI Measurement Service Framework -
ni_measurement_service
.
Dependencies
Installation
Make sure the system has the recommended python version is installed.
Install the latest NIMS Framework using pip.
REM Activate the required virtual environment if any.
pip install ni-measurement-service
Install the ni-measurement-generator to create measurement services
REM Activate the required virtual environment if any.
pip install ni-measurement-generator