Cameras.NIIMAQdx.NIIMAQdxClass
- class Cameras.NIIMAQdx.NIIMAQdxClass(cameraNumber, triggerMode=0, exposurems=1, gaindB=1, camROI=None, loadDefault=False)[source]
Bases:
PylablibInterfaceClassParent class for all camera NIIMAQdx classes using pylablib python driver.
=> NEED a model-specific child class defined in same file below
- __init__(cameraNumber, triggerMode=0, exposurems=1, gaindB=1, camROI=None, loadDefault=False)[source]
Initialize the Camera object
Warning
Contrary to other camera driver allowing for search of a camera with serial number, HERE cameraConfig[‘serial’] is passed as the camera index assigned by AndorSDK. Hopefully this won’t change from day to day but this could be an issue. If this is an issue, modify the initalization procedure to connect and grab serial until found. Contact developper if you can’t solve this by yourself.
- Parameters:
cameraNumber (int) – index of camera in camerasConfigs list
- Keyword Arguments:
triggerMode=0 (int) – 0 for hardware/external, 1 for software/internal
exposurems=1. (float) – Exposition duration (exposure) in ms.
gaindB=0. (float) – hardware gain of the camera in dB.
camROI=None (None or [int]*4) – Camera region of interest to read from sensor [x offset , y offset , x size , y size ] (binning is not implemented)
True (loadDefault =) – Decide if default values from cameraConfigs should be set at creation
- Returns:
NIIMAQdxClass camera object
Methods
__init__(cameraNumber[, triggerMode, ...])Initialize the Camera object
clearBuffer()Clear camera buffer from images.
exposureLevelAutoAdjust([attemptsMax, ...])Automatic adjustment of exposure for setting image 'Max' or 'Average' to a given level.
grabArray()Get an image from the camera.
roundCamROI([ROI])Rounding of ROI values to closest possible one according to camera rules
Send a software trigger to the camera to start an exposure WARNING : Need to be defined specifically for camera model in a child class !
setCamROI([ROI])Set the ROI of camera (without binning)
setExposurems(exposurems)Set the duration of the exposition
setGaindB(gaindB)Set the hardware gain of camera readout WARNING : Not Defined for AndorSDK2 camera.
setTriggerMode(triggerMode)Set the trigger mode
Start acquisition or restart if already running
- __del__()[source]
Delete the Camera object by calling close function
Close the Camera and free memory
- sendSoftwareTrigger()[source]
Send a software trigger to the camera to start an exposure WARNING : Need to be defined specifically for camera model in a child class !
- setExposurems(exposurems)[source]
Set the duration of the exposition
- Parameters:
exposurems (float) – Exposition duration (exposure) in ms.
- setGaindB(gaindB)[source]
Set the hardware gain of camera readout WARNING : Not Defined for AndorSDK2 camera. EMCCD Gain (if pertinent) can be set in cameraConfig as ‘EMCCDgain’.
- Parameters:
gaindB (float) – hardware gain of the camera in dB.