TriggeredCameraΒΆ

Class Arguments

Argument

Type

Default Value

camera

Camera

fire_ttl

Switchable

fire_pulsetime

TFloat

9.999999999999999e-05

debug_output

TBool

False

Bold arguments are mandatory. For more documentation on the listed arguments refer to the class definition below. If parameters appear in this list but not in the class definition below, please recursively check the linked base classes for the definition of the parameter.

Inheritance Diagram

Inheritance diagram of atomiq.components.optoelectronics.camera.TriggeredCamera

Example Component Dictionary

   {
    "camera_example": {
        "classname": "atomiq.components.optoelectronics.camera.TriggeredCamera",
        "arguments": {
            "camera": "<mandatory parameter (Camera)>",
            "fire_ttl": "<mandatory parameter (Switchable)>",
            "fire_pulsetime": 9.999999999999999e-05,
            "debug_output": false
        }
    }
}

Class Description

class atomiq.components.optoelectronics.camera.TriggeredCamera(camera, fire_ttl, fire_pulsetime=9.999999999999999e-05, *args, **kwargs)[source]

Bases: Camera, Triggerable

Camera that is configured via RPC but triggered via a TTL

Parameters:
  • camera (Camera) -- The camera component. It needs to provide the functions configure(identifier: int, configuration: dict, metadata: dict) to configure the camera, start() to arm the camera (i.e. wait for trigger), and abort() to stop waiting for trigger or stop exposure.

  • fire_ttl (Switchable) -- The logic signal that triggers the exposure.

  • fire_pulsetime (artiq.language.types.TFloat) -- The time the logic signal remains high to trigger the camera (default 100us)

A Triggerable has one or more channel(s) that can be triggered

kernel_invariants = {'camera', 'fire_pulsetime', 'fire_ttl'}
configure(config='')[source]

Configure the camera to a known configuration.

Parameters:

config (artiq.language.types.TStr) -- The name of the configuration.

arm()[source]

Arm the camera such that a subsequent call of the start() method can start the exposure immediately. Arming typically cannot meet realtime requirements. However, once armed, the camera can start exposure on a trigger in realtime

stop()[source]

Stop exposure of the camera

fire(channel='')[source]

Uses the fire_ttl component to trigger the camera. Pulses the TTL for fire_pulsetime (as defined in components) and thereby advances the time cursor by this amount.

Parameters:

channel (artiq.language.types.TStr) -- Not used.

start()[source]

Start exposure of the camera (alias for fire() ).