Skip to content
Snippets Groups Projects
Commit 506f8031 authored by Charlotte Bond's avatar Charlotte Bond
Browse files

correction to allow negative mirror tuning

parent 28a974d6
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,11 @@ function [beam] = FT_finesse_beam_detection(FT,katname,nodename,mirrorname,phi0,
outbl(nb+1) = FT_add_line_to_block(outbl(nb+1),sprintf('beam beam0 0 %s',nodename));
% Tune given mirror
if phi0>0
outbl(nb+1) = FT_add_line_to_block(outbl(nb+1),sprintf('func tuning = %16.8f',phi0));
else
outbl(nb+1) = FT_add_line_to_block(outbl(nb+1),sprintf('func tuning = 0 - %16.8f',abs(phi0)));
end
outbl(nb+1) = FT_add_line_to_block(outbl(nb+1),sprintf('put %s phi $tuning',mirrorname));
% Add lines defining x and y axis
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment