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.