def METHOD_NAME(self):
    config = {}
    try:
        key = 'daq_mem'
        config[key] = int(self.daq_mem.data())
        if config[key] < 0:
            raise ValueError
        key = 'pre_trig'
        config[key] = int(self.pre_trig.data())
        if config[key] < 0:
            raise ValueError
        key = 'post_trig'
        config[key] = int(self.post_trig.data())
        if config[key] < 0:
            raise ValueError
        key = 'trig_edge'
        config[key] = str(self.trig_edge.data()).upper()
        if config[key] != 'RISING' and config[key] != 'FALLING':
            raise ValueError
        key = 'clock_edge'
        config[key] = str(self.clock_edge.data()).upper()
        if config[key] != 'RISING' and config[key] != 'FALLING':
            raise ValueError
        key = 'clock_div'
        config[key] = int(self.clock_div.data())
        if config[key] < 1:
            raise ValueError
        key = 'trig_src'
        config[key] = self.trig_src.record.getOriginalPartName().getString()[
            1:]
        key = 'clock_src'
        config[key] = self.clock_src.record.getOriginalPartName().getString()[
            1:]
        key = 'clock_freq'
        config[key] = float(self.clock_freq.data())
        if config[key] < 40:
            raise ValueError
        key = 'active_chan'
        config[key] = int(self.active_chan.data())
    except:
        raise MDSplus.mdsExceptions.DevINV_SETUP(
            'config "%s" is missing or invalid' % key)
    return config