Skip to content

Latest commit

 

History

History
79 lines (41 loc) · 3.13 KB

build-plugin.md

File metadata and controls

79 lines (41 loc) · 3.13 KB

Build EXE for each measurement

  1. Install pyinstaller using command 'pip install -U pyinstaller' in command prompt.

    alt text

  2. Open command prompt in working directory and run command 'pyinstaller --onefile --console --paths .venv\Lib\site-packages measurement.py'.

    alt text

  3. After successful execution of command build and dist folders will be formed in working directory

    alt text

  4. measurement.exe will be present in dist folder.

    alt text

  5. Add service-config and UI files in dist folder and change folder and exe name accordingly.

    alt text

  6. change path to exe file name in service-config file

    alt text

Note: Please note that the /build and /dist folder must not be committed to repo and will be ignored by .gitignore upon commit.

Build NIPKG for the plugin

  1. Open the NIPM package build spec under /package folder

    alt text

  2. Select the Package listed under 'Packages' tab. Ensure the version and other configurations are updated under 'Properties' tab.

    alt text

  3. When using LabVIEW UI for the measurements, ensure LabVIEW Run Time Engine is added as a dependency. If not, add it by right clicking on package name and selecting 'Add Dependencies'.

    alt text

  4. In the Inputs tab, ensure the 'builds' folder is loaded with all measurement EXEs.

    alt text

  5. Ensure the destination for the package installation is set to the below location: "C:\ProgramData\National Instruments\MeasurementLink\Services"

    alt text

  6. Click on 'Build Solution' icon.

    alt text

  7. Once the build process is complete, you should be able to see a new version of package created in Package folder parallel to build spec.

    Package Folder:

    alt text

    Package File:

    alt text

Note: Please note that the built NIPM packages must not be committed to repo. The folders created upon building NI PKG (Packages, ProcessingStage) will be ignored by .gitignore upon commit.

Create and Update NIPM Feeds

  1. The NIPM packages for different measurement plugins are added to an NIPM feed. So the users can install new packages or receive updates on existing feeds by subscribing to the feed.

  2. The feeds for Measurement plugins are maintained under the below repo. https://github.com/NI-MeasurementLink-Plug-Ins/package-manager-feeds

  3. Please follow the procedure mentioned in below document for adding new packages or updating new versions of existing packages to the feed. https://github.com/NI-MeasurementLink-Plug-Ins/package-manager-feeds/blob/main/package-feed-updater/README.md