-
Install pyinstaller using command 'pip install -U pyinstaller' in command prompt.
-
Open command prompt in working directory and run command 'pyinstaller --onefile --console --paths .venv\Lib\site-packages measurement.py'.
-
After successful execution of command build and dist folders will be formed in working directory
-
measurement.exe will be present in dist folder.
-
Add service-config and UI files in dist folder and change folder and exe name accordingly.
-
change path to exe file name in service-config file
Note: Please note that the /build and /dist folder must not be committed to repo and will be ignored by .gitignore upon commit.
-
Open the NIPM package build spec under /package folder
-
Select the Package listed under 'Packages' tab. Ensure the version and other configurations are updated under 'Properties' tab.
-
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'.
-
In the Inputs tab, ensure the 'builds' folder is loaded with all measurement EXEs.
-
Ensure the destination for the package installation is set to the below location: "C:\ProgramData\National Instruments\MeasurementLink\Services"
-
Click on 'Build Solution' icon.
-
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:
Package File:
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.
-
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.
-
The feeds for Measurement plugins are maintained under the below repo. https://github.com/NI-MeasurementLink-Plug-Ins/package-manager-feeds
-
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













