Skip to content

MeasurementLink™ Support for Python v0.11.0

Compare
Choose a tag to compare
@bkeryan bkeryan released this 08 Dec 22:21
· 665 commits to main since this release
3a01934

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.
  • Loosen grpcio module versioning. ni-measurement-service now supports grpcio >= 1.41.1, < 2.x. It is no longer locked to a specific grpcio 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

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