EPICS: VME Lecroy TDC Support

This page is the home of the EPICS device support for VME Lecroy Time-To-Digital Converter (TDC) Module. This site gives access to the software source code, information on other modules which are needed to install and run it, and documentation on how to include and use it in your EPICS applications. Please email any comments and bug reports to Kristi Luchini who is responsible for coordinating development and releases.

Hardware Supported

The software can drive the following types of hardware:

Where to Find it

You can download the software by anonymous ftp  from the links in the table below:
 
 
Module Version EPICS Release Filename Documentation Release Notes Known Bugs
R0
R3.13.2
lecroy.tar.gz
See Below
None
None

Installation and Building

After obtaining a copy of the distribution, it must be installed and built for use at your site. These steps only need to be performed once for the site (unless versions of the module running under different releases of EPICS and/or the other required modules are needed).
  1. Start with an existing EPICS application area and cd to the src directory.
  2. Unpacking the distribution tar file produces a <lecroy> directory.
  3. If you do not have the vmeCardRecord available to your application, comment out references to "devL1176Card" in src/Makefile.Vx.
  4. Add lecroy to your src/Makefile and run gnumake. Check for any compilation errors.
  5. When using the lecroy in your application, you'll want to include devL1176.dbd and devL1176Card.dbd, if you have the vmeCardRecord, along with the normal base dbd files when building your application's database definition file (lecroy/src/tdcInclude.dbd provides an example). You'll also want to include L1176Lib when building your application's library (ie, include it in your Makefile.Vx).
  6. During IOC boot, an initialization function (L1176_init) must be called before iocInit() for each TDC module to set the card number, base address, and mode. The card number is related to the epics database channel specified for this module. The proper mode for the TDC can be determined from the Lecroy manual control register definition.

    An example of a L1176_init call is provided in lecroy/cmd/tdcInit.cmd. It sets the following mode:

    Common Start
    Record Rising Edge Registration
    common start timeout 0.5us
    trigger mode - latch the first hit

  7. Example databases and templates reside in lecroy/db. See lecroy/cmd/db.cmd for example database load commands during IOC boot.
  8. Example DM displays reside in lecroy/dl.
  9. Please email  Kristi Luchini  so she can keep track of which sites are using this software.

Documentation

In Use

This software was originally developed by Carl Lionberger (LBL) and was upgraded to work without module_types.h by Kristi Luchini (SLAC). It is used at the following EPICS sites:
Kristi Luchini