areaDetector  3-13
EPICS areaDetector framework
Public Member Functions | Protected Attributes | List of all members
Dexela Class Reference

Driver for the Perkin Elmer Dexela CMOS flat panel detectors. More...

#include <Dexela.h>

Inheritance diagram for Dexela:
ADDriver asynNDArrayDriver

Public Member Functions

 Dexela (const char *portName, int detIndex, int maxBuffers, size_t maxMemory, int priority, int stackSize)
 Constructor for Dexela driver; most parameters are simply passed to ADDriver::ADDriver. More...
 
virtual asynStatus writeInt32 (asynUser *pasynUser, epicsInt32 value)
 Called when asyn clients call pasynInt32->write(). More...
 
virtual asynStatus writeFloat64 (asynUser *pasynUser, epicsFloat64 value)
 Called when asyn clients call pasynFloat64->write(). More...
 
virtual asynStatus readEnum (asynUser *pasynUser, char *strings[], int values[], int severities[], size_t nElements, size_t *nIn)
 Called when asyn clients call pasynEnum->read(). More...
 
void report (FILE *fp, int details)
 Report status of the driver. More...
 
void acquireStopTask (void)
 
void newFrameCallback (int frameCounter, int bufferNumber)
 
 ~Dexela ()
 Destructor for Dexela driver; most parameters are simply passed to ADDriver::ADDriver. More...
 
- Public Member Functions inherited from ADDriver
 ADDriver (const char *portName, int maxAddr, int numParams, int maxBuffers, size_t maxMemory, int interfaceMask, int interruptMask, int asynFlags, int autoConnect, int priority, int stackSize)
 All of the arguments are simply passed to the constructor for the asynNDArrayDriver base class, except numParams. More...
 
virtual asynStatus connect (asynUser *pasynUser)
 Connects driver to device; This method is called when the driver's pasynCommon->connect() function is called. More...
 
virtual void setShutter (int open)
 Set the shutter position. More...
 
- Public Member Functions inherited from asynNDArrayDriver
 asynNDArrayDriver (const char *portName, int maxAddr, int maxBuffers, size_t maxMemory, int interfaceMask, int interruptMask, int asynFlags, int autoConnect, int priority, int stackSize)
 This is the constructor for the asynNDArrayDriver class. More...
 
virtual ~asynNDArrayDriver ()
 
virtual asynStatus writeOctet (asynUser *pasynUser, const char *value, size_t maxChars, size_t *nActual)
 Called when asyn clients call pasynOctet->write(). More...
 
virtual asynStatus readGenericPointer (asynUser *pasynUser, void *genericPointer)
 This method copies an NDArray object from the asynNDArrayDriver to an NDArray pointer passed in by the caller. More...
 
virtual asynStatus writeGenericPointer (asynUser *pasynUser, void *genericPointer)
 This method currently does nothing, but it should be implemented in this base class. More...
 
virtual asynStatus setIntegerParam (int index, int value)
 Sets the value for an integer in the parameter library. More...
 
virtual asynStatus setIntegerParam (int list, int index, int value)
 Sets the value for an integer in the parameter library. More...
 
virtual asynStatus createFilePath (const char *path, int pathDepth)
 Function to create a directory path for a file. More...
 
virtual asynStatus checkPath ()
 Checks whether the directory specified NDFilePath parameter exists. More...
 
virtual bool checkPath (std::string &filePath)
 Checks whether the directory specified exists. More...
 
virtual asynStatus createFileName (int maxChars, char *fullFileName)
 Build a file name from component parts. More...
 
virtual asynStatus createFileName (int maxChars, char *filePath, char *fileName)
 Build a file name from component parts. More...
 
virtual asynStatus readNDAttributesFile ()
 Create this driver's NDAttributeList (pAttributeList) by reading an XML file This clears any existing attributes from this drivers' NDAttributeList and then creates a new list based on the XML file. More...
 
virtual asynStatus getAttributes (NDAttributeList *pAttributeList)
 Get the current values of attributes from this driver and appends them to an output attribute list. More...
 
virtual void updateTimeStamps (NDArray *pArray)
 
asynStatus incrementQueuedArrayCount ()
 
asynStatus decrementQueuedArrayCount ()
 
int getQueuedArrayCount ()
 
void updateQueuedArrayCount ()
 

Protected Attributes

int DEX_BinningMode
 
int DEX_FullWellMode
 
int DEX_CorrectionsDirectory
 
int DEX_AcquireOffset
 
int DEX_NumOffsetFrames
 
int DEX_CurrentOffsetFrame
 
int DEX_UseOffset
 
int DEX_OffsetAvailable
 
int DEX_OffsetFile
 
int DEX_LoadOffsetFile
 
int DEX_SaveOffsetFile
 
int DEX_OffsetConstant
 
int DEX_AcquireGain
 
int DEX_NumGainFrames
 
int DEX_CurrentGainFrame
 
int DEX_UseGain
 
int DEX_GainAvailable
 
int DEX_GainFile
 
int DEX_LoadGainFile
 
int DEX_SaveGainFile
 
int DEX_UseDefectMap
 
int DEX_DefectMapAvailable
 
int DEX_DefectMapFile
 
int DEX_LoadDefectMapFile
 
int DEX_SoftwareTrigger
 
int DEX_ReadoutMode
 
- Protected Attributes inherited from ADDriver
int ADGain
 
int ADBinX
 
int ADBinY
 
int ADMinX
 
int ADMinY
 
int ADSizeX
 
int ADSizeY
 
int ADMaxSizeX
 
int ADMaxSizeY
 
int ADReverseX
 
int ADReverseY
 
int ADFrameType
 
int ADImageMode
 
int ADNumExposures
 
int ADNumExposuresCounter
 
int ADNumImages
 
int ADNumImagesCounter
 
int ADAcquireTime
 
int ADAcquirePeriod
 
int ADTimeRemaining
 
int ADStatus
 
int ADTriggerMode
 
int ADShutterControl
 
int ADShutterControlEPICS
 
int ADShutterStatus
 
int ADShutterMode
 
int ADShutterOpenDelay
 
int ADShutterCloseDelay
 
int ADTemperature
 
int ADTemperatureActual
 
int ADReadStatus
 
int ADStatusMessage
 
int ADStringToServer
 
int ADStringFromServer
 
bool deviceIsReachable
 
- Protected Attributes inherited from asynNDArrayDriver
int NDPortNameSelf
 
int NDADCoreVersion
 
int NDDriverVersion
 
int ADManufacturer
 
int ADModel
 
int ADSerialNumber
 
int ADSDKVersion
 
int ADFirmwareVersion
 
int ADAcquire
 
int ADAcquireBusy
 
int ADWaitForPlugins
 
int NDArraySizeX
 
int NDArraySizeY
 
int NDArraySizeZ
 
int NDArraySize
 
int NDNDimensions
 
int NDDimensions
 
int NDDataType
 
int NDColorMode
 
int NDUniqueId
 
int NDTimeStamp
 
int NDEpicsTSSec
 
int NDEpicsTSNsec
 
int NDBayerPattern
 
int NDCodec
 
int NDCompressedSize
 
int NDArrayCounter
 
int NDFilePath
 
int NDFilePathExists
 
int NDFileName
 
int NDFileNumber
 
int NDFileTemplate
 
int NDAutoIncrement
 
int NDFullFileName
 
int NDFileFormat
 
int NDAutoSave
 
int NDWriteFile
 
int NDReadFile
 
int NDFileWriteMode
 
int NDFileWriteStatus
 
int NDFileWriteMessage
 
int NDFileNumCapture
 
int NDFileNumCaptured
 
int NDFileFreeCapture
 
int NDFileCapture
 
int NDFileDeleteDriverFile
 
int NDFileLazyOpen
 
int NDFileCreateDir
 
int NDFileTempSuffix
 
int NDAttributesFile
 
int NDAttributesStatus
 
int NDAttributesMacros
 
int NDArrayData
 
int NDArrayCallbacks
 
int NDPoolMaxBuffers
 
int NDPoolAllocBuffers
 
int NDPoolPreAllocBuffers
 
int NDPoolNumPreAllocBuffers
 
int NDPoolFreeBuffers
 
int NDPoolMaxMemory
 
int NDPoolUsedMemory
 
int NDPoolEmptyFreeList
 
int NDPoolPollStats
 
int NDNumQueuedArrays
 
class NDArray ** pArrays
 An array of NDArray pointers used to store data in the driver. More...
 
class NDAttributeListpAttributeList
 An NDAttributeList object used to obtain the current values of a set of attributes. More...
 
int threadStackSize_
 
int threadPriority_
 

Additional Inherited Members

- Public Attributes inherited from asynNDArrayDriver
class NDArrayPoolpNDArrayPool
 An NDArrayPool pointer that is initialized to pNDArrayPoolPvt_ in the constructor. More...
 

Detailed Description

Driver for the Perkin Elmer Dexela CMOS flat panel detectors.

Constructor & Destructor Documentation

◆ Dexela()

Dexela::Dexela ( const char *  portName,
int  detIndex,
int  maxBuffers,
size_t  maxMemory,
int  priority,
int  stackSize 
)

Constructor for Dexela driver; most parameters are simply passed to ADDriver::ADDriver.

After calling the base class constructor this method creates a thread to collect the detector data, and sets reasonable default values the parameters defined in this class, asynNDArrayDriver, and ADDriver.

Parameters
[in]portNameThe name of the asyn port driver to be created.
[in]detIndexThe detector index in system (0=first detector, etc.)
[in]maxBuffersThe maximum number of NDArray buffers that the NDArrayPool for this driver is allowed to allocate. Set this to -1 to allow an unlimited number of buffers.
[in]maxMemoryThe maximum amount of memory that the NDArrayPool for this driver is allowed to allocate. Set this to -1 to allow an unlimited amount of memory.
[in]priorityThe thread priority for the asyn port driver thread if ASYN_CANBLOCK is set in asynFlags.
[in]stackSizeThe stack size for the asyn port driver thread if ASYN_CANBLOCK is set in asynFlags.

◆ ~Dexela()

Dexela::~Dexela ( )

Destructor for Dexela driver; most parameters are simply passed to ADDriver::ADDriver.

Frees all resources and calls Acquisition_Close()

Member Function Documentation

◆ acquireStopTask()

void Dexela::acquireStopTask ( void  )

◆ newFrameCallback()

void Dexela::newFrameCallback ( int  frameCounter,
int  bufferNumber 
)

Correct for detector offset and gain as necessary

Correct for dead pixels as necessary

◆ readEnum()

asynStatus Dexela::readEnum ( asynUser *  pasynUser,
char *  strings[],
int  values[],
int  severities[],
size_t  nElements,
size_t *  nIn 
)
virtual

Called when asyn clients call pasynEnum->read().

Sets the enum values and strings for DEX_BinningMode, DEX_FullWellMode, and ADTriggerMode

Parameters
[in]pasynUserpasynUser structure that encodes the reason and address.
[in]stringsArray of string pointers.
[in]valuesArray of values
[in]severitiesArray of severities
[in]nElementsSize of value array
[out]nInNumber of elements actually returned

◆ report()

void Dexela::report ( FILE *  fp,
int  details 
)
virtual

Report status of the driver.

Prints details about the detector in us if details>0. Prints information about all local and network detectors if details>1. It then calls the ADDriver::report() method.

Parameters
[in]fpFile pointed passed by caller where the output is written to.
[in]detailsControls the level of detail in the report.

Reimplemented from asynNDArrayDriver.

◆ writeFloat64()

asynStatus Dexela::writeFloat64 ( asynUser *  pasynUser,
epicsFloat64  value 
)
virtual

Called when asyn clients call pasynFloat64->write().

This function performs actions for some parameters. For all parameters it sets the value in the parameter library and calls any registered callbacks.

Parameters
[in]pasynUserpasynUser structure that encodes the reason and address.
[in]valueValue to write.

◆ writeInt32()

asynStatus Dexela::writeInt32 ( asynUser *  pasynUser,
epicsInt32  value 
)
virtual

Called when asyn clients call pasynInt32->write().

This function performs actions for some parameters, including ADAcquire, DEX_AcquireOffset, etc. For all parameters it sets the value in the parameter library and calls any registered callbacks..

Parameters
[in]pasynUserpasynUser structure that encodes the reason and address.
[in]valueValue to write.

Reimplemented from ADDriver.

Member Data Documentation

◆ DEX_AcquireGain

int Dexela::DEX_AcquireGain
protected

◆ DEX_AcquireOffset

int Dexela::DEX_AcquireOffset
protected

◆ DEX_BinningMode

int Dexela::DEX_BinningMode
protected

◆ DEX_CorrectionsDirectory

int Dexela::DEX_CorrectionsDirectory
protected

◆ DEX_CurrentGainFrame

int Dexela::DEX_CurrentGainFrame
protected

◆ DEX_CurrentOffsetFrame

int Dexela::DEX_CurrentOffsetFrame
protected

◆ DEX_DefectMapAvailable

int Dexela::DEX_DefectMapAvailable
protected

◆ DEX_DefectMapFile

int Dexela::DEX_DefectMapFile
protected

◆ DEX_FullWellMode

int Dexela::DEX_FullWellMode
protected

◆ DEX_GainAvailable

int Dexela::DEX_GainAvailable
protected

◆ DEX_GainFile

int Dexela::DEX_GainFile
protected

◆ DEX_LoadDefectMapFile

int Dexela::DEX_LoadDefectMapFile
protected

◆ DEX_LoadGainFile

int Dexela::DEX_LoadGainFile
protected

◆ DEX_LoadOffsetFile

int Dexela::DEX_LoadOffsetFile
protected

◆ DEX_NumGainFrames

int Dexela::DEX_NumGainFrames
protected

◆ DEX_NumOffsetFrames

int Dexela::DEX_NumOffsetFrames
protected

◆ DEX_OffsetAvailable

int Dexela::DEX_OffsetAvailable
protected

◆ DEX_OffsetConstant

int Dexela::DEX_OffsetConstant
protected

◆ DEX_OffsetFile

int Dexela::DEX_OffsetFile
protected

◆ DEX_ReadoutMode

int Dexela::DEX_ReadoutMode
protected

◆ DEX_SaveGainFile

int Dexela::DEX_SaveGainFile
protected

◆ DEX_SaveOffsetFile

int Dexela::DEX_SaveOffsetFile
protected

◆ DEX_SoftwareTrigger

int Dexela::DEX_SoftwareTrigger
protected

◆ DEX_UseDefectMap

int Dexela::DEX_UseDefectMap
protected

◆ DEX_UseGain

int Dexela::DEX_UseGain
protected

◆ DEX_UseOffset

int Dexela::DEX_UseOffset
protected

The documentation for this class was generated from the following files: