esrf

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

ASL.MAC
See other macros in category: Temperature
Description:
    Temperature scans with the Alpha Sigma Lambda temperature controller
Documentation:
    DESCRIPTION
    This scan measures photon-counts rate as a function of the difference in temperature between two crystals. One thing is to perform a linear temperature ramp as a function of time, while continuously counting, between start and end temperature values. Counts and temperature are continuously read. The temperature difference between the two crystals is directly read from the ASL bridge. The photon count per second rate is calculated all along the scan as delta-counts/delta-time between each calculation points. To obtain maximal linearity, the setpoint is set to a new value some time before we actually reach the setpoint. The calculated photon per second rate as a function of temperature difference between both crystals is plotted, as well as the temperature difference between crystals as a function of time allowing user to check the ramp linearity.

    EXAMPLE
    aslscan 2 10 8
    We will do a scan starting at a difference in temperature of 2, ending at 10, in 8 steps, i.e. defining temperature increments of 1 degree. Assuming that setpoint reset ratio is 50% (according to 3rd aslsetup request), the first setpoint is set to 2-1*50/100=1.5 (start-increment*ratio). The software waits until this is reached before starting the scan itself. Then the counter is started. The first setpoint in the scan is 2.5 (setpoint+increment). When temperature go through the value 2 (setpoint-increment*ratio), the setpoint is changed to be 3 (setpoint=setpoint+increment*ratio).
    The photon per second rate is calculated at this point. Then, when temperature go through the value 2.5 (setpoint-increment*ratio), the setpoint becomes 3.5 and so on ...


    ATTENTION
    The controller is in deviation mode during the scan to allow setpoint control.#Ending the scan means that you turn it back to direct mode. No more feedback control is done and the direct temperature of one of the two crystals is read.

    DEPENDENCIES
    The file asl.mac has to b read in

Macros:
    aslscan
    Usage: aslscan <start_temp> <final_temp> <steps_number>
    This is the macro that manages the temperature scan . The arguments give the increment value (final_temp> - <start_temp>) / <steps_number>

    aslsetup
    Usage: aslsetup
    Has to be called first to prepare the scan . It will ask a few questions :
    • 1 - Setpoint stabilisation band in degree,
    • 2 - Setpoint stabilisation time in sec,
      both to determine if the setpoint is reached or not,
    • 3 - Setpoint ratio to reset in %,
    • 4 - Lower limit for temperature,
    • 5 - Upper limit for temperature,
    • 6 - Temp. controller GPIB address,
    • 7 - Initial Bridge Current 0..3 (0=0.1, 1=0.3, 2=1.0 3=3.0),
    • 8 - Initial Sensitivity 0..2 (0=LOW, 1=MED, 2=HIGH).


    aslreadte
    Usage: aslreadte
    Simply read and print the temperature.

    aslpid
    Usage: aslpid <setpoint>
    This macro is there to help users in tuning the P I D terms of the controller.
    The setpoint is send to the controller, the timer is started and then the temperature as a function of time is plotted, showing the system response to a setpoint increment.

Internal Macros:
    asl_calc_ph_sec
    Usage: asl_calc_ph_sec


    asl_gpibputc
    Usage: asl_gpibputc


    asl_gpibputv
    Usage: asl_gpibputv


    asl_gpibget
    Usage: asl_gpibget


    asl_end_scan
    Usage: asl_end_scan


    asl_splot
    Usage: asl_splot


    asl_read_temp
    Usage: asl_read_temp


    asl_rplot
    Usage: asl_rplot


    asl_setpoint
    Usage: asl_setpoint


    asl_splot1
    Usage: asl_splot1


    asl_wait
    Usage: asl_wait


    asl_tell_temp
    Usage: asl_tell_temp


    asl_rplot0
    Usage: asl_rplot0


    asl_rplot1
    Usage: asl_rplot1


    aslscan_usage
    Usage: aslscan_usage


    aslscan_check_lm
    Usage: aslscan_check_lm


    asl_end_pid
    Usage: asl_end_pid


    asl_pidrplot
    Usage: asl_pidrplot


    asl_pidsplot
    Usage: asl_pidsplot


    asl_wait_pid
    Usage: asl_wait_pid


Filename: asl.mac
Author: Jorg KLORA, Marie-Claire LAGIER - 01.12.93
Last mod.: 25/06/2007 17:22 by rey