Connection#

class Connection(*args, **kwargs)[source]#

Bases: Protocol

Protocol class for the connection used in the nodetree.

Every connection object used in the Nodetree is expected to have at least this interface in order to work with the Nodetree.

Methods

get(path, *args, **kwargs)

Mirrors the behavior of zhinst.core get command.

getDouble(path)

Mirrors the behavior of zhinst.core getDouble command.

getInt(path)

Mirrors the behavior of zhinst.core getInt command.

getString(path)

Mirrors the behavior of zhinst.core getDouble command.

listNodesJSON(path, *args, **kwargs)

Returns a list of nodes with description found at the specified path.

set()

Mirrors the behavior of zhinst.core set command.

subscribe(path)

Mirrors the behavior of zhinst.core subscribe command.

unsubscribe(path)

Mirrors the behavior of zhinst.core unsubscribe command.