areaDetector
3-12-1
EPICS areaDetector framework
|
Class to wrap Lambda detector library provided by X-Spectrum. More...
#include <ADLambda.h>
Public Member Functions | |
ADLambda (const char *portName, const char *configPath, int maxBuffers, size_t maxMemory, int priority, int stackSize) | |
Constructor. More... | |
~ADLambda () | |
Destructor. More... | |
virtual asynStatus | disconnect (asynUser *paasynUser) |
First attempt at connect/disconnect. More... | |
virtual asynStatus | connect (asynUser *pasynUser) |
First attempt to create connect/disconnect. More... | |
asynStatus | createImageHandlerThread () |
Separate out the code that creates the image handling thread. More... | |
void | killImageHandlerThread () |
Kill the image handler thread by setting the keep alive signal to false. More... | |
int | getImageDepth () |
grab the image depth out of the GetImageFormat call More... | |
short * | getDecodedImageShort (long &lFrameNo, short &shErrCode) |
Pass through method to the vendor object requesting an image. More... | |
int * | getDecodedImageInt (long &lFrameNo, short &shErrCode) |
Pass through method to the vendor object requesting an image. More... | |
void | handleNewImageTask (void) |
This method is called by handleNewImageTaskC as the image handling thread is created. More... | |
void | report (FILE *fp, int details) |
Override super class's report method to provide detector specific info. More... | |
virtual asynStatus | readInt32 (asynUser *pasynUser, epicsInt32 *value) |
virtual asynStatus | writeFloat64 (asynUser *pasynUser, epicsFloat64 value) |
Override from super class to handle detector specific parameters. More... | |
virtual asynStatus | writeInt32 (asynUser *pasynUser, epicsInt32 value) |
Override from super class to handle detector specific parameters. More... | |
virtual asynStatus | writeOctet (asynUser *pasynUser, const char *value, size_t nChars, size_t *nActual) |
Override from super class to handle detector specific parameters. More... | |
virtual asynStatus | readOctet (asynUser *pasynUser, char *value, size_t maxChars, size_t *nActual, int *eomReason) |
Override from superclass to handle cases for detector specific Parameters. 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 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 | 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 | readFloat64 (asynUser *pasynUser, epicsFloat64 *value) |
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... | |
asynStatus | incrementQueuedArrayCount () |
asynStatus | decrementQueuedArrayCount () |
int | getQueuedArrayCount () |
void | updateQueuedArrayCount () |
Static Public Attributes | |
static const char * | driverName = "Lambda" |
static const int | TWELVE_BIT = 12 |
static const int | TWENTY_FOUR_BIT = 24 |
Additional Inherited Members | |
Public Attributes inherited from asynNDArrayDriver | |
class NDArrayPool * | pNDArrayPool |
An NDArrayPool pointer that is initialized to pNDArrayPoolPvt_ in the constructor. More... | |
Class to wrap Lambda detector library provided by X-Spectrum.
ADLambda::ADLambda | ( | const char * | portName, |
const char * | configPath, | ||
int | maxBuffers, | ||
size_t | maxMemory, | ||
int | priority, | ||
int | stackSize | ||
) |
Constructor.
[in] | portName | The name of the asyn port driver to be created. |
[in] | configPath | directory containing configuration file location |
[in] | maxBuffers | The 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] | maxMemory | The 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] | priority | The thread priority for the asyn port driver thread if ASYN_CANBLOCK is set in asynFlags. |
[in] | stackSize | The stack size for the asyn port driver thread if ASYN_CANBLOCK is set in asynFlags. |
ADLambda::~ADLambda | ( | ) |
Destructor.
|
virtual |
First attempt to create connect/disconnect.
This is now used at detector startup but does not seem to work with connect button, even though disconnect seems to disconnect using the button. The idea here is to contain lambdaInstance create here as eell as starting up the image handling thread
Reimplemented from ADDriver.
asynStatus ADLambda::createImageHandlerThread | ( | ) |
Separate out the code that creates the image handling thread.
|
virtual |
First attempt at connect/disconnect.
This method seems to work. It is called by the destructor and is also called when disconnect button is pressed. The corresponding connect does not work. The idea of this method is to kill the image handling thread and then delete the LambdaSysImpl instance.
int * ADLambda::getDecodedImageInt | ( | long & | lFrameNo, |
short & | shErrCode | ||
) |
Pass through method to the vendor object requesting an image.
Returned image will be returned as a pointer to int.
[in] | lFrameNo | The requested frame number in the queue. |
[out] | shErrCode | Error code for returned image. |
short * ADLambda::getDecodedImageShort | ( | long & | lFrameNo, |
short & | shErrCode | ||
) |
Pass through method to the vendor object requesting an image.
Returned image will be returned as a pointer to short.
[in] | lFrameNo | The requested frame number in the queue. |
[out] | shErrCode | Error code for returned image. |
int ADLambda::getImageDepth | ( | ) |
grab the image depth out of the GetImageFormat call
void ADLambda::handleNewImageTask | ( | void | ) |
This method is called by handleNewImageTaskC as the image handling thread is created.
This method runs a continuous loop which constantly checks for images in the buffer queue. When new images are seen they are pulled off the queue and placed into an NDArray for use by areaDetector
Upadate The Images
void ADLambda::killImageHandlerThread | ( | ) |
Kill the image handler thread by setting the keep alive signal to false.
|
virtual |
Reimplemented from asynNDArrayDriver.
|
virtual |
Override from superclass to handle cases for detector specific Parameters.
If the parameter is from one of the super classes and is not handled here, then pass along to ADDriver (direct super class)
|
virtual |
Override super class's report method to provide detector specific info.
When done, call ADDriver (direct super class) method to provide info from the upper classes.
Reimplemented from asynNDArrayDriver.
|
virtual |
Override from super class to handle detector specific parameters.
If the parameter is from one of the super classes and is not handled here, then pass along to ADDriver (direct super class)
|
virtual |
|
virtual |
Override from super class to handle detector specific parameters.
If the parameter is from one of the super classes and is not handled here, then pass along to ADDriver (direct super class)
Reimplemented from asynNDArrayDriver.
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |