MCPcopy Create free account
hub / github.com/LabPy/lantz / query_expect

Method query_expect

lantz/drivers/legacy/kentech/hri.py:57–61  ·  view source on GitHub ↗
(self, command, recv_termination=None, expected='ok')

Source from the content-addressed store, hash-verified

55 return super().query(command, send_args=send_args, recv_args=recv_args)
56
57 def query_expect(self, command, recv_termination=None, expected='ok'):
58 ans = self.query(command, recv_args=(recv_termination, HRI.ENCODING))
59 if expected and not expected in ans:
60 raise InstrumentError("'{}' not in '{}'".format(expected, ans))
61 return ans
62
63 @Action()
64 def clear(self):

Callers 13

remoteMethod · 0.95
revisionMethod · 0.95
trigger_logicMethod · 0.95
trigger_edgeMethod · 0.95
trigger_ecl_modeMethod · 0.95
trigger_ecl_levelMethod · 0.95
clamp_voltageMethod · 0.95
average_voltageMethod · 0.95
statusMethod · 0.95
mcpMethod · 0.95
modeMethod · 0.95

Calls 2

queryMethod · 0.95
InstrumentErrorClass · 0.90

Tested by

no test coverage detected