qcodes/instrument_drivers/Keysight/N9030B.py
def _get_data(self, trace_num: int) -> ParamRawDataType:
        """
        Gets data from the measurement.
        """
        raw_data = self.ask(f":READ:{self.root_instrument.measurement()}{1}?")
        trace_res_details = np.array(
            raw_data.rstrip().split(",")
        ).astype("float64")

        if len(trace_res_details) != 7 or (
                len(trace_res_details) >= 1 and trace_res_details[0] < -50
        ):
            self.log.warning("Carrier(s) Incorrect or Missing!")
            return -1 * np.ones(self.npts())

        try:
            data_str = self.ask(f":READ:{self.root_instrument.measurement()}"
                                f"{trace_num}?")
            data = np.array(data_str.rstrip().split(",")).astype("float64")
        except TimeoutError as e:
            raise TimeoutError("Couldn't receive any data. Command timed "
                               "out.") from e

        trace_data = data[1::2]
        return trace_data

        Gets data from the measurement.
        
Gets data from the measurement.
Gets data from the measurement .
def _get_data(self, trace_num: int) -> ParamRawDataType:
        raw_data = self.ask(f":READ:{self.root_instrument.measurement()}{1}?")
        trace_res_details = np.array(
            raw_data.rstrip().split(",")
        ).astype("float64")
        if len(trace_res_details) != 7 or (
                len(trace_res_details) >= 1 and trace_res_details[0] < -50
        ):
            self.log.warning("Carrier(s) Incorrect or Missing!")
            return -1 * np.ones(self.npts())
        try:
            data_str = self.ask(f":READ:{self.root_instrument.measurement()}"
                                f"{trace_num}?")
            data = np.array(data_str.rstrip().split(",")).astype("float64")
        except TimeoutError as e:
            raise TimeoutError("Couldn't receive any data. Command timed "
                               "out.") from e
        trace_data = data[1::2]
        return trace_data
def _get_data ( self , trace_num : int ) -> ParamRawDataType : raw_data = self . ask ( f":READ:{self.root_instrument.measurement()}{1}?" ) trace_res_details = np . array ( raw_data . rstrip ( ) . split ( "," ) ) . astype ( "float64" ) if len ( trace_res_details ) != 7 or ( len ( trace_res_details ) >= 1 and trace_res_details [ 0 ] < - 50 ) : self . log . warning ( "Carrier(s) Incorrect or Missing!" ) return - 1 * np . ones ( self . npts ( ) ) try : data_str = self . ask ( f":READ:{self.root_instrument.measurement()}" f"{trace_num}?" ) data = np . array ( data_str . rstrip ( ) . split ( "," ) ) . astype ( "float64" ) except TimeoutError as e : raise TimeoutError ( "Couldn't receive any data. Command timed " "out." ) from e trace_data = data [ 1 : : 2 ] return trace_data
Gets data from the measurement.
Gets data from the measurement .
"""
        Gets data from the measurement.
        """
self
trace_num
int