03:38 PM camilla.compton /opt/rtcds/userapps/release/sus/h1/guardian: svn diff Index: RUN_ESD_EXC.py =================================================================== --- RUN_ESD_EXC.py (revision 27861) +++ RUN_ESD_EXC.py (working copy) @@ -83,17 +83,15 @@ return True def check_and_turn_on_bias(): - if ezca['L3_LOCK_INBIAS']==0: - log('bias was off (INBIAS offset = 0), switching on offset to 9.3') - ezca.get_LIGOFilter('L3_LOCK_BIAS').ramp_gain(0, ramp_time=2, wait=True) - ezca.get_LIGOFilter('L3_LOCK_BIAS').switch_on('OFFSET', wait=False) - ezca['L3_LOCK_BIAS_OFFSET' ] = 9.3 - ezca.get_LIGOFilter('L3_LOCK_BIAS').ramp_gain(1, ramp_time=20, wait=True) - elif ezca['L3_LOCK_BIAS_OFFSET' ] != 0: - log('Bias offset is not zero, turn it off so all measurements are the same.') - ezca.get_LIGOFilter('L3_LOCK_BIAS').ramp_gain(0, ramp_time=2, wait=True) - ezca['L3_LOCK_BIAS_OFFSET' ] = 0.0 - ezca.get_LIGOFilter('L3_LOCK_BIAS').ramp_gain(1, ramp_time=20, wait=True) + if ezca['L3_LOCK_INBIAS']!=9.3 or ezca['L3_LOCK_BIAS_OFFSET' ] != 0: + log('Bias and/or offset not nominal for measurments. Setting to all be the same.') + ezca.get_LIGOFilter('L3_LOCK_BIAS').ramp_gain(0, ramp_time=20, wait=True) + if ezca['L3_LOCK_INBIAS']!=9.3: + ezca.get_LIGOFilter('L3_LOCK_BIAS').switch_on('OFFSET', wait=False) + ezca['L3_LOCK_BIAS_OFFSET' ] = 9.3 + if ezca['L3_LOCK_BIAS_OFFSET' ] != 0: + ezca['L3_LOCK_BIAS_OFFSET' ] = 0.0 + ezca.get_LIGOFilter('L3_LOCK_BIAS').ramp_gain(1, ramp_time=20, wait=True) if ezca['L3_LOCK_BIAS_GAIN']==0: log('bias was off (gain = 0), switching it on') ezca.get_LIGOFilter('L3_LOCK_BIAS' ).ramp_gain(1, ramp_time=20, wait=True) def check_and_turn_on_bias(): if ezca['L3_LOCK_INBIAS']!=9.3 or ezca['L3_LOCK_BIAS_OFFSET' ] != 0: log('Bias and/or offset not nominal for measurments. Setting to all be the same.') ezca.get_LIGOFilter('L3_LOCK_BIAS').ramp_gain(0, ramp_time=20, wait=True) if ezca['L3_LOCK_INBIAS']!=9.3: ezca.get_LIGOFilter('L3_LOCK_BIAS').switch_on('OFFSET', wait=False) ezca['L3_LOCK_BIAS_OFFSET' ] = 9.3 if ezca['L3_LOCK_BIAS_OFFSET' ] != 0: ezca['L3_LOCK_BIAS_OFFSET' ] = 0.0 ezca.get_LIGOFilter('L3_LOCK_BIAS').ramp_gain(1, ramp_time=20, wait=True) if ezca['L3_LOCK_BIAS_GAIN']==0: log('bias was off (gain = 0), switching it on') ezca.get_LIGOFilter('L3_LOCK_BIAS' ).ramp_gain(1, ramp_time=20, wait=True) log('bias switching on')