atomiq.components.optoelectronics.photodiode¶
Classes¶
Abstract class to represent a photodiode as a device to measure light power |
|
An analog photodiode that gives a voltage proportional to the incidend light power. |
|
An analog photodiode with a power calibration |
Module Contents¶
- class atomiq.components.optoelectronics.photodiode.Photodiode(*args, **kwargs)[source]¶
Bases:
atomiq.components.primitives.Component,atomiq.components.primitives.MeasurableAbstract class to represent a photodiode as a device to measure light power
- experiment¶
- identifier¶
- debug_output = False¶
- core¶
- _kernel_invariants¶
- _prepare_done = False¶
- _build_done = False¶
- _hooks_done = []¶
- children = []¶
- __in_build = True¶
- measurement_channels()¶
- class atomiq.components.optoelectronics.photodiode.AnalogPhotodiode(adc_channel, *args, **kwargs)[source]¶
Bases:
PhotodiodeAn analog photodiode that gives a voltage proportional to the incidend light power.
- Parameters:
adc_channel (ADCChannel) -- The ADC channel that reads the analog voltage of the photodiode
- kernel_invariants¶
- adc_channel¶
- get_power(samples=1, cached=False)[source]¶
- Parameters:
samples (artiq.language.types.TInt32)
cached (artiq.language.types.TBool)
- Return type:
artiq.language.types.TFloat
- _measure(samples=1, cached=False)[source]¶
- Parameters:
samples (artiq.language.types.TInt32)
cached (artiq.language.types.TBool)
- Return type:
artiq.language.types.TFloat
- measure()¶
- Return type:
artiq.language.types.TFloat
- experiment¶
- identifier¶
- debug_output = False¶
- core¶
- _kernel_invariants¶
- _prepare_done = False¶
- _build_done = False¶
- _hooks_done = []¶
- children = []¶
- __in_build = True¶
- measurement_channels()¶
- class atomiq.components.optoelectronics.photodiode.CalibratedPhotodiode(calibration, *args, **kwargs)[source]¶
Bases:
AnalogPhotodiodeAn analog photodiode with a power calibration
- Parameters:
adc_channel -- The ADC channel that reads the analog voltage of the photodiode
calibration (Calibration) -- calibration of the photodiode
- kernel_invariants¶
- calibration¶
- _measure(samples=1, cached=False)[source]¶
Get the power incident to the photodiode.
- Parameters:
samples (artiq.language.types.TInt32) -- number of samples to take and average before returning the result (default 1)
cached (artiq.language.types.TBool) -- If true, the result of the last measurement is returned, otherwise new measurements are taken (default False)
- Returns:
Result of the measurement (possibly averaged over several samples)
- Return type:
TFloat
- adc_channel¶
- get_power(samples=1, cached=False)¶
- Parameters:
samples (artiq.language.types.TInt32)
cached (artiq.language.types.TBool)
- Return type:
artiq.language.types.TFloat
- measure()¶
- Return type:
artiq.language.types.TFloat
- experiment¶
- identifier¶
- debug_output = False¶
- core¶
- _kernel_invariants¶
- _prepare_done = False¶
- _build_done = False¶
- _hooks_done = []¶
- children = []¶
- __in_build = True¶
- measurement_channels()¶