| areaDetector 3-14
    EPICS areaDetector framework | 
Driver for Princeton Instruments cameras using the LightField Automation software. More...
 
  
| Public Member Functions | |
| LightField (const char *portName, const char *experimentName, int maxBuffers, size_t maxMemory, int priority, int stackSize) | |
| Constructor for LightField driver; most parameters are simply passed to ADDriver::ADDriver. | |
| virtual asynStatus | writeInt32 (asynUser *pasynUser, epicsInt32 value) | 
| Called when asyn clients call pasynInt32->write(). | |
| virtual asynStatus | writeFloat64 (asynUser *pasynUser, epicsFloat64 value) | 
| Called when asyn clients call pasynFloat64->write(). | |
| virtual asynStatus | writeOctet (asynUser *pasynUser, const char *value, size_t nChars, size_t *nActual) | 
| Called when asyn clients call pasynOctet->write(). | |
| virtual asynStatus | readEnum (asynUser *pasynUser, char *strings[], int values[], int severities[], size_t nElements, size_t *nIn) | 
| virtual void | setShutter (int open) | 
| Set the shutter position. | |
| virtual void | report (FILE *fp, int details) | 
| Report status of the driver. | |
| void | setAcquisitionComplete () | 
| void | frameCallback (ImageDataSetReceivedEventArgs^ args) | 
| callback function that is called by XISL every frame at end of data transfer | |
| void | settingChangedCallback (SettingChangedEventArgs^ args) | 
| void | exitHandler (void *args) | 
| void | pollerTask () | 
|  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. | |
| virtual asynStatus | connect (asynUser *pasynUser) | 
| Connects driver to device; This method is called when the driver's pasynCommon->connect() function is called. | |
|  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. | |
| 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. | |
| virtual asynStatus | writeGenericPointer (asynUser *pasynUser, void *genericPointer) | 
| This method currently does nothing, but it should be implemented in this base class. | |
| virtual asynStatus | setIntegerParam (int index, int value) | 
| Sets the value for an integer in the parameter library. | |
| virtual asynStatus | setIntegerParam (int list, int index, int value) | 
| Sets the value for an integer in the parameter library. | |
| virtual asynStatus | createFilePath (const char *path, int pathDepth) | 
| Function to create a directory path for a file. | |
| virtual asynStatus | checkPath () | 
| Checks whether the directory specified NDFilePath parameter exists. | |
| virtual bool | checkPath (std::string &filePath) | 
| Checks whether the directory specified exists. | |
| virtual asynStatus | createFileName (int maxChars, char *fullFileName) | 
| Build a file name from component parts. | |
| virtual asynStatus | createFileName (int maxChars, char *filePath, char *fileName) | 
| Build a file name from component parts. | |
| 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. | |
| virtual asynStatus | getAttributes (NDAttributeList *pAttributeList) | 
| Get the current values of attributes from this driver and appends them to an output attribute list. | |
| virtual void | updateTimeStamps (NDArray *pArray) | 
| asynStatus | incrementQueuedArrayCount () | 
| asynStatus | decrementQueuedArrayCount () | 
| int | getQueuedArrayCount () | 
| void | updateQueuedArrayCount () | 
| Additional Inherited Members | |
|  Public Attributes inherited from asynNDArrayDriver | |
| class NDArrayPool * | pNDArrayPool | 
| An NDArrayPool pointer that is initialized to pNDArrayPoolPvt_ in the constructor. | |
Driver for Princeton Instruments cameras using the LightField Automation software.
| LightField::LightField | ( | const char * | portName, | 
| const char * | experimentName, | ||
| int | maxBuffers, | ||
| size_t | maxMemory, | ||
| int | priority, | ||
| int | stackSize | ||
| ) | 
Constructor for LightField 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 for the parameters defined in this class, asynNDArrayDriver and ADDriver.
| [in] | portName | The name of the asyn port driver to be created. | 
| [in] | experimentName | The name of the experiment to open initially. Set this to an empty string to open the default experiment in LightField. | 
| [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. | 
| void LightField::exitHandler | ( | void * | args | ) | 
| void LightField::frameCallback | ( | ImageDataSetReceivedEventArgs^ | args | ) | 
callback function that is called by XISL every frame at end of data transfer
| void LightField::pollerTask | ( | ) | 
| 
 | virtual | 
| 
 | virtual | 
Report status of the driver.
Prints details about the driver if details>0. It then calls the ADDriver::report() method.
| [in] | fp | File pointed passed by caller where the output is written to. | 
| [in] | details | If >0 then driver details are printed. | 
Reimplemented from asynNDArrayDriver.
| void LightField::setAcquisitionComplete | ( | ) | 
| 
 | virtual | 
Set the shutter position.
This method will open (1) or close (0) the shutter if ADShutterMode==ADShutterModeEPICS. Drivers will implement setShutter if they support ADShutterModeDetector. If ADShutterMode=ADShutterModeDetector they will control the shutter directly, else they will call this method.
| [in] | open | 1 (open) or 0 (closed) | 
Reimplemented from ADDriver.
| void LightField::settingChangedCallback | ( | SettingChangedEventArgs^ | args | ) | 
| 
 | virtual | 
Called when asyn clients call pasynFloat64->write().
This function performs actions for some parameters, including ADAcquireTime, ADGain, etc. For all parameters it sets the value in the parameter library and calls any registered callbacks..
| [in] | pasynUser | pasynUser structure that encodes the reason and address. | 
| [in] | value | Value to write. | 
| 
 | virtual | 
Called when asyn clients call pasynInt32->write().
This function performs actions for some parameters, including ADAcquire, ADBinX, etc. For all parameters it sets the value in the parameter library and calls any registered callbacks..
| [in] | pasynUser | pasynUser structure that encodes the reason and address. | 
| [in] | value | Value to write. | 
Reimplemented from ADDriver.
| 
 | virtual | 
Called when asyn clients call pasynOctet->write().
This function performs actions for some parameters, including NDAttributesFile. For all parameters it sets the value in the parameter library and calls any registered callbacks..
| [in] | pasynUser | pasynUser structure that encodes the reason and address. | 
| [in] | value | Address of the string to write. | 
| [in] | nChars | Number of characters to write. | 
| [out] | nActual | Number of characters actually written. | 
Reimplemented from asynNDArrayDriver.
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected |