qcodes/instrument_drivers/Minicircuits/USBHIDMixin.py
def _unpack_string(self, response: bytes) ->str:
        """
        Unpack data received from the instrument into a string

        Note that this method is not specific to SCPI-only responses.

        Args:
            response: a raw byte sequence response from the instrument
        """
        _, _, reply_data = struct.unpack(
            f"BB{self.packet_size - 1}s",
            bytes(response)
        )
        span = reply_data.find(self._end_of_message)
        return reply_data[:span].decode("ascii")

        Unpack data received from the instrument into a string

        Note that this method is not specific to SCPI-only responses.

        Args:
            response: a raw byte sequence response from the instrument
        
Unpack data received from the instrument into a string
Note that this method is not specific to SCPI-only responses.
Unpack data received from the instrument into a string Note that this method is not specific to SCPI - only responses .
def _unpack_string(self, response: bytes) ->str:
        _, _, reply_data = struct.unpack(
            f"BB{self.packet_size - 1}s",
            bytes(response)
        )
        span = reply_data.find(self._end_of_message)
        return reply_data[:span].decode("ascii")
def _unpack_string ( self , response : bytes ) -> str : _ , _ , reply_data = struct . unpack ( f"BB{self.packet_size - 1}s" , bytes ( response ) ) span = reply_data . find ( self . _end_of_message ) return reply_data [ : span ] . decode ( "ascii" )
Unpack data received from the instrument into a string
Note that this method is not specific to SCPI-only responses.
Unpack data received from the instrument into a string Note that this method is not specific to SCPI - only responses .
"""
        Unpack data received from the instrument into a string

        Note that this method is not specific to SCPI-only responses.

        Args:
            response: a raw byte sequence response from the instrument
        """
self
response
bytes
a raw byte sequence response from the instrument
a raw byte sequence response from the instrument