Qudi
|
Control a camera. More...
Public Member Functions | |
def | __init__ (self, config, kwargs) |
def | on_activate (self) |
Initialisation performed during activation of the module. | |
def | on_deactivate (self) |
Perform required deactivation. More... | |
def | set_exposure (self, time) |
Set exposure of hardware. | |
def | get_exposure (self) |
Get exposure of hardware. | |
def | set_gain (self, gain) |
def | get_gain (self) |
def | start_single_acquistion (self) |
def | start_loop (self) |
Start the data recording loop. | |
def | stop_loop (self) |
Stop the data recording loop. | |
def | loop (self) |
Execute step in the data recording loop: save one of each control and process values. | |
def | get_last_image (self) |
Return last acquired image. | |
def | save_xy_data (self, colorscale_range=None, percentile_range=None) |
Save the current confocal xy data to file. More... | |
def | draw_figure (self, data, image_extent, scan_axis=None, cbar_range=None, percentile_range=None, crosshair_pos=None) |
Create a 2-D color map figure of the scan image. More... | |
Public Attributes | |
threadlock | |
enabled | |
Static Public Attributes | |
hardware = Connector(interface='CameraInterface') | |
savelogic = Connector(interface='SaveLogic') | |
sigUpdateDisplay = QtCore.Signal() | |
sigAcquisitionFinished = QtCore.Signal() | |
sigVideoFinished = QtCore.Signal() | |
timer = None | |
bool | enabled = False |
Control a camera.
def camera_logic.CameraLogic.draw_figure | ( | self, | |
data, | |||
image_extent, | |||
scan_axis = None , |
|||
cbar_range = None , |
|||
percentile_range = None , |
|||
crosshair_pos = None |
|||
) |
Create a 2-D color map figure of the scan image.
def camera_logic.CameraLogic.on_deactivate | ( | self | ) |
Perform required deactivation.
def camera_logic.CameraLogic.save_xy_data | ( | self, | |
colorscale_range = None , |
|||
percentile_range = None |
|||
) |
Save the current confocal xy data to file.
Two files are created. The first is the imagedata, which has a text-matrix of count values corresponding to the pixel matrix of the image. Only count-values are saved here.
The second file saves the full raw data with x, y, z, and counts at every pixel.
A figure is also saved.