Note
Ophyd async is considered experimental until the v1.0 release and may change API on minor release numbers before then
ophyd_async.tango.core
#
Members
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Create a |
|
Create a |
|
Create a |
|
Create a |
|
General class for TangoDevices. |
|
General class for readable TangoDevices. |
|
- ophyd_async.tango.core.tango_signal_r(datatype: type[SignalDatatypeT], read_trl: str, device_proxy: DeviceProxy | None = None, timeout: float = 10.0, name: str = '') SignalR[SignalDatatypeT] [source]#
Create a
SignalR
backed by 1 Tango Attribute/Command- Parameters:
datatype – Check that the Attribute/Command is of this type
read_trl – The Attribute/Command to read and monitor
device_proxy – If given, this DeviceProxy will be used
timeout – The timeout for the read operation
name – The name of the Signal
- ophyd_async.tango.core.tango_signal_rw(datatype: type[SignalDatatypeT], read_trl: str, write_trl: str = '', device_proxy: DeviceProxy | None = None, timeout: float = 10.0, name: str = '') SignalRW[SignalDatatypeT] [source]#
Create a
SignalRW
backed by 1 or 2 Tango Attribute/Command- Parameters:
datatype – Check that the Attribute/Command is of this type
read_trl – The Attribute/Command to read and monitor
write_trl – If given, use this Attribute/Command to write to, otherwise use read_trl
device_proxy – If given, this DeviceProxy will be used
timeout – The timeout for the read and write operations
name – The name of the Signal
- ophyd_async.tango.core.tango_signal_w(datatype: type[SignalDatatypeT], write_trl: str, device_proxy: DeviceProxy | None = None, timeout: float = 10.0, name: str = '') SignalW[SignalDatatypeT] [source]#
Create a
SignalW
backed by 1 Tango Attribute/Command- Parameters:
datatype – Check that the Attribute/Command is of this type
write_trl – The Attribute/Command to write to
device_proxy – If given, this DeviceProxy will be used
timeout – The timeout for the write operation
name – The name of the Signal
- ophyd_async.tango.core.tango_signal_x(write_trl: str, device_proxy: DeviceProxy | None = None, timeout: float = 10.0, name: str = '') SignalX [source]#
Create a
SignalX
backed by 1 Tango Attribute/Command- Parameters:
write_trl – The Attribute/Command to write its initial value to on execute
device_proxy – If given, this DeviceProxy will be used
timeout – The timeout for the command operation
name – The name of the Signal
- class ophyd_async.tango.core.TangoDevice(trl: str | None = None, device_proxy: DeviceProxy | None = None, support_events: bool = False, name: str = '')[source]#
General class for TangoDevices. Extends Device to provide attributes for Tango devices.
- Parameters:
trl (str) – Tango resource locator, typically of the device server.
device_proxy (Optional[Union[AsyncDeviceProxy, SyncDeviceProxy]]) – Asynchronous or synchronous DeviceProxy object for the device. If not provided, an asynchronous DeviceProxy object will be created using the trl and awaited when the device is connected.
- class ophyd_async.tango.core.TangoReadable(trl: str | None = None, device_proxy: DeviceProxy | None = None, name: str = '')[source]#
General class for readable TangoDevices. Extends StandardReadable to provide attributes for Tango devices.
Usage: to proper signals mount should be awaited: new_device = await TangoDevice(<tango_device>)
- proxy#
AsyncDeviceProxy object for the device. This is created when the device is connected.
- Type:
AsyncDeviceProxy