Qudi
|
Dummy confocal scanner. More...
Public Member Functions | |
def | __init__ (self, config, kwargs) |
def | on_activate (self) |
Initialisation performed during activation of the module. | |
def | on_deactivate (self) |
Deactivate properly the confocal scanner dummy. | |
def | reset_hardware (self) |
Resets the hardware, so the connection is lost and other programs can access it. More... | |
def | get_position_range (self) |
Returns the physical range of the scanner. More... | |
def | set_position_range (self, myrange=None) |
Sets the physical range of the scanner. More... | |
def | set_voltage_range (self, myrange=None) |
Sets the voltage range of the NI Card. More... | |
def | get_scanner_axes (self) |
Dummy scanner is always 3D cartesian. | |
def | get_scanner_count_channels (self) |
3 counting channels in dummy confocal: normal, negative and a ramp. More... | |
def | set_up_scanner_clock (self, clock_frequency=None, clock_channel=None) |
Configures the hardware clock of the NiDAQ card to give the timing. More... | |
def | set_up_scanner (self, counter_channels=None, sources=None, clock_channel=None, scanner_ao_channels=None) |
Configures the actual scanner with a given clock. More... | |
def | scanner_set_position (self, x=None, y=None, z=None, a=None) |
Move stage to x, y, z, a (where a is the fourth voltage channel). More... | |
def | get_scanner_position (self) |
Get the current position of the scanner hardware. More... | |
def | scan_line (self, line_path=None, pixel_clock=False) |
Scans a line and returns the counts on that line. More... | |
def | close_scanner (self) |
Closes the scanner and cleans up afterwards. More... | |
def | close_scanner_clock (self, power=0) |
Closes the clock and cleans up afterwards. More... | |
def | twoD_gaussian_function (self, x_data_tuple=None, amplitude=None, x_zero=None, y_zero=None, sigma_x=None, sigma_y=None, theta=None, offset=None) |
# the following two functions are needed to fluoreschence signal # of the dummy NVs # # More... | |
def | gaussian_function (self, x_data=None, amplitude=None, x_zero=None, sigma=None, offset=None) |
This method provides a one dimensional gaussian function. More... | |
![]() | |
def | __init__ (self, manager, name, config=None, callbacks=None, kwargs) |
Initialise Base class object and set up its state machine. More... | |
def | log (self) |
Returns a logger object. | |
def | is_module_threaded (self) |
Returns whether the module shall be started in a thread. | |
def | on_activate (self) |
Method called when module is activated. More... | |
def | on_deactivate (self) |
Method called when module is deactivated. More... | |
def | getStatusVariables (self) |
Return a dict of variable names and their content representing the module state for saving. More... | |
def | setStatusVariables (self, variableDict) |
Give a module a dict of variable names and their content representing the module state. More... | |
def | getConfiguration (self) |
Return the configration dictionary for this module. More... | |
def | get_connector (self, connector_name) |
Return module connected to the given named connector. More... | |
![]() | |
def | __new__ (cls, name, bases, attrs) |
Collect declared Connectors, ConfigOptions and StatusVars into dictionaries. More... | |
Static Public Attributes | |
fitlogic = Connector(interface='FitLogic') | |
Additional Inherited Members | |
![]() | |
module_state | |
connectors | |
Dummy confocal scanner.
Produces a picture with several gaussian spots.
Example config for copy-paste:
confocal_scanner_dummy: module 'confocal_scanner_dummy.ConfocalScannerDummy' clock_frequency 100 # in Hz fitlogic 'fitlogic' # name of the fitlogic module, see default config
def confocal_scanner_dummy.ConfocalScannerDummy.close_scanner | ( | self | ) |
Closes the scanner and cleans up afterwards.
def confocal_scanner_dummy.ConfocalScannerDummy.close_scanner_clock | ( | self, | |
power = 0 |
|||
) |
Closes the clock and cleans up afterwards.
def confocal_scanner_dummy.ConfocalScannerDummy.gaussian_function | ( | self, | |
x_data = None , |
|||
amplitude = None , |
|||
x_zero = None , |
|||
sigma = None , |
|||
offset = None |
|||
) |
This method provides a one dimensional gaussian function.
array | x_data: x values |
float | or int amplitude: Amplitude of gaussian |
float | or int x_zero: x value of maximum |
float | or int sigma: standard deviation |
float | or int offset: offset |
def confocal_scanner_dummy.ConfocalScannerDummy.get_position_range | ( | self | ) |
Returns the physical range of the scanner.
def confocal_scanner_dummy.ConfocalScannerDummy.get_scanner_count_channels | ( | self | ) |
3 counting channels in dummy confocal: normal, negative and a ramp.
def confocal_scanner_dummy.ConfocalScannerDummy.get_scanner_position | ( | self | ) |
Get the current position of the scanner hardware.
def confocal_scanner_dummy.ConfocalScannerDummy.reset_hardware | ( | self | ) |
Resets the hardware, so the connection is lost and other programs can access it.
def confocal_scanner_dummy.ConfocalScannerDummy.scan_line | ( | self, | |
line_path = None , |
|||
pixel_clock = False |
|||
) |
Scans a line and returns the counts on that line.
float[][4] | line_path: array of 4-part tuples defining the voltage points |
bool | pixel_clock: whether we need to output a pixel clock for this line |
def confocal_scanner_dummy.ConfocalScannerDummy.scanner_set_position | ( | self, | |
x = None , |
|||
y = None , |
|||
z = None , |
|||
a = None |
|||
) |
Move stage to x, y, z, a (where a is the fourth voltage channel).
float | x: postion in x-direction (volts) |
float | y: postion in y-direction (volts) |
float | z: postion in z-direction (volts) |
float | a: postion in a-direction (volts) |
def confocal_scanner_dummy.ConfocalScannerDummy.set_position_range | ( | self, | |
myrange = None |
|||
) |
Sets the physical range of the scanner.
float | [4][2] myrange: array of 4 ranges with an array containing lower and upper limit |
def confocal_scanner_dummy.ConfocalScannerDummy.set_up_scanner | ( | self, | |
counter_channels = None , |
|||
sources = None , |
|||
clock_channel = None , |
|||
scanner_ao_channels = None |
|||
) |
Configures the actual scanner with a given clock.
str | counter_channel: if defined, this is the physical channel of the counter |
str | photon_source: if defined, this is the physical channel where the photons are to count from |
str | clock_channel: if defined, this specifies the clock for the counter |
str | scanner_ao_channels: if defined, this specifies the analoque output channels |
def confocal_scanner_dummy.ConfocalScannerDummy.set_up_scanner_clock | ( | self, | |
clock_frequency = None , |
|||
clock_channel = None |
|||
) |
Configures the hardware clock of the NiDAQ card to give the timing.
float | clock_frequency: if defined, this sets the frequency of the clock |
str | clock_channel: if defined, this is the physical channel of the clock |
def confocal_scanner_dummy.ConfocalScannerDummy.set_voltage_range | ( | self, | |
myrange = None |
|||
) |
Sets the voltage range of the NI Card.
float | [2] myrange: array containing lower and upper limit |
def confocal_scanner_dummy.ConfocalScannerDummy.twoD_gaussian_function | ( | self, | |
x_data_tuple = None , |
|||
amplitude = None , |
|||
x_zero = None , |
|||
y_zero = None , |
|||
sigma_x = None , |
|||
sigma_y = None , |
|||
theta = None , |
|||
offset = None |
|||
) |
#
the following two functions are needed to fluoreschence signal # of the dummy NVs # #
This method provides a two dimensional gaussian function.
@param (k,M)-shaped array x_data_tuple: x and y values @param float or int amplitude: Amplitude of gaussian @param float or int x_zero: x value of maximum @param float or int y_zero: y value of maximum @param float or int sigma_x: standard deviation in x direction @param float or int sigma_y: standard deviation in y direction @param float or int theta: angle for eliptical gaussians @param float or int offset: offset @return callable function: returns the function