pList{ele}.helptext='Attenuate your sweep by this value in dB Full Scale. Compensation will follow, we will take care of this.';
pList{ele}.datatype='char';
pList{ele}.default=MS.outputamplification;
argList=[argList{'outputamplification'}];
ele=numel(pList)+1;
pList{ele}.description='Comment';
pList{ele}.helptext='Give your child a name';
pList{ele}.datatype='char_long';
pList{ele}.default=MS.comment;
argList=[argList{'comment'}];
ele=numel(pList)+1;
pList{ele}.datatype='line';
ele=numel(pList)+1;
pList{ele}.datatype='text';
pList{ele}.description='Advanced settings';
pList{ele}.color='red';
ele=numel(pList)+1;
pList{ele}.description='Pause before measurements';
pList{ele}.helptext='Time in seconds the routine waits before each measurement';
pList{ele}.datatype='int';
pList{ele}.default=MS.pause;
argList=[argList{'pause'}];
ele=numel(pList)+1;
pList{ele}.description='Number of Averages';
pList{ele}.helptext='How many measurements should be averaged for the final results?';
pList{ele}.datatype='int';
pList{ele}.default=MS.averages;
argList=[argList{'averages'}];
ele=numel(pList)+1;
pList{ele}.description='Linear Deconvolution';
pList{ele}.helptext='Standard is cyclic deconvolution. To seperate distortion from the noise tail use linear deconvolution. Signal length is therefore doubled.';
pList{ele}.datatype='bool';
pList{ele}.default=MS.lineardeconvolution;
argList=[argList{'lineardeconvolution'}];
ele=numel(pList)+1;
pList{ele}.description='Output Equalization';
pList{ele}.helptext='Do a broadband output equalization (only with calibrated output measurement chain)';
pList{ele}.datatype='bool';
pList{ele}.default=MS.outputEqualization;
argList=[argList{'outputEqualization'}];
ele=numel(pList)+1;
pList{ele}.description='Measurement Chain';
pList{ele}.helptext='Whether to use the measurement chain functionality (calibration)';
pList{ele}.datatype='bool';
pList{ele}.default=MS.useMeasurementChain;
argList=[argList{'useMeasurementChain'}];
ele=numel(pList)+1;
pList{ele}.datatype='line';
%call gui
pList=ita_parametric_GUI(pList,[mfilename' - Modify an itaMSTF']);
pause(0.02);%wait for GUI to close first
% Check output amplifiction
ifisempty(pList)%user cancelled
varargout{1}=[];
return;
end
%% settings to MSTF
%reorder first, useMeasurementChain does not work otherwise