qcodes/instrument_drivers/Minicircuits/USBHIDMixin.py
def ask_raw(self, cmd: str) -> str:
        """
        Send a string command to the human interface device and wait for a reply

        The given command is processed by `_pack_string` method to return a
        byte sequence that is going to be actually sent to the device.
        Subclasses must implement `_pack_string` method.

        The  byte sequence of the reply is processed by `_unpack_string`
        method, and the resulting string is returned. Subclasses must
        implement `_unpack_string` method.

        Args:
            cmd: a command to send in a form of a string
        """
        self.write_raw(cmd)

        number_of_tries = int(self._tries_per_second * self._timeout)

        response = None
        for _ in range(number_of_tries):
            time.sleep(1 / self._tries_per_second)
            response = self._get_data_buffer()
            if response is not None:
                break

        if response is None:
            raise TimeoutError(f"Timed out for command {cmd}")

        return self._unpack_string(response)

        Send a string command to the human interface device and wait for a reply

        The given command is processed by `_pack_string` method to return a
        byte sequence that is going to be actually sent to the device.
        Subclasses must implement `_pack_string` method.

        The  byte sequence of the reply is processed by `_unpack_string`
        method, and the resulting string is returned. Subclasses must
        implement `_unpack_string` method.

        Args:
            cmd: a command to send in a form of a string
        
Send a string command to the human interface device and wait for a reply
The given command is processed by `_pack_string` method to return a
byte sequence that is going to be actually sent to the device.
Subclasses must implement `_pack_string` method.

The  byte sequence of the reply is processed by `_unpack_string`
method, and the resulting string is returned. Subclasses must
implement `_unpack_string` method.
Send a string command to the human interface device and wait for a reply The given command is processed by ` _pack_string ` method to return a byte sequence that is going to be actually sent to the device . Subclasses must implement ` _pack_string ` method . The byte sequence of the reply is processed by ` _unpack_string ` method and the resulting string is returned . Subclasses must implement ` _unpack_string ` method .
def ask_raw(self, cmd: str) -> str:
        self.write_raw(cmd)
        number_of_tries = int(self._tries_per_second * self._timeout)
        response = None
        for _ in range(number_of_tries):
            time.sleep(1 / self._tries_per_second)
            response = self._get_data_buffer()
            if response is not None:
                break
        if response is None:
            raise TimeoutError(f"Timed out for command {cmd}")
        return self._unpack_string(response)
def ask_raw ( self , cmd : str ) -> str : self . write_raw ( cmd ) number_of_tries = int ( self . _tries_per_second * self . _timeout ) response = None for _ in range ( number_of_tries ) : time . sleep ( 1 / self . _tries_per_second ) response = self . _get_data_buffer ( ) if response is not None : break if response is None : raise TimeoutError ( f"Timed out for command {cmd}" ) return self . _unpack_string ( response )
Send a string command to the human interface device and wait for a reply
The given command is processed by `_pack_string` method to return a
byte sequence that is going to be actually sent to the device.
Send a string command to the human interface device and wait for a reply The given command is processed by ` _pack_string ` method to return a byte sequence that is going to be actually sent to the device .
"""
        Send a string command to the human interface device and wait for a reply

        The given command is processed by `_pack_string` method to return a
        byte sequence that is going to be actually sent to the device.
        Subclasses must implement `_pack_string` method.

        The  byte sequence of the reply is processed by `_unpack_string`
        method, and the resulting string is returned. Subclasses must
        implement `_unpack_string` method.

        Args:
            cmd: a command to send in a form of a string
        """
self
cmd
str
a command to send in a form of a string
a command to send in a form of a string