ni_measurementlink_service
releases/1.4
  • API Reference
ni_measurementlink_service
  • ni_measurementlink_service._drivers._grpcdevice
  • Edit on GitHub

ni_measurementlink_service._drivers._grpcdevice

Shared functions for interacting with NI gRPC Device Server.

Module Contents

Functions

get_grpc_device_server_location(discovery_client, ...)

Get an address targeting NI gRPC Device Server for unencrypted communication.

get_insecure_grpc_device_server_channel(...)

Get an unencrypted gRPC channel targeting NI gRPC Device Server.

Attributes

SERVICE_CLASS

The service class for NI gRPC Device Server.

ni_measurementlink_service._drivers._grpcdevice.SERVICE_CLASS = 'ni.measurementlink.v1.grpcdeviceserver'

The service class for NI gRPC Device Server.

ni_measurementlink_service._drivers._grpcdevice.get_grpc_device_server_location(discovery_client, provided_interface)[source]

Get an address targeting NI gRPC Device Server for unencrypted communication.

Parameters:
  • discovery_client (ni_measurementlink_service.discovery.DiscoveryClient) –

  • provided_interface (str) –

Return type:

Optional[ni_measurementlink_service.discovery.ServiceLocation]

ni_measurementlink_service._drivers._grpcdevice.get_insecure_grpc_device_server_channel(discovery_client, grpc_channel_pool, provided_interface)[source]

Get an unencrypted gRPC channel targeting NI gRPC Device Server.

Parameters:
  • discovery_client (ni_measurementlink_service.discovery.DiscoveryClient) –

  • grpc_channel_pool (ni_measurementlink_service.grpc.channelpool.GrpcChannelPool) –

  • provided_interface (str) –

Return type:

Optional[grpc.Channel]


© Copyright 2024, National Instruments. Revision 2ba12c60.

Built with Sphinx using a theme provided by Read the Docs.