Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
KB_FOCUS.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: | ||||||
Description:
| ||||||
Documentation:
KB_FOCUS is a set of macros designed to focus a kb mirror. Two iteratives methdos of focusing are provided : parabolic fitting and interaction matrix. The principle is to change the bending of the mirror and to control the gain in terme of focusing. The quality of focusing is depicted by a minimal movement of the beam (bpm counters) during a scan (rel_start rel_end) of slits. Once a correction has been done, we try to evaluate the next correction to apply considering the previous one and the gain. %DEPENDANCIES% spec_utils.mac hg.mac EXAMPLE kbf_focus <bender_inc> <"horiz"|"vert"> <"asym"|"sym"|"both"|"intm"> <rel_start> <rel_end> <nb_pts> <counting_time> <bender_inc> : Bender motors increment. <"horiz"|"vert"> : Horizontal or vertical focalization. <"asym"|"sym"|"both"|"intm"> : Focalization mode. <rel_start> : Relative start of the SLITS scans. (V and H) <rel_end> : Relative end of the SLIT scans. (V and H) <nb_pts> : Number of points of scans. <counting_time> : Counting time per point time (must be bigger than exposure time for the bpm counters). 3 setup commands are needed: | ||||||
Macros:
Usage: kbf_setup <sleep_time> -Waits <sleep_time> seconds after a movement for stabilization of the KB. kbf_setup_slits_positions Usage: kbf_setup_slits_positions <horiz_gap_open> <horiz_gap_closed> <vert_gap_open> <vert_gap_closed> <horiz_offset_max> <vert_offset_max> Defines the values to use by safety macros to prevent a scan with bad slit gap or offset. Using theses values, the scan macro will propose to reduce or increase the gap/offset before doing the scans. kbf_setup_motors Usage: kbf_setup_motors <horiz_ct> <vert_ct> <horgap> <vergap> <horoff> <voff> <hor1> <hor2> <ver1> <ver2> Defines counters and motors mnemonnics to use for focusing. Checks if motors are well defined. kbf_setup_motor_type Usage: kbf_setup_motor_type <motor type> Allow to define <motor type> : pico | <NONE> kbf_unsetup Usage: kbf_unsetup Remove KFFocusing globals. kbf_info Usage: kbf_info Display some info about kbf coinfiguration kbf_check_motor Usage: kbf_check_motor (<motmne>) kbf_check_counter Usage: kbf_check_counter (<cntmne>) kbf_check_h_slits Usage: kbf_check_h_slits () Checks needed for an HORIZONTAL scan. kbf_check_v_slits Usage: kbf_check_v_slits [] Checks needed for a VERTICAL scan. kbf_parabola Usage: kbf_parabola (cnt_number) Fits data of counter cnt_number with a parabola. Displays the fitted parabla. Results are put in KBF_FIT_PARAM kbf_spec_fit Usage: kbf_spec_fit [] kbf_intm_fit Usage: kbf_intm_fit [] Fit function for interaction matrix mode. ( for ABA method 5 ?) ??? kbf_plotParabola Usage: kbf_plotParabola [] Plots the parabola resulting of fitting. pico_mvr Usage: pico_mvr <parma> pico_mv Usage: pico_mv <parma> kbf_disp_stat Usage: kbf_disp_stat (<counter_num>) Display statistics about previous scan. Raw data and fitted data. kbf_focus Usage: kbf_focus [] kbf_parab Usage: kbf_parab [] | ||||||
Internal Macros: | ||||||
Usage: kbf_disp_history kbf_fformat Usage: kbf_fformat(val) kbf_test_stat_display Usage: kbf_test_stat_display _kbf_usage Usage: _kbf_usage () _kbf_cleanup Usage: _kbf_cleanup kbf_print Usage: kbf_print (<title>, <message>) Prints title in bold and message in regular font. | ||||||
|