Understanding the Discovery Service
- Updated2025-10-03
- 1 minute(s) read
The Measurement Plug-Ins discovery service provides a registry of other services, and can discover and activate other services on the system. These features allow the discovery service to distinguish, manage, and describe measurement services on the system.The Measurement Plug-Ins discovery service runs automatically when InstrumentStudio or TestStand enumerate available measurement services. To ensure that the discovery service is running, follow the initial steps for adding and running a measurement in either InstrumentStudio or TestStand.
Registering a Measurement Service with the Discovery Service
Activating a measurement service requires a *.serviceconfig file which includes information describing the service. Services that register a *.serviceconfig file must call RegisterService() when the service starts or registration will never succeed when the discovery service attempts to start the measurement service.
Enumerating Registered Measurement Services
Call the EnumerateServices() method to return the list of registered measurement services.
Related Information
- Understanding Measurement Plug-In Behavior
- Statically Register a Measurement Service
The Measurement Plug-Ins discovery service automatically registers measurement services that are deployed to the Measurement Plug-Ins services folder. The discovery service continuously monitors this folder for changes.
- Discovery Service Proto File