SamplerChannelΒΆ

Class Arguments

Argument

Type

Default Value

default_gain

TInt32

0

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.sinara.sampler.SamplerChannel

Example Component Dictionary

   {
    "sampler_example": {
        "classname": "atomiq.components.sinara.sampler.SamplerChannel",
        "arguments": {
            "default_gain": 0,
            "debug_output": false
        }
    }
}

Class Description

class atomiq.components.sinara.sampler.SamplerChannel(default_gain=0, *args, **kwargs)[source]

Bases: ADCChannel

Single ADC Channel of a Sinara Sampler

This class represents a single channel of a Sinara Sampler as an ADCChannel.

Parameters:

default_gain (artiq.language.types.TInt32) -- Default gain to set for the Sampler channel at startup. (default 0)

A single channel of a (possibly multichannel) ADC

Parameters:
  • adc_device -- The ADC the channel belongs to

  • channel -- The number of the channel

  • default_gain (TInt32)

set_gain(gain)[source]

Set the gain for the Sampler Channel

Parameters:

gain (artiq.language.types.TInt32) -- Gain in machine units (0: 1, ..., 3: 1000)

kernel_invariants = {'adc_device', 'channel'}
measure(samples=1, cached=False, channel='')
Return type:

artiq.language.types.TFloat

Parameters:
  • samples (artiq.language.types.TInt32)

  • cached (artiq.language.types.TBool)

  • channel (artiq.language.types.TStr)

measurement_channels()