SamplerChannelΒΆ

Class Arguments

Argument

Type

Default Value

adc_device

ADC

channel

TInt32

default_gain

TInt32

0

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": {
            "adc_device": "<mandatory parameter (ADC)>",
            "channel": "<mandatory parameter (TInt32)>",
            "default_gain": 0
        }
    }
}

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 (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.compiler.types.TMono('int', OrderedDict({'width': artiq.compiler.types.TValue(32)}))) -- Gain in machine units (0: 1, ..., 3: 1000)