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

Method query

lantz/drivers/legacy/textual.py:134–145  ·  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

132 return received
133
134 def query(self, command, *, send_args=(None, None), recv_args=(None, None)):
135 """Send query to the instrument and return the answer
136
137 :param command: command to be sent to the instrument
138 :type command: string
139
140 :param send_args: (termination, encoding) to override class defaults
141 :param recv_args: (termination, encoding) to override class defaults
142 """
143
144 self.send(command, *send_args)
145 return self.recv(*recv_args)
146
147 def parse_query(self, command, *,
148 send_args=(None, None), recv_args=(None, None),

Callers 1

parse_queryMethod · 0.95

Calls 2

sendMethod · 0.95
recvMethod · 0.95

Tested by

no test coverage detected