base_afg_source_channel
¶
Base AFG source channel module.
BaseAFGSourceChannel
¶
Bases: BaseSourceChannel, ABC
Base AFG source channel.
| Parameters: |
|---|
add_method
classmethod
¶
add_method(method: Callable[Concatenate[Self, _P], _T]) -> None
Add a method to the class.
This class method is best used as a decorator on functions in order to add them to a class.
Examples:
>>> from tm_devices.drivers.device import Device
>>>
>>> @Device.add_method
... def print_hello(self: Device, var: str):
... print("Hello World!")
... print(f"I am a {self.__class__.__name__}!")
... print(f"My var is {var}")
| Parameters: |
|
|---|
add_property
classmethod
¶
add_property(method: Callable[Concatenate[_EM, _P], _T]) -> None
add_property(
method: None = None, /, *, is_cached: bool = False
) -> Callable[[Callable[Concatenate[_EM, _P], _T]], None]
add_property(
method: Callable[[Self], _T] | None = None, /, *, is_cached: bool = False
) -> Callable[[Callable[[Self], _T]], None] | None
Add a property to the class.
This class method is best used as a decorator on functions in order to add them to a class.
Examples:
>>> from tm_devices.drivers.device import Device
>>>
>>> @Device.add_property
... def foo(self: Device):
... return "bar"
>>>
>>> @Device.add_property(is_cached=True)
... def foo(self: Device):
... return self.name + self.address
| Parameters: |
|---|
set_amplitude
abstractmethod
¶
set_burst_count
abstractmethod
¶
set_burst_count(value: int) -> None
Set the number of wavelengths to be generated when the source channel is set to burst.
| Parameters: |
|
|---|
set_frequency
abstractmethod
¶
set_function
abstractmethod
¶
set_function(value: SignalGeneratorFunctionBase) -> None
Set the function to output on the source channel.
| Parameters: |
|
|---|
set_function_properties
abstractmethod
¶
set_function_properties(
frequency: float,
function: SignalGeneratorFunctionBase,
amplitude: float,
offset: float,
burst_count: int = 0,
termination: Literal["FIFTY", "HIGHZ"] = "FIFTY",
duty_cycle: float = 50.0,
polarity: Literal["NORMAL", "INVERTED"] = "NORMAL",
symmetry: float = 100.0,
) -> None
Set the given parameters on the provided source channel.
| Parameters: |
|
|---|
set_offset
abstractmethod
¶
set_ramp_symmetry
abstractmethod
¶
set_ramp_symmetry(value: float) -> None
Set the symmetry of the ramp waveform on the source channel.
| Parameters: |
|
|---|