Create the camera object. The use of this library is very simple, as example view the following code of the dcomain.cpp.
More...
#include <dco.h>
|
enum | PROPERTIES_DECIMATION { DECIMATION_NONE,
DECIMATION_PRESENT
} |
|
enum | PROPERTIES_GAIN { FIXED_GAIN = 1,
DOUBLE_GAIN = 2,
GAIN_127 = 3,
AD_9826 = 4
} |
|
enum | PROPERTIES_SELECTOR { SEL_GAIN = 1,
SEL_DECIMATION,
SEL_FILTERS
} |
|
enum | REVISION { LIBRARY,
LIBDCL,
FDLPCI,
WINDRIVER
} |
|
enum | START_MODE { COOLER_IS_OFF,
COOLER_IS_ON
} |
|
enum | STATUS { READY,
EXPOSURE,
DOWNLOADING,
FILTERMOVING
} |
|
|
U32 | Address () |
|
void | Binning (int Hor=1, int Ver=1) |
|
void | Binning (int *Hor, int *Ver) |
|
int | BitDecimation () |
|
void | BitDecimation (int val) |
|
const char * | CameraName () |
|
| CameraObject (void) |
| Create the camera object. More...
|
|
| CameraObject (const char *CameraConfigFile, START_MODE StartMode=COOLER_IS_OFF) |
| Default destructor, close the opened camera. More...
|
|
const char * | CcdName () |
|
void | CCDSize (int &XDim, int &YDim) |
|
void | Close () |
|
bool | Cooler () |
|
void | Cooler (int enable) |
|
double | Countdown () |
|
int | Downloading () |
|
int | ErrorCode () |
|
const char * | ErrorMessage (int Code) |
|
double | FanSpeed () |
|
bool | Fast () |
|
void | Fast (bool Mode) |
|
bool | Filter (int Speed, int Torque, int Offset) |
|
void | Filter (int *Speed, int *Torque, int *Offset) |
|
bool | Filter (int Flt) |
|
void | Filter (bool Calib) |
|
int | Filter () |
|
bool | Gain (int CCDgain) |
|
int | Gain () |
|
bool | Gain (int UGain, int Offset, int Range) |
|
void | Gain (int *UGain, int *Offset, int *Range) |
|
double | GainValue (bool preset=false, int idx=0, double *mVoffset=0) |
|
int | Id () |
|
bool | Image (bool Light, double Exposure, U16 *mat) |
|
void | ImageSize (int &XDim, int &YDim) |
|
U32 | ImageSize () |
|
bool | IsFilterWheel () |
|
bool | Load (const char *CameraConfigFile) |
|
bool | Open (const char *CameraConfigFile, START_MODE StartMode=COOLER_IS_OFF, int camAdd=-1, int subAdd=-1) |
|
void | PixelSize (double &XDim, double &YDim) |
|
int | Plug (int parCnt, int *param) |
|
bool | Power (double Pow) |
|
double | Power () |
|
int | Properties (int selector) |
|
void | Reentrant (bool ena) |
|
void | ROI (int XStart, int YStart, int XWidth, int YHeight) |
|
void | ROI (int *XStart, int *YStart, int *XWidth, int *YHeight) |
|
void | ROI (bool roi) |
|
bool | ROI () |
|
bool | Sequence (bool Light, double Exposure, int NumOfFrames, U16 *mat[]) |
|
int | SequenceCount () |
|
U32 | Serial () |
|
void | SetFanSpeed (double speed) |
|
int | Status () |
|
void | Stop () |
|
void | SubAdd (int Camera) |
|
int | SubAdd () |
|
double | Temperature () |
|
void | TemperatureSet (double Celsius) |
|
double | TemperatureSet () |
|
bool | Trigger () |
|
void | Trigger (bool Mode) |
|
int | UsedPort () |
|
int | Ver (REVISION Who=LIBRARY, char *Version=0) |
|
| ~CameraObject () |
|
Create the camera object. The use of this library is very simple, as example view the following code of the dcomain.cpp.
Definition at line 52 of file dco.h.
§ PROPERTIES_DECIMATION
Enumerator |
---|
DECIMATION_NONE | |
DECIMATION_PRESENT | |
Definition at line 86 of file dco.h.
§ PROPERTIES_GAIN
Camera gain properties flag
Enumerator |
---|
FIXED_GAIN | Camera has only one gain.
|
DOUBLE_GAIN | Camera has two gain.
|
GAIN_127 | 127 selectable gain
|
AD_9826 | Analog Device A/D converter with 64 gain, 2 input range, 9 bit offset.
|
Definition at line 79 of file dco.h.
Analog Device A/D converter with 64 gain, 2 input range, 9 bit offset.
Camera has only one gain.
§ PROPERTIES_SELECTOR
Enumerator |
---|
SEL_GAIN | |
SEL_DECIMATION | |
SEL_FILTERS | Number of filters.
|
Definition at line 91 of file dco.h.
§ REVISION
Revision selector
Enumerator |
---|
LIBRARY | DCO version, the revision of this library!
|
LIBDCL | DCL version, the revision of the base library.
|
FDLPCI | FDLPCI version (FPGA Version of the fast parallel interface on PCI bus)
|
WINDRIVER | Windriver version, the low level driver by JUNGO.
|
Definition at line 57 of file dco.h.
FDLPCI version (FPGA Version of the fast parallel interface on PCI bus)
DCO version, the revision of this library!
DCL version, the revision of the base library.
Windriver version, the low level driver by JUNGO.
§ START_MODE
Camera start mode
Enumerator |
---|
COOLER_IS_OFF | When the camera start the cooler initialized and setted to off.
|
COOLER_IS_ON | When the camera start the cooler status is unchanged.
|
Definition at line 73 of file dco.h.
When the camera start the cooler status is unchanged.
When the camera start the cooler initialized and setted to off.
§ STATUS
Status of operations
Enumerator |
---|
READY | Camera is ready.
|
EXPOSURE | Exposure in progress.
|
DOWNLOADING | Downloading in progress.
|
FILTERMOVING | Filter wheel positioning in progress.
|
Definition at line 65 of file dco.h.
Filter wheel positioning in progress.
§ CameraObject() [1/2]
CameraObject::CameraObject |
( |
void |
| ) |
|
Create the camera object.
§ CameraObject() [2/2]
Default destructor, close the opened camera.
Create the camera object and initialize the camera.
- Parameters
-
CameraConfigFile | Name and path of the camera configuration file ("camera.cfg"). |
StartMode | Select in which mode the cooler of the camera will be initialized see START_MODE. |
§ ~CameraObject()
CameraObject::~CameraObject |
( |
| ) |
|
§ Address()
U32 CameraObject::Address |
( |
| ) |
|
Return the 32 bit physical address of the selected FDL-PCI.
- Returns
- 32 bit physical address
§ Binning() [1/2]
void CameraObject::Binning |
( |
int |
Hor = 1 , |
|
|
int |
Ver = 1 |
|
) |
| |
Set the horizontal and vertical binning value.
- Parameters
-
Hor | Horizontal binning value. Value accepted are in the range 1 to n |
Ver | Vertical binning value. Value accepted are in the range 1 to n |
§ Binning() [2/2]
void CameraObject::Binning |
( |
int * |
Hor, |
|
|
int * |
Ver |
|
) |
| |
Return the current horizontal and vertical binning value.
- Parameters
-
Hor | Horizontal binning value. |
Ver | Vertical binning value. |
§ BitDecimation() [1/2]
int CameraObject::BitDecimation |
( |
| ) |
|
§ BitDecimation() [2/2]
void CameraObject::BitDecimation |
( |
int |
val | ) |
|
§ CameraName()
const char* CameraObject::CameraName |
( |
| ) |
|
Return a string with the camera name.
§ CcdName()
const char* CameraObject::CcdName |
( |
| ) |
|
Return a string with the CCD name.
§ CCDSize()
void CameraObject::CCDSize |
( |
int & |
XDim, |
|
|
int & |
YDim |
|
) |
| |
§ Close()
void CameraObject::Close |
( |
| ) |
|
Close the selected camera.
§ Cooler() [1/2]
bool CameraObject::Cooler |
( |
| ) |
|
Return true if the cooler is active
§ Cooler() [2/2]
void CameraObject::Cooler |
( |
int |
enable | ) |
|
§ Countdown()
double CameraObject::Countdown |
( |
| ) |
|
Return the exposure countdown value.
- Returns
- The exposure countdown value
§ Downloading()
int CameraObject::Downloading |
( |
| ) |
|
Return the per cent value of the current downloading.
- Returns
- The per cent value (0 to 100).
§ ErrorCode()
int CameraObject::ErrorCode |
( |
| ) |
|
Retrieve the error code of the last performed operation.
- Returns
- The error code.
§ ErrorMessage()
const char* CameraObject::ErrorMessage |
( |
int |
Code | ) |
|
Convert an error code into a string message.
- Parameters
-
Code | Error code identifier. |
- Returns
- Error message.
§ FanSpeed()
double CameraObject::FanSpeed |
( |
| ) |
|
§ Fast() [1/2]
bool CameraObject::Fast |
( |
| ) |
|
Return the status of the fast mode.
- Returns
- The status of the fast operation mode. If true camera operation it is in fast mode.
§ Fast() [2/2]
void CameraObject::Fast |
( |
bool |
Mode | ) |
|
Set the operation mode of the camera.
- Parameters
-
Mode | If true you disable background operation for the temperature control, but you can retrieve images with more efficiency. |
§ Filter() [1/5]
bool CameraObject::Filter |
( |
int |
Speed, |
|
|
int |
Torque, |
|
|
int |
Offset |
|
) |
| |
Setup the filter wheel parameters
- Parameters
-
Speed | of the the filter positioning, accept values in the range 0 - 39. |
Torque | of the filter holding when positioned, accept values in the range 0 - 3. |
Offset | of the filter, accept values in the range +/- 10. |
- Returns
- true if all parameters are in the expected range.
§ Filter() [2/5]
void CameraObject::Filter |
( |
int * |
Speed, |
|
|
int * |
Torque, |
|
|
int * |
Offset |
|
) |
| |
Retrieve the current filter wheel settings
- Parameters
-
Speed | of the the filter positioning. |
Torque | of the filter holding when positioned. |
Offset | of the filter. |
§ Filter() [3/5]
bool CameraObject::Filter |
( |
int |
Flt | ) |
|
Select a filter of the wheel
- Parameters
-
Flt | filter to be selected into the range 1 to 8 |
- Returns
- true if the parameter Flt is in the range 1 to 8.
§ Filter() [4/5]
void CameraObject::Filter |
( |
bool |
Calib | ) |
|
Calibrate the filter the filter wheel and select the filter 1.
- Parameters
-
Calib | If true calibrate the filter wheel. |
§ Filter() [5/5]
int CameraObject::Filter |
( |
| ) |
|
Return the current selected filter.
§ Gain() [1/4]
bool CameraObject::Gain |
( |
int |
CCDgain | ) |
|
Select one of four of the available CCD gain.
- Parameters
-
CCDgain | Select the gain, range accepted 0 to 3. |
§ Gain() [2/4]
int CameraObject::Gain |
( |
| ) |
|
Return the current preset gain.
- Returns
- 0 to 3
§ Gain() [3/4]
bool CameraObject::Gain |
( |
int |
UGain, |
|
|
int |
Offset, |
|
|
int |
Range |
|
) |
| |
Set an user gain values. Not all camera models accept this setting.
- Parameters
-
UGain | set the gain value into the range 0 to 63. |
Offset | set the bias offset into the range +/- 256. |
Range | select the A/D converter range input, values accepted are 0 or 1. |
- Returns
- true if all parameters are into the accepted range.
§ Gain() [4/4]
void CameraObject::Gain |
( |
int * |
UGain, |
|
|
int * |
Offset, |
|
|
int * |
Range |
|
) |
| |
Retrieve all parameters of the current user gain.
- Parameters
-
UGain | the gain (range 0 to 63). |
Offset | the bias offset (range +/- 256). |
Range | A/D converter range input (0|1). |
§ GainValue()
double CameraObject::GainValue |
( |
bool |
preset = false , |
|
|
int |
idx = 0 , |
|
|
double * |
mVoffset = 0 |
|
) |
| |
Return the gain value as e/ADU
§ Id()
Return the camera identifier.
§ Image()
bool CameraObject::Image |
( |
bool |
Light, |
|
|
double |
Exposure, |
|
|
U16 * |
mat |
|
) |
| |
Take an image from the camera.
- Parameters
-
Light | If false take a dark image else take an exposed image. |
Exposure | Exposure time in seconds. |
mat | Memory buffer where the image is stored. |
- Returns
- Return true if the parameters Exposure and mat are valid
- See also
- Status, ErrorMessage
§ ImageSize() [1/2]
void CameraObject::ImageSize |
( |
int & |
XDim, |
|
|
int & |
YDim |
|
) |
| |
Return the image dimension of the used CCD
- Parameters
-
XDim | Return the number of the horizontal pixel. |
YDim | Return the number of the vertical pixel. |
§ ImageSize() [2/2]
U32 CameraObject::ImageSize |
( |
| ) |
|
Return the number of the pixel of the camera
- Returns
- Number of the camera pixel.
§ IsFilterWheel()
bool CameraObject::IsFilterWheel |
( |
| ) |
|
Return true if the filter wheel is present.
§ Load()
bool CameraObject::Load |
( |
const char * |
CameraConfigFile | ) |
|
§ Open()
bool CameraObject::Open |
( |
const char * |
CameraConfigFile, |
|
|
START_MODE |
StartMode = COOLER_IS_OFF , |
|
|
int |
camAdd = -1 , |
|
|
int |
subAdd = -1 |
|
) |
| |
Initialize the camera.
- Parameters
-
CameraConfigFile | Name and path of the camera configuration file ("camera.cfg"). |
StartMode | Select in which mode the cooler of the camera will be initialized see START_MODE. |
- Returns
- true on success, false if failed.
- See also
- ErrorCode, ErrorMessage
§ PixelSize()
void CameraObject::PixelSize |
( |
double & |
XDim, |
|
|
double & |
YDim |
|
) |
| |
Return the dimension (um) of the pixel of the used CCD according to the binning value.
- Parameters
-
XDim | Return the horizontal dimension (um) of the pixel. |
YDim | Return the vertical dimension (um) of the pixel. |
§ Plug()
int CameraObject::Plug |
( |
int |
parCnt, |
|
|
int * |
param |
|
) |
| |
§ Power() [1/2]
bool CameraObject::Power |
( |
double |
Pow | ) |
|
Set a new value of the cooler power. Normally this value is handled by the temperature procedure. With this method user can force cooler activity.
- Parameters
-
Pow | The cooler power, the accepted range is: 0.0 to 100.0 |
- Returns
- true if the parameter Pow is in the range 0.0 to 100.0
§ Power() [2/2]
double CameraObject::Power |
( |
| ) |
|
Return the current cooler power value
- Returns
- The cooler power.
§ Properties()
int CameraObject::Properties |
( |
int |
selector | ) |
|
Return some camera properties.
- See also
- PROPERTIES
§ Reentrant()
void CameraObject::Reentrant |
( |
bool |
ena | ) |
|
|
inline |
§ ROI() [1/4]
void CameraObject::ROI |
( |
int |
XStart, |
|
|
int |
YStart, |
|
|
int |
XWidth, |
|
|
int |
YHeight |
|
) |
| |
Set and enable the Region Of Interest of the acquired image.
- Parameters
-
XStart | Horizontal (top left) origin of the ROI. |
YStart | Vertical (top left) origin of the ROI. |
XWidth | Horizontal width of the ROI. |
YHeight | Vertical height of the ROI. |
§ ROI() [2/4]
void CameraObject::ROI |
( |
int * |
XStart, |
|
|
int * |
YStart, |
|
|
int * |
XWidth, |
|
|
int * |
YHeight |
|
) |
| |
Return the currently set ROI.
- Parameters
-
XStart | Horizontal (top left) origin of the ROI. |
YStart | Vertical (top left) origin of the ROI. |
XWidth | Horizontal width of the ROI. |
YHeight | Vertical height of the ROI. |
§ ROI() [3/4]
void CameraObject::ROI |
( |
bool |
roi | ) |
|
Enable/Disable the ROI.
- Parameters
-
roi | If true enable the ROI, else disable it. |
§ ROI() [4/4]
bool CameraObject::ROI |
( |
| ) |
|
§ Sequence()
bool CameraObject::Sequence |
( |
bool |
Light, |
|
|
double |
Exposure, |
|
|
int |
NumOfFrames, |
|
|
U16 * |
mat[] |
|
) |
| |
Take a sequence of images.
- Parameters
-
Light | If false take a dark image else take an exposed image. |
Exposure | Exposure time in seconds. |
NumOfFrames | Number of images to be take. |
mat | List of memory array. |
- Returns
- Return true if the parameters Exposure, mat and NumOfFrames are valid.
- See also
- Status, ErrorMessage
§ SequenceCount()
int CameraObject::SequenceCount |
( |
| ) |
|
§ Serial()
U32 CameraObject::Serial |
( |
| ) |
|
Retrieve the serial number of the selected camera.
- Returns
- 32 bit serial number.
§ SetFanSpeed()
void CameraObject::SetFanSpeed |
( |
double |
speed | ) |
|
§ Status()
int CameraObject::Status |
( |
| ) |
|
Return the status of the camera.
- Returns
- The status of the camera operation, see STATUS.
§ Stop()
void CameraObject::Stop |
( |
| ) |
|
Stop the current exposure countdown and download the image.
§ SubAdd() [1/2]
void CameraObject::SubAdd |
( |
int |
Camera | ) |
|
Select a specified camera onto specified Port. This method is used into camera multiplexed configuration.
- Parameters
-
Camera | The camera to be selected on the multiplexer, range 0 to 3. |
§ SubAdd() [2/2]
int CameraObject::SubAdd |
( |
| ) |
|
Return selected camera onto the multiplexer.
- Returns
- 0 to 3
§ TaskSet() [1/2]
int CameraObject::TaskSet |
( |
void |
| ) |
|
|
protected |
§ TaskSet() [2/2]
void CameraObject::TaskSet |
( |
int |
Set | ) |
|
|
protected |
§ Temperature()
double CameraObject::Temperature |
( |
| ) |
|
Return the current CCD temperature (Celsius).
§ TemperatureSet() [1/2]
void CameraObject::TemperatureSet |
( |
double |
Celsius | ) |
|
Set the CCD operating temperature. This command automatically control the cooler power.
- Parameters
-
Celsius | The target CCD operating temperature. |
§ TemperatureSet() [2/2]
double CameraObject::TemperatureSet |
( |
| ) |
|
Return The target CCD operating temperature.
§ Trigger() [1/2]
bool CameraObject::Trigger |
( |
| ) |
|
Return the trigger status
- Returns
- Return true if the trigger is active.
§ Trigger() [2/2]
void CameraObject::Trigger |
( |
bool |
Mode | ) |
|
Set the camera trigger (TTL signal onto the user port.
- Parameters
-
Mode | If true enable the trigger to synchronizes the image acquisition, methods Image and Sequence are affected. |
§ UsedPort()
int CameraObject::UsedPort |
( |
| ) |
|
|
inline |
§ Ver()
Retrieve in binary and string mode the revision of used library and hardware.
- Parameters
-
Who | Library identifier REVISION |
Version | Output of the string. |
- Returns
- Number of version.
§ Port
§ Reent
The documentation for this class was generated from the following file:
- C:/DAS316/Sources/Header/dco.h