def write_raw(self, cmd: str): """ Low-level interface to ``visa_handle.ask``. Args: cmd: The command to send to the instrument. We overwrite the default implementation of ``write_raw`` because the instrument sends back an empty response after a write, so we need to grab that to prevent a backlog in the buffer. """ with DelayedKeyboardInterrupt(): self.visa_log.debug(f"Writing: {cmd}") self.visa_handle.query(cmd)