ni.measurementlink.pinmap.v1.pin_map_service_pb2
Attributes
Classes
Pin map resource type. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
Package Contents
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.PinMap(*, pin_map_id=...)
Bases:
google.protobuf.message.MessagePin map resource type.
- Parameters:
pin_map_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___PinMap
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.CreatePinMapFromXmlRequest(*, pin_map_id=..., pin_map_xml=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___CreatePinMapFromXmlRequest
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.UpdatePinMapFromXmlRequest(*, pin_map_id=..., pin_map_xml=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___UpdatePinMapFromXmlRequest
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.GetPinMapRequest(*, pin_map_id=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
pin_map_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___GetPinMapRequest
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.QueryPinsRequest(*, pin_map_id=..., instrument_type_id=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- instrument_type_id: str
Optional. Filter pins by instrument type.
Pin maps have built in instrument definitions using the following NI driver based instrument type ids:
“niDCPower”
“niDigitalPattern”
“niScope”
“niDMM”
“niDAQmx”
“niFGen”
For custom instruments the user defined instrument type id is defined in the pin map file.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___QueryPinsRequest
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.QueryPinsResponse(*, pins=..., pin_groups=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
pins (collections.abc.Iterable[global___PinDefinition] | None)
pin_groups (collections.abc.Iterable[global___PinGroupDefinition] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property pins: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PinDefinition]
List of pins on the registered pin map resource. This list includes both DUT and System pins.
- property pin_groups: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PinGroupDefinition]
List of pin groups on the registered pin map resource. When an instrument type id filter is specified, a pin group will only be included in the response if all pins in the pin group match the instrument type.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___QueryPinsResponse
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.PinDefinition(*, display_name=..., is_system_pin=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___PinDefinition
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.PinGroupDefinition(*, display_name=..., pin_or_group_references=..., resolved_pins=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
display_name (str)
pin_or_group_references (collections.abc.Iterable[str] | None)
resolved_pins (collections.abc.Iterable[str] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property pin_or_group_references: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
List of other pins or pin groups within this pin group.
- property resolved_pins: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
Distinct union of pins within this pin group, including those within nested pin groups.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___PinGroupDefinition
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.QueryRelaysRequest(*, pin_map_id=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
pin_map_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___QueryRelaysRequest
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.QueryRelaysResponse(*, relays=..., relay_groups=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
relays (collections.abc.Iterable[global___RelayDefinition] | None)
relay_groups (collections.abc.Iterable[global___RelayGroupDefinition] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property relays: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RelayDefinition]
List of relays on the registered pin map resource. This list includes both Site relays and System relays.
- property relay_groups: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RelayGroupDefinition]
List of relay groups on the registered pin map resource.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___QueryRelaysResponse
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.RelayDefinition(*, display_name=..., is_system_relay=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- is_system_relay: bool
A boolean that indicates a System relay when ‘true’, or Site relay when ‘false’.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___RelayDefinition
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.RelayGroupDefinition(*, display_name=..., relay_or_group_references=..., resolved_relays=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
display_name (str)
relay_or_group_references (collections.abc.Iterable[str] | None)
resolved_relays (collections.abc.Iterable[str] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property relay_or_group_references: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
List of other relays or relay groups within this relay group.
- property resolved_relays: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
Distinct union of relays within this relay group, including those within nested relay groups.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___RelayGroupDefinition
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.QueryResourceAccessInformationRequest(*, pin_map_id=..., sites=..., pin_or_relay_names=..., instrument_type_id=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
pin_map_id (str)
sites (collections.abc.Iterable[int] | None)
pin_or_relay_names (collections.abc.Iterable[str] | None)
instrument_type_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- instrument_type_id: str
Optional. The instrument type for which to get instrument resource access information. If unspecified, get instrument resource information for all instrument types connected in the registered pin map resource.
Pin maps have built in instrument definitions using the following NI driver based instrument type ids:
“niDCPower”
“niDigitalPattern”
“niScope”
“niDMM”
“niDAQmx”
“niFGen”
“niRelayDriver”
For custom instruments the user defined instrument type id is defined in the pin map file.
- property sites: google.protobuf.internal.containers.RepeatedScalarFieldContainer[int]
Optional. The list of sites for which to get instrument resource access information. If unspecified, get instrument resource information for all sites in the registered pin map resource.
- property pin_or_relay_names: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
Optional. The list of pins, pin groups, relays, or relay groups for which to get instrument resource access information. If unspecified, get instrument resource information for all pins and relays in the registered pin map resource.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___QueryResourceAccessInformationRequest
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.QueryResourceAccessInformationResponse(*, resource_access_information=..., group_mappings=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
resource_access_information (collections.abc.Iterable[global___ResourceAccessInformation] | None)
group_mappings (collections.abc.Mapping[str, global___ResolvedPinsOrRelays] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class GroupMappingsEntry(*, key=..., value=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
key (str)
value (global___ResolvedPinsOrRelays | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: global___ResolvedPinsOrRelays
- Return type:
- HasField(field_name)
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- property resource_access_information: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResourceAccessInformation]
List of ResourceAccessInformation objects with instrument resource names and channels.
- property group_mappings: google.protobuf.internal.containers.MessageMap[str, global___ResolvedPinsOrRelays]
Represents the mapping between pin or relay groups and their respective pin or relay names.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___QueryResourceAccessInformationResponse
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.ResourceAccessInformation(*, resource_name=..., channel_list=..., instrument_type_id=..., channel_mappings=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
resource_name (str)
channel_list (str)
instrument_type_id (str)
channel_mappings (collections.abc.Iterable[global___ChannelMapping] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- resource_name: str
Name of the instrument resource. This string is used for initializing the driver session.
- channel_list: str
Channels on the instrument resource. This string is used by various driver API methods such as Read, Fetch etc., and driver initialization for some instruments. For a resource that represents a group of instruments or channels in the pin map, the channel list is a comma separated list of fully qualified channels in the format <instrument_name>/<channel>, e.g. “DCPower1/0, DCPower1/2, DCPower2/0”. For a resource that represents a single instrument in the pin map that is not part of a group, the channel list is a comma separated list of channels, e.g. “0, 1, 2”. For NI-Digital Pattern devices, the channel list is a comma separated list of pins in the format <site_number>/<pin>, e.g. “site0/PinA, site1/PinB”. For a resource that represents a relay driver, the channel list is a comma separated list of NISwitch relay names, e.g. “K0, K1, K2”.
- instrument_type_id: str
The instrument type of the instrument resource.
Pin maps have built in instrument definitions using the following NI driver based instrument type ids:
“niDCPower”
“niDigitalPattern”
“niScope”
“niDMM”
“niDAQmx”
“niFGen”
“niRelayDriver”
For custom instruments the user defined instrument type id is defined in the pin map file.
- property channel_mappings: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ChannelMapping]
List of site and pin/relay mappings with optional multiplexer information for each channel in the channel_list. Each item represents a channel-to-pin connection for this instrument resource. In the case of shared pins, there is a separate item for each connection.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___ResourceAccessInformation
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.ChannelMapping(*, pin_or_relay_name=..., site=..., channel=..., multiplexer_resource_name=..., multiplexer_route=..., multiplexer_type_id=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- site: int
The site on which the pin or relay is mapped to a channel. For system pins/relays the site number is -1 since they do not belong to a specific site.
- multiplexer_resource_name: str
The multiplexer resource name is used to open the multiplexer session in the driver.
- multiplexer_route: str
The multiplexer route through which the pin is connected to an instrument’s channel.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___ChannelMapping
- class ni.measurementlink.pinmap.v1.pin_map_service_pb2.ResolvedPinsOrRelays(*, pin_or_relay_names=...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
pin_or_relay_names (collections.abc.Iterable[str] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property pin_or_relay_names: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
List of pin or relay names in the pin or relay group.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.pinmap.v1.pin_map_service_pb2.global___ResolvedPinsOrRelays