esrf

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

K2001.MAC
See other macros in category: Detection Multimeter Obsolete
Description:
    Use the keithley 2001 multimeter as a pseudo-counter (Obsolete: use multim.mac instead)
Documentation:
    DESCRIPTION
    The keithley 2001 multimeter can be used as a counter . Each time you ask spec to count it will look for counters with a name k_<keithley_number>_<channel_number> for multiplexed use or k_<keithley_number> without multiplexing and read it once. The keithley will be programmed to automatic scaling.

    EXAMPLE
    counter k_1_1 and k_1_2 have been configured with spec configuration editor.
    k2001setup 10 1 1 2
    You set up two multiplexed entries on one keithley on gpib address 10
    ct 2
    The actual values in the multimeter will be read on multiplexed entry 1 and 2 and put into the counters k_1_1 and k_1_2. The 2 will not have any meaning if you did not configure another counter. The keithley will be read only once.
    ascan m1 0 10 1 1
    The motor m1 will be scanned and the to entries will be read at each point.


    ATTENTION
    The k2001 offers many possiblities and is therefore very difficult to program. There are other version of this files. If you would like to read the internal buffer of the K2001, you have to configure the K2001 as a MCA in Spec.

    DEPENDENCIES
    The file k2001.mac has to be read in !done by: startup script (this file needs: cpseudo.mac hook.mac stchanges.mac)

Macros:
    k2001setup
    Usage: k2001setup [first_gpib_channel] [number_of_keithleys] [channel_k1 ....]
    define the keithley as a pseudo counter

Internal Macros:
    k2001on
    Usage: k2001on


    k2001body
    Usage: k2001body(mode)


    k2001off
    Usage: k2001off


    k2001_init
    Usage: k2001_init


    k2001_open
    Usage: k2001_open


    k2001_close
    Usage: k2001_close


    _k2001_getcounts
    Usage: _k2001_getcounts


    k2001_getcounts
    Usage: k2001_getcounts


    k2001_postcount
    Usage: k2001_postcount


    k2001_precount
    Usage: k2001_precount


Filename: k2001.mac
Author: JK/SL 11.93
Last mod.: 17/07/2008 16:43 by papillon