pylabrobot.hamilton.transport.tcp#

Shared Hamilton TCP protocol layer for TCP-based instruments (Nimbus, Prep, etc.).

Classes

Address(module, node, object)

Hamilton network address (module_id, node_id, object_id).

ConnectionInfo(host, port, client_address, state)

An immutable snapshot of connection identity and state, without socket access.

CommandResponse(raw_bytes, ip, harp, hoi)

Parsed command response.

EventSubscription(capacity, overflow, on_close)

Consume events in arrival order on the connection's event loop.

HamiltonTCPClient(host, port[, ...])

Standalone transport + discovery/introspection client for Hamilton TCP devices.

TCPCommand(dest)

A reusable request, independent of connection identity and sequence allocation.

Exceptions

EventOverflowError

A subscriber could not keep up with the instrument's events.

HoiError(*, exceptions, entries, raw_response)

Raised for STATUS_EXCEPTION / COMMAND_EXCEPTION when the command wire shape does not carry per-channel parameters (e.g. void MLPrep queries).