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

Method query

lantz/messagebased.py:334–345  ·  view source on GitHub ↗

Send query to the instrument and return the answer :param command: command to be sent to the instrument :type command: string :param send_args: (termination, encoding) to override class defaults :param recv_args: (termination, encoding) to override class defaults

(self, command, *, send_args=(None, None), recv_args=(None, None))

Source from the content-addressed store, hash-verified

332 super().finalize()
333
334 def query(self, command, *, send_args=(None, None), recv_args=(None, None)):
335 """Send query to the instrument and return the answer
336
337 :param command: command to be sent to the instrument
338 :type command: string
339
340 :param send_args: (termination, encoding) to override class defaults
341 :param recv_args: (termination, encoding) to override class defaults
342 """
343
344 self.write(command, *send_args)
345 return self.read(*recv_args)
346
347 def parse_query(self, command, *,
348 send_args=(None, None), recv_args=(None, None),

Callers 1

parse_queryMethod · 0.95

Calls 2

writeMethod · 0.95
readMethod · 0.95

Tested by

no test coverage detected