Send raw bytes to the instrument. :param data: bytes to be sent to the instrument :param data: bytes
(self, data)
| 89 | self.log_debug('Created pyserial port {}', self.serial.port) |
| 90 | |
| 91 | def raw_send(self, data): |
| 92 | """Send raw bytes to the instrument. |
| 93 | |
| 94 | :param data: bytes to be sent to the instrument |
| 95 | :param data: bytes |
| 96 | """ |
| 97 | |
| 98 | try: |
| 99 | self.serial.write(data) |
| 100 | except serial.SerialTimeoutException as e: |
| 101 | raise LantzSerialTimeoutError(str(e)) |
| 102 | |
| 103 | def raw_recv(self, size): |
| 104 | """Receive raw bytes to the instrument. |
nothing calls this directly
no test coverage detected