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