Send raw bytes to the instrument. :param data: bytes to be sent to the instrument :type data: bytes
(self, data)
| 362 | self.raw_send(data) |
| 363 | |
| 364 | def raw_send(self, data): |
| 365 | """Send raw bytes to the instrument. |
| 366 | |
| 367 | :param data: bytes to be sent to the instrument |
| 368 | :type data: bytes |
| 369 | """ |
| 370 | |
| 371 | try: |
| 372 | return self.usb_send_ep.write(data) |
| 373 | except usb.core.USBError as e: |
| 374 | raise InstrumentError(str(e)) |
| 375 | |
| 376 | def recv(self, size): |
| 377 | return self.raw_recv(size) |
no test coverage detected