areaDetector ADEdtPdv driver

June 3, 2015

Bruce Hill

SLAC National Accelerator Laboratory

Contents

Overview

This is an EPICS areaDetector driver for CamLink cameras using EDT framegrabbers. The driver is supported under Linux using EDT’s pdv vendor library.

This driver inherits from ADDriver. It implements nearly all of the parameters in asynNDArrayDriver.h and in ADArrayDriver.h. It also implements a number of parameters that are specific to EDT framegrabbers. Camera model specific features are supported via serial communication over camlink using streamdevice and protocol files. The edtPdvCamera class documentation describes this class in detail.

Implementation of standard driver parameters

The driver redefines the choices for several of the parameters defined in ADDriver.h. The ADTriggerMode choices for ADEdtPdv are:


ADEdtPdv supports hardware timing input and output signals that are supported in the driver.

The NDDataType choices for ADEdtPdv are:

Regarding color cameras, the EDT Pdv library supports them, but ADEdtPdv has not been tested w/ any color cameras yet.

The NDColorMode choices for ADEdtPdv are:

ADEdtPdv specific parameters

The ADEdtPdv driver implements the following parameters in addition to those in asynNDArrayDriver.h and ADDriver.h:

Parameter Definitions in edtPdvCamera.cpp and EPICS Record Definitions in edtPdvBase.template

Parameter index variable

asyn interface

Access

Description

drvInfo string

EPICS record name

EPICS record type

Informational Parameters

EdtClass

asynParamOctet

r

For information only. Typically the manufacturer name.

EDT_CLASS

$(P)$(R)EdtClass

stringin

EdtDrvVersion

asynParamOctet

r

EDT Driver version level

EDT_DRV_VERSION

$(P)$(R)EdtDrvVersion

stringin

EdtLibVersion

asynParamOctet

r

EDT library version

EDT_LIB_VERSION

$(P)$(R)EdtLibVersion

stringin

EdtHTaps

asynInt32

r

The number of camLink horizontal taps

EDT_HTAPS

$(P)$(R)EdtHTaps

longin

EdtVTaps

asynInt32

r

The number of camLink vertical taps

EDT_VTAPS

$(P)$(R)EdtVTaps

longin

EdtOverrun

asynInt32

r

Zero when OK, one when EDT camLink connection detects overruns

EDT_OVERRUN

$(P)$(R)EdtOverrun

mbbi

Trigger and I/O Control Parameters

EdtTrigLevel

asynInt32

r/w

The trigger mode the camera trigger signal when not in free run. Allowed values are:
Edge
Level
Sync

EDT_TRIG_LEVEL

$(P)$(R)EdtTrigLevel

mbbo

Configuration

The ADEdtPdv driver is created with the edtPdvConfig command, either from C/C++ or from the EPICS IOC shell.

int edtPdvConfig( char *cameraName,
                  int unit, int channel,
                  const char * modelName,
                  const char * edtMode )
  

The cameraPort string is the asyn port name for this camera.

The unit number refers to the EDT framegrabber number, starting w/ 0 for the first card.

The channel number specifies which EDT channel, 0 or 1.

The modelName is the common prefix used to identify this camera model for env files, protocol files, db and template files, and edm screens.

The edtMode is either "base" or "full", depending on the camLink mode.

Connection management

The ADEdtPdv driver implements connection management. Cameras do not need to be accessible when the IOC starts up, and can be power-cycled or disconnected and reconnected via fiber camLink extenders without restarting the IOC. Disconnecting copper camLink cables with the camera powered up is not recommended.