exopy_hqc_legacy/instruments/drivers/visa/tinybuilt.py
def big_volt_range(self, value):
        """Voltage range method. Two values possible :
        big range = 12V = 'True' or 1 and small range = 1.2V = 'False' or 0
        TinyBilt need to be turned off to change the voltage range
        """
        with self.secure():
            outp = self._TB.query(self._header + 'OUTP?')
            if outp == 1:
                raise InstrIOError(cleandoc('''TinyBilt need to be turned
                                                 off to change the voltage
                                                range'''))
            if value in ('True', 1):
                self._TB.write(self._header + 'volt:rang 12')
                result = self._TB.query(self._header + 'volt:rang?')
                if abs(float(result) - 12) > 10**-12:
                    mess = 'Instrument did not set correctly the range voltage'
                    raise InstrIOError(mess)
            elif value in ('False', 0):
                self._TB.write(self._header + 'volt:rang 1.2')
                result = self._TB.query(self._header + 'volt:rang?')
                if abs(float(result) - 1.2) > 10**-12:
                    raise InstrIOError(cleandoc('''Instrument did not set
                                                correctly the range
                                                voltage'''))
            else:
                raise ValueError(cleandoc('''Big range 12V = "True"
                                          or 1, small range 1.2V
                                          = "False" or 0'''))
Voltage range method. Two values possible :
        big range = 12V = 'True' or 1 and small range = 1.2V = 'False' or 0
        TinyBilt need to be turned off to change the voltage range
        
Voltage range method. Two values possible :
big range = 12V = 'True' or 1 and small range = 1.2V = 'False' or 0
TinyBilt need to be turned off to change the voltage range
Voltage range method . Two values possible : big range = 12V = ' True ' or 1 and small range = 1 . 2V = ' False ' or 0 TinyBilt need to be turned off to change the voltage range
def big_volt_range(self, value):
        with self.secure():
            outp = self._TB.query(self._header + 'OUTP?')
            if outp == 1:
                raise InstrIOError(cleandoc('''TinyBilt need to be turned
                                                 off to change the voltage
                                                range'''))
            if value in ('True', 1):
                self._TB.write(self._header + 'volt:rang 12')
                result = self._TB.query(self._header + 'volt:rang?')
                if abs(float(result) - 12) > 10**-12:
                    mess = 'Instrument did not set correctly the range voltage'
                    raise InstrIOError(mess)
            elif value in ('False', 0):
                self._TB.write(self._header + 'volt:rang 1.2')
                result = self._TB.query(self._header + 'volt:rang?')
                if abs(float(result) - 1.2) > 10**-12:
                    raise InstrIOError(cleandoc('''Instrument did not set
                                                correctly the range
                                                voltage'''))
            else:
                raise ValueError(cleandoc('''Big range 12V = "True"
                                          or 1, small range 1.2V
                                          = "False" or 0'''))
def big_volt_range ( self , value ) : with self . secure ( ) : outp = self . _TB . query ( self . _header + 'OUTP?' ) if outp == 1 : raise InstrIOError ( cleandoc ( '''TinyBilt need to be turned
                                                 off to change the voltage
                                                range''' ) ) if value in ( 'True' , 1 ) : self . _TB . write ( self . _header + 'volt:rang 12' ) result = self . _TB . query ( self . _header + 'volt:rang?' ) if abs ( float ( result ) - 12 ) > 10 ** - 12 : mess = 'Instrument did not set correctly the range voltage' raise InstrIOError ( mess ) elif value in ( 'False' , 0 ) : self . _TB . write ( self . _header + 'volt:rang 1.2' ) result = self . _TB . query ( self . _header + 'volt:rang?' ) if abs ( float ( result ) - 1.2 ) > 10 ** - 12 : raise InstrIOError ( cleandoc ( '''Instrument did not set
                                                correctly the range
                                                voltage''' ) ) else : raise ValueError ( cleandoc ( '''Big range 12V = "True"
                                          or 1, small range 1.2V
                                          = "False" or 0''' ) )
Voltage range method.
Voltage range method .
"""Voltage range method. Two values possible :
        big range = 12V = 'True' or 1 and small range = 1.2V = 'False' or 0
        TinyBilt need to be turned off to change the voltage range
        """
self
value