Send query to the instrument and return the answer. Set remote mode if needed.
(self, command, *, send_args=(None, None), recv_args=(None, None))
| 45 | 'read_termination': '\n'}} |
| 46 | |
| 47 | def query(self, command, *, send_args=(None, None), recv_args=(None, None)): |
| 48 | """Send query to the instrument and return the answer. |
| 49 | Set remote mode if needed. |
| 50 | """ |
| 51 | if command and not self.recall('remote'): |
| 52 | self.log_info('Setting Remote.') |
| 53 | self.remote = True |
| 54 | return super().query(command, send_args=send_args, recv_args=recv_args) |
| 55 | |
| 56 | def query_expect(self, command, read_termination=None, expected='ok'): |
| 57 | """Send a query and check that the answer contains the string. |
no test coverage detected