def METHOD_NAME(self, ins_name):
    '''
    Sets all parameters of the instrument ins_name to the values used in the measurements.
    '''
    try:
        ins = qkit.instruments.get(ins_name)
        params_dict = self.instruments['instruments'][ins_name]
    except AttributeError or NameError:
            logging.error('Relevant instruments and attributes not properly specified. '+str(ins_name))
    else:
        '''
        Use only parameters with setter and update the instrument
        '''
        for param in params_dict.keys():
            if params_dict[param]['has_setter']: ins.set(params_dict[param], params_dict[param]['content'])