qcodes/instrument/ip_to_visa.py
def close(self) -> None:
        """Disconnect and irreversibly tear down the instrument."""

        # VisaInstrument close
        if getattr(self, 'visa_handle', None):
            self.visa_handle.close()

        # Instrument close
        if hasattr(self, 'connection') and hasattr(self.connection, 'close'):
            self.connection.close()

        strip_attrs(self, whitelist=['name'])
        self.remove_instance(self)
Disconnect and irreversibly tear down the instrument.
Disconnect and irreversibly tear down the instrument.
Disconnect and irreversibly tear down the instrument .
def close(self) -> None:
        if getattr(self, 'visa_handle', None):
            self.visa_handle.close()
        if hasattr(self, 'connection') and hasattr(self.connection, 'close'):
            self.connection.close()
        strip_attrs(self, whitelist=['name'])
        self.remove_instance(self)
def close ( self ) -> None : if getattr ( self , 'visa_handle' , None ) : self . visa_handle . close ( ) if hasattr ( self , 'connection' ) and hasattr ( self . connection , 'close' ) : self . connection . close ( ) strip_attrs ( self , whitelist = [ 'name' ] ) self . remove_instance ( self )
Disconnect and irreversibly tear down the instrument.
Disconnect and irreversibly tear down the instrument .
"""Disconnect and irreversibly tear down the instrument.""" # VisaInstrument close # Instrument close
self