esrf

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

THC.MAC
See other macros in category: All
Description:
    Macros to read and display thermocouples
Documentation:
    DESCRIPTION
    This macro set is mainly used to do calorimet. measurements (temperature against time) or simply display the temperatures of some beamline elements in a window.

    EXAMPLE
    thcsetup "ID11/thermo/1" 1 2 4
    The thermocouples 1, 2, and 4 will be used on device ID11/thermo/1
    thcread 20 .5 mono_calor
    For 20 seconds the temperature on all configured thermocouples (1, 2, and 4) will be read every 2 seconds (0.5 times per second). The results will be plotted and appended to a file named mono_calor.
    thcdsetup_first "ID11/thermo/1" "ID11/thermo/2"
    The thermocouple display will be used for two devices named "ID11/thermo/1" and "ID11/thermo/2".
    thcdsetup_one 0 3 "Primary slit blades"
    Thermocouple 3 on device "ID11/thermo/1" will be displayed first with "Primary slit blades" as a comment.
    thcdsetup_one 1 2 "Primary slit blades"
    Thermocouple 2 on device "ID11/thermo/2" will be displayed next with "Secondary slit blades" as a comment.
    thcdsetup_last
    The setup for the thermocouple display is done
    thcd
    Now display our values and refresh the screen every 3 seconds.


    ATTENTION
    • The display will be sorted by device. The individual order will be taken from the input order of thcdsetup_one.
    • Each device will be read via multiple triggered read.


    DEPENDENCIES
    The file thc.mac has to be read in !done by: startup script

Macros:
    thcread
    Usage: thcread [n-time] [x-updates per second] [filename]
    This macros reads the thermocoupler x times per second for n seconds, do a plot on the screen and writes the data to the file [filename] (The spec timer is used as a timebase. If the software realizes that the time is always 0 (failure of the timer hardware or wrong setup) it will try to get the time from the unix workstation)

    thcsetup
    Usage: thcsetup [device] [channel1] [channel2] ..
    Use this macro to tell spec which thermocouplers ou want to read. Just type thcsetup and you will be asked some questions

    thcd
    Usage: thcd
    display the values on the screen

    thcdsetup_last
    Usage: thcdsetup_last
    setup is finished

    thcdsetup_first
    Usage: thcdsetup_first <device> <device>
    set the devices for the thermo couple device server

    thcdsetup_one
    Usage: thcdsetup_one <device_no> <channel> <text>


Internal Macros:
    sim_thcgettemp
    Usage: sim_thcgettemp


    org_thcgettemp
    Usage: org_thcgettemp


    _thcgettemp
    Usage: _thcgettemp


    _thchead
    Usage: _thchead


    _thcprinttemp
    Usage: _thcprinttemp


    _thcread
    Usage: _thcread


    _thcrplot
    Usage: _thcrplot


    _thcsplot
    Usage: _thcsplot


    _thctail
    Usage: _thctail


    _thcwait
    Usage: _thcwait


Filename: thc.mac
Author: THC.MAC JK 1.93
Last mod.: 08/08/2002 14:37 by berruyer