Send raw bytes to the instrument. :param data: bytes to be sent to the instrument :param data: bytes
(self, data)
| 83 | self.log_debug('Created Instrument {}', self.resource_name) |
| 84 | |
| 85 | def raw_send(self, data): |
| 86 | """Send raw bytes to the instrument. |
| 87 | |
| 88 | :param data: bytes to be sent to the instrument |
| 89 | :param data: bytes |
| 90 | """ |
| 91 | |
| 92 | try: |
| 93 | self.resource.write_raw(data) |
| 94 | except Exception as e: |
| 95 | raise Exception(str(e)) |
| 96 | |
| 97 | def initialize(self): |
| 98 | """Open port |