% set_Q_value
% 27 August 2007

% Main Functions

%    get_Q_value -           calculates and outputs the Q value and decay 
%                            constant for a suspended optic.
%
%    Set_Q_value -           sets the Q value of the mode cleaner 
%                            optics to a specified value.

% Subfunctions

%    do_cmd -                will repeat ezca or tds commands in the case of a 
%                            segmentation fault.       
%
%    freq0 -                 outputs the resonant frequency for any degree of
%                            freedom for any of the mode cleaner optic.
%
%    fit3 -                  fits a ringdown curve
%
%    timer_set_Q1 -          turn off the lock, apply the
%                            offset to the mirror, wait  30 s and then start
%                            the function data_collect_set_Q1.
%
%    data_collect_set_Q1 -   called by fun_SetDegQ1 in order to get data, 
%                            create time vector and turn off the offset that 
%                            was used to kick the mirror.
%
% Change settings for the suspended optics for different 
% measurements.

%    Set_Screen -             Turns on all of the LSC, ASCPIT and ASCYAW
%                             inputs and outputs and off all filters and
%                             limits for the mode cleaner optics and sets the 
%                             offsets to 1000.          
%
%    Restore_MCSettings -     Restores the settings of the mode cleaner optics 
%                             that were changed when the script Set_Screen
%                             was run.
%
%    Restore_Optic_Settings - Restores some of the settings of all the optics.



