rf_transmitter#
- class ConfigModel(*, name, description=None, lattice_names=None, voltage=None, phase=None, cavities, harmonic=1.0, distribution=1.0)[source]#
Bases:
ElementConfigModelConfiguration model for RF Transmitter.
- voltage#
Device to apply cavity voltage
- Type:
DeviceAccess or None, optional
- phase#
Device to apply cavity phase
- Type:
DeviceAccess or None, optional
- distribution#
RF distribution (Part of the total RF voltage powered by this transmitter), by default 1.0
- Type:
float, optional
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- phase: DeviceAccess | None#
- voltage: DeviceAccess | None#
- class RFTransmitter(cfg)[source]#
Bases:
ElementClass that handle a RF transmitter
- attach(peer, voltage, phase)[source]#
Attach voltage and phase attributes to a peer.
- Parameters:
peer (object) – The peer object (simulator or control system)
voltage (abstract.ReadWriteFloatScalar) – Voltage accessor to attach
phase (abstract.ReadWriteFloatScalar) – Phase accessor to attach
- Returns:
Self – A new attached instance of RFTransmitter
- property phase: ReadWriteFloatScalar#
Get the RF phase in [rad].
- Returns:
abstract.ReadWriteFloatScalar – Read/write access to RF phase
- Raises:
PyAMLException – If transmitter is unattached or has no phase device defined
- property voltage: ReadWriteFloatScalar#
Get the RF voltage in [V].
- Returns:
abstract.ReadWriteFloatScalar – Read/write access to RF voltage
- Raises:
PyAMLException – If transmitter is unattached or has no voltage device defined