Send raw bytes to the instrument. :param data: bytes to be sent to the instrument. :param data: bytes.
(self, data)
| 38 | self.host_port = (host, port) |
| 39 | |
| 40 | def raw_send(self, data): |
| 41 | """Send raw bytes to the instrument. |
| 42 | |
| 43 | :param data: bytes to be sent to the instrument. |
| 44 | :param data: bytes. |
| 45 | """ |
| 46 | try: |
| 47 | self.socket.send(data) |
| 48 | except socket.timeout as e: |
| 49 | raise LantzSocketTimeoutError(str(e)) |
| 50 | |
| 51 | def raw_recv(self, size): |
| 52 | """Receive raw bytes to the instrument. |
nothing calls this directly
no test coverage detected