qcodes/instrument_drivers/tektronix/Keithley_2400.py
def _get_read_output_protected(self) -> str:
        """
        This wrapper function around ":READ?" exists because calling
        ":READ?" on an instrument with output disabled is an error.
        So first we check that output is on and if not we return
        nan for volt, curr etc.
        """
        output = self.output.get_latest()
        if output is None:
            # if get_latest returns None we have
            # to ask the instrument for the status of output
            output = self.output.get()

        if output == 1:
            msg = self.ask(':READ?')
        else:
            raise RuntimeError("Cannot perform read with output off")
        return msg

        This wrapper function around ":READ?" exists because calling
        ":READ?" on an instrument with output disabled is an error.
        So first we check that output is on and if not we return
        nan for volt, curr etc.
        
This wrapper function around ":READ?" exists because calling
":READ?" on an instrument with output disabled is an error.
So first we check that output is on and if not we return
nan for volt, curr etc.
This wrapper function around " : READ? " exists because calling " : READ? " on an instrument with output disabled is an error . So first we check that output is on and if not we return nan for volt curr etc .
def _get_read_output_protected(self) -> str:
        output = self.output.get_latest()
        if output is None:
            output = self.output.get()
        if output == 1:
            msg = self.ask(':READ?')
        else:
            raise RuntimeError("Cannot perform read with output off")
        return msg
def _get_read_output_protected ( self ) -> str : output = self . output . get_latest ( ) if output is None : output = self . output . get ( ) if output == 1 : msg = self . ask ( ':READ?' ) else : raise RuntimeError ( "Cannot perform read with output off" ) return msg
This wrapper function around ":READ?"
This wrapper function around " : READ? "
"""
        This wrapper function around ":READ?" exists because calling
        ":READ?" on an instrument with output disabled is an error.
        So first we check that output is on and if not we return
        nan for volt, curr etc.
        """ # if get_latest returns None we have # to ask the instrument for the status of output
self