esrf

Beamline Instrument Software Support
SPEC Macro documentation: [ Macro Index | BCU Home ]

HEAT.MAC
See other macros in category: All
Description:
    %B%heat.mac%B% - macros to compensate the crystal temperature due to the decrease of the machine current.
Documentation:
    DESCRIPTION
    The macro reads the machine current and changes the horizontal gap of the primary slits so the heat on the crystal is constant

    SETUP
    motorsused - pf (front blade), pb (back blade) of the primary slits
    pseudomotor - phg (horizontal gap)
    machinecurrent - read from the "machine" - sys/machstat

    DEPENDENCIES
    ring_current.mac


Macros:
    heat_setup
    Usage: heat_setup [sleep_time motor_to_move [thc_device thc_channel]]
    setup the compensation loop: set sleep_time betweeen the compensation and the motor_to_move to compensate the temperature of the monochromator crystal due to the decrease of the machine current. If desired, set the reading the monochromator crystal temperature - read the thc_channel of the thc_device. Finaly read the initial horizontal gap and machine current.

    heat_loop
    Usage: heat_loop
    Start the compensation procedure.
    Attention!! - this is an infinite loop. Use ^C to stop it

Internal Macros:
    _heat_first_read
    Usage: _heat_first_read()
    reads the machine current ("sys/mach/current") and the gap (phg) at the begining of the compensation loop

Filename: heat.mac
Author: A.Beteva/BLISS
$Revision: 1.5 $, $Date: 2012/03/21 16:30:23 $
Last mod.: 21/03/2012 17:37 by beteva