Solution
These services are shared resources that can also be accessed by other applications, such as TestStand and FlexLogger.
To stop or manage running measurement plug-in services, use one of the following methods:
1. Terminate the discovery service using Task Manager: statically registered services are launched on demand by the discovery service.
-
- Open Windows Task Manager.
- Under the Processes tab, navigate to Background processes.
- Locate the measurement service executable process or the discovery service process (NI.Discovery.V1.Service.exe).
- Right-click the process and select End Task.
- Replace or update the measurement executable in C:\ProgramData\National Instruments\Plug-Ins\Services
Note: Statically registered services run as child processes of the discovery service (NI-Discovery.V1.Service.exe). Terminating the discovery service stops all statically registered services. Client applications will restart services automatically as needed.
2. Run directly from the IDE during development (recommended debug workflow).
Rather than building an executable and placing it with a .serviceconfig file in the plug-ins directory during active development cycles:
-
- Open and run the measurement service directly from the LabVIEW Integrated Development Environment (IDE).
- Running the service manually from the IDE temporarily overrides the statically registered service and automatically terminates the running deployed instance.
- When debugging is finished and the IDE service is stopped, InstrumentStudio reverts to using the statically registered version.
3. Automate Service Termination in Deployment Installers
For the production deployments or upgrades (such as moving from v1.0 to v1.1):
-
- Configure your deployment installer, .nipkg package, or deployment script to stop or terminate the running service process prior to overwriting existing files.
- Alternatively, publish the measurement through the NI Plug-In Library and manage activation directly within InstrumentStudio.