DACChannelΒΆ
Class Arguments
Argument |
Type |
Default Value |
---|---|---|
dac_device |
DAC |
|
channel |
TInt32 |
|
min_voltage |
TFloat |
-inf |
max_voltage |
TFloat |
inf |
default_ramp_steps |
TInt32 |
30 |
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
Example Component Dictionary
{
"voltagesource_example": {
"classname": "atomiq.components.electronics.voltagesource.DACChannel",
"arguments": {
"dac_device": "<mandatory parameter (DAC)>",
"channel": "<mandatory parameter (TInt32)>",
"min_voltage": -1e999,
"max_voltage": 1e999,
"default_ramp_steps": 30
}
}
}
Class Description
- class atomiq.components.electronics.voltagesource.DACChannel(dac_device, channel, *args, **kwargs)[source]
Bases:
VoltageSource
A single channel of a (possibly multichannel) DAC
A single channel of a DAC is a digitally controlled voltage source. Thus, this class inherits from
VoltageSource
.- Parameters:
dac_device (DAC) -- the DAC the channel belongs to
channel (TInt32) -- the number of the channel
- ramp_voltage(duration, voltage_start, voltage_end, ramp_timestep=-1.0, ramp_steps=-1)
Ramp voltage over a given duration.
This method advances the timeline by duration
- Parameters:
duration (artiq.compiler.types.TMono('float', OrderedDict())) -- ramp duration [s]
voltage_start (artiq.compiler.types.TMono('float', OrderedDict())) -- initial voltage [V]
voltage_end (artiq.compiler.types.TMono('float', OrderedDict())) -- end voltage [V]
ramp_timestep (artiq.compiler.types.TMono('float', OrderedDict()))
ramp_steps (artiq.compiler.types.TMono('int', OrderedDict([('width', artiq.compiler.types.TValue(32))])))
- set_voltage(voltage)
Set the voltage delivered by the voltage source
- Parameters:
voltage (artiq.compiler.types.TMono('float', OrderedDict())) -- Voltage in V