diff --git a/documentation/adscDoc.html b/documentation/adscDoc.html index 3ba5cbb..c5b3656 100644 --- a/documentation/adscDoc.html +++ b/documentation/adscDoc.html @@ -7,8 +7,14 @@ +

areaDetector ADSC driver

+

September 5, 2008

+

Lewis Muir

+

University of Chicago

+
+

Table of Contents

  1. Introduction
  2. diff --git a/documentation/areaDetectorDoc.html b/documentation/areaDetectorDoc.html index 390487e..7c19acb 100755 --- a/documentation/areaDetectorDoc.html +++ b/documentation/areaDetectorDoc.html @@ -21,7 +21,8 @@ Overview
  3. Architecture -
  4. Implementation details +
  5. + Implementation details -
  6. +
  7. Plugins -
  8. Detector drivers +
  9. + Detector drivers @@ -168,14 +170,23 @@ Most of the code is object oriented, and written in C++. The parts of the code on anything from EPICS except libCom and asyn have been kept in in separate C files, so that it should be easy to build applications that do not run as part of an EPICS IOC. + +

    +

    + Implementation details

    +The areaDetector module depends heavily on +asyn. +It is the software that is used for interthread communication, +using the standard asyn interfaces (e.g. asynInt32, asynOctet, etc.), and callbacks. +In order to minimize the amount of redundant code in drivers, areaDetector has been +implemented using C++ classes. The base classes, from which drivers and plugins are derived, +take care of many of the details of asyn and other common code. +

     

    asynPortDriver

    -The areaDetector module depends heavily on -asyn. -It is the software that is used for interthread communication, -using the standard asyn interfaces (e.g. asynInt32, asynOctet, etc.), and callbacks. Detector drivers and plugins +Detector drivers and plugins are asyn port drivers, meaning that they implement one or more of the standard asyn interfaces. They register themselves as interrupt sources, so that they do callbacks to registered asyn clients when values change. asynPortDriver is a base C++ class that handles all of the details of registering the port driver, @@ -1211,6 +1222,12 @@ for the features implemented for that detector. Note that the section of the sc implemented for any areaDetector driver, and is subject to change in the near future.

    +

    +

    + Detector drivers

    +areaDetector has been designed to minimize the amount of work required to write a new detector driver. These +drivers are described in separate documents, linked to by the table of contents at the top of this page. +

    diff --git a/documentation/simDetectorDoc.html b/documentation/simDetectorDoc.html index 7badd29..2ce20d7 100755 --- a/documentation/simDetectorDoc.html +++ b/documentation/simDetectorDoc.html @@ -4,33 +4,29 @@ -

    -

    areaDetector Simulation driver

    +

    areaDetector Simulation driver

    September 5, 2008

    Mark Rivers

    University of Chicago

    -

     

    -

    Contents

    - +

    Table of Contents

    + -

    - Simulation detector driver

    +

    Introduction

    simDetector is a driver for a simulated area detector. It inherits from ADDriver. The simulation detector implements -nearly all of the parameters defined in ADStdDriverParams.h, with the exception of the file saving parameters, which is does not +nearly all of the parameters defined in ADStdDriverParams.h, with the exception of the file saving parameters, +which it does not implement. It also implements a few parameters that are specific to the simulation detector. The simulation detector is useful as a model for writing real detector drivers. It is also very useful for testing plugins and channel access clients. @@ -77,6 +73,7 @@ computes new images and then calls back any registered plugins as follows: doCallbacksGenericPointer(pImage, NDArrayData, addr); epicsMutexLock(this->mutexId); +

    Simulation driver specific parameters

    The simulation driver-specific parameters are the following:

    @@ -123,19 +120,80 @@ The simulation driver-specific parameters are the following:

    +

    Unsupported standard driver parameters

    + + + + +

    Screenshots

    The following is the MEDM screen ADBase.adl connected to a simulation detector.

    -

    +

    The following is the MEDM screen that provides access to the specific parameters for the simulation detector.

    -

    +

    The following is an IDL epics_ad_display screen using image_display (discussed below) illustrating the simulation detector images.

    -

    + +

    Configuring

    + +

    +This driver is configured via the simDetectorConfig() function. If this is +to be used in an IOC, it must be called before iocInit(). It has the +following syntax: +

    + +
    +
    int simDetectorConfig(const char *portName, int maxSizeX, int maxSizeY, int dataType, + int maxBuffers, size_t maxMemory)
    +
    +
    +
    portName
    +
    ASYN port name for the driver instance
    +
    maxSizeX
    +
    Maximum number of pixels in the X direction for the simulated detector
    +
    maxSizeY
    +
    Maximum number of pixels in the Y direction for the simulated detector
    +
    dataType
    +
    Initial data type of the detector data. These are the enum values for NDDataType_t, i.e. +
      +
    • 0=NDInt8 +
    • 1=NDUInt8 +
    • 2=NDInt16 +
    • 3=NDUInt16 +
    • 4=NDInt32 +
    • 5=NDUInt32 +
    • 6=NDFloat32 +
    • 7=NDFloat64 +
    +
    maxBuffers
    +
    Maxiumum number of NDArray objects (image buffers) this driver is allowed to allocate. + The driver itself requires 2 buffers, and each queue element in a plugin can require one buffer. + So, for example, if 3 plugins are connected + to this driver, and each has a queue size of 10, then maxBuffers should be at least 32.
    +
    maxMemory
    +
    Maxiumum number of bytes of memory for all NDArray objects (image buffers) allocated by this driver. + If maxSizeX=maxSizeY=1024, and maxBuffers=32, then maxMemory should be at least 33554432 (~33MB).
    +
    +
    +
    + +

    +If being used in an IOC, and an EPICS PV interface with the driver is desired, +the ADBase.template and simDetector.template databases should also +be loaded for the driver instance. +

    +The areaDetector software comes with an example IOC for the simulation driver, iocBoot/iocSimDetector. +