- class concert.devices.cameras.base.Camera¶
Base class for remotely controllable cameras.
Frame rate of acquisition in q.count per time unit.
Return a NumPy array with data of the current frame.
- recording(*args, **kwds)¶
A context manager for starting and stopping the camera.
In general it is used with the with keyword like this:
with camera.recording(): frame = camera.grab()
- start_recording(instance, *args, **kwargs)¶
Start recording frames.
- stop_recording(instance, *args, **kwargs)¶
Stop recording frames.
- stream(*args, **kwargs)¶
Grab frames continuously and send them to consumer, which is a coroutine.
Trigger a frame if possible.
Linear motors are characterized by moving along a straight line.
- class concert.devices.motors.base.LinearMotor¶
One-dimensional linear motor.
Position of the motor in length units.
Rotational motors are characterized by rotating around an axis.
- class concert.devices.motors.base.RotationMotor¶
One-dimensional rotational motor.
Position of the motor in angular units.
An axis is a coordinate system axis which can realize either translation or rotation, depending by which type of motor it is realized.
- class concert.devices.positioners.base.Axis(coordinate, motor, direction=1, position=None)¶
An axis represents a Euclidean axis along which one can translate or around which one can rotate. The axis coordinate is a string representing the Euclidean axis, i.e. ‘x’ or ‘y’ or ‘z’. Movement is realized by a motor. An additional position argument is necessary for calculatin more complicated motion types, e.g. rotation around arbitrary point in space. It is the local position with respect to a concert.devices.positioners.base.Positioner in which it is placed.
Get position asynchronously with respect to axis direction.
Set the position asynchronously with respect to axis direction.
Photodiodes measure light intensity.
Positioner is a device consisting of more concert.devices.positioners.base.Axis instances which make it possible to specify a 3D position and orientation of some object.
- class concert.devices.positioners.base.Positioner(axes, position=None)¶
Combines more motors which move to form a complex motion. axes is a list of Axis instances. position is a 3D vector of coordinates specifying the global position of the positioner.
If a certain coordinate in the positioner is missing, then when we set the position or orientation we can specify the respective vector position to be zero or numpy.nan.
Move back by value.
Move down by value.
Move forward by value.
Move left by value.
Move by specified position.
Move right by value.
Rotate by angles.
Move up by value.
Imaging positioner is a positioner capable of moving in x and y directions by the given amount of pixels.
- class concert.devices.positioners.imaging.Positioner(axes, detector, position=None)¶
A positioner which takes into account a detector with some pixel size. This way the user can specify the movement in pixels.
Move by specified position which can be given in meters or pixels.