def get_AP_parameters(exp):
    """
     This function is connect with'Advanced Parameter' button.

     Parameters
     ------
     exp: the Ui_Experiment object

     Return
     ------
     AP_parameters: list contains all the advanced parameters

     """
    conv_fact = float(exp.experiment_conversion_factor.text())
    set_gain = float(exp.experiment_setpoint_gain.text())
    set_offset = float(exp.experiment_setpoint_offset.text())
    sr = float(exp.experiment_shunt_resistor.text())
    ts = float(exp.experiment_time_step.text())
    avg_num = int(exp.experiment_averag_number.text())
    AP_parameters = [conv_fact, set_gain, set_offset, sr, ts,avg_num]
    return AP_parameters