def METHOD_NAME(self):
    import glob
    from pipyadc_py3 import ADS1256
    from pipyadc_py3.ADS1256_definitions import POS_AIN0
    from pipyadc_py3.ADS1256_definitions import POS_AIN1
    from pipyadc_py3.ADS1256_definitions import POS_AIN2
    from pipyadc_py3.ADS1256_definitions import POS_AIN3
    from pipyadc_py3.ADS1256_definitions import POS_AIN4
    from pipyadc_py3.ADS1256_definitions import POS_AIN5
    from pipyadc_py3.ADS1256_definitions import POS_AIN6
    from pipyadc_py3.ADS1256_definitions import POS_AIN7
    from pipyadc_py3.ADS1256_definitions import NEG_AINCOM
    # Input pin for the potentiometer on the Waveshare Precision ADC board
    POTI = POS_AIN0 | NEG_AINCOM
    # Light dependant resistor
    LDR = POS_AIN1 | NEG_AINCOM
    # The other external input screw terminals of the Waveshare board
    EXT2, EXT3, EXT4 = POS_AIN2 | NEG_AINCOM, POS_AIN3 | NEG_AINCOM, POS_AIN4 | NEG_AINCOM
    EXT5, EXT6, EXT7 = POS_AIN5 | NEG_AINCOM, POS_AIN6 | NEG_AINCOM, POS_AIN7 | NEG_AINCOM
    channels = {
        0: POTI,
        1: LDR,
        2: EXT2,
        3: EXT3,
        4: EXT4,
        5: EXT5,
        6: EXT6,
        7: EXT7
    }
    # Generate the channel sequence for enabled channels
    self.CH_SEQUENCE = []
    for channel in self.channels_measurement:
        if self.is_enabled(channel):
            self.CH_SEQUENCE.append(channels[channel])
    self.CH_SEQUENCE = tuple(self.CH_SEQUENCE)
    self.adc_gain = self.input_dev.adc_gain
    self.adc_sample_speed = self.input_dev.adc_sample_speed
    if glob.glob('/dev/spi*'):
        self.sensor = ADS1256()
        # Perform selected calibration
        if self.adc_calibration == 'SELFOCAL':
            self.sensor.cal_self_offset()
        elif self.adc_calibration == 'SELFGCAL':
            self.sensor.cal_self_gain()
        elif self.adc_calibration == 'SELFCAL':
            self.sensor.cal_self()
        elif self.adc_calibration == 'SYSOCAL':
            self.sensor.cal_system_offset()
        elif self.adc_calibration == 'SYSGCAL':
            self.sensor.cal_system_gain()
    else:
        raise Exception(
            "SPI device /dev/spi* not found. Ensure SPI is enabled and the device is recognized/setup by linux.")