Note
Ophyd.v2 is included on a provisional basis until the v2.0 release and may change API on minor release numbers before then
ophyd.v2.epics.ChannelSim#
- class ophyd.v2.epics.ChannelSim(pv: str, datatype: Type[T])#
Bases:
Channel
[T
]Methods
Connect to PV
Metadata like source, dtype, shape, precision, units
The current value, timestamp and severity
The current value
Observe changes to the current value, timestamp and severity.
Put a value to the PV, if wait then wait for completion
Set the simulated value, and set timestamp to now
Attributes
Like ca://PV_PREFIX:SIGNAL, or None if not set
- async connect()#
Connect to PV
- Raises:
NotConnected
if cancelled
- async get_descriptor() Descriptor #
Metadata like source, dtype, shape, precision, units
- async get_value() T #
The current value
- monitor_reading_value(callback: Callable[[Reading, T], None]) Monitor #
Observe changes to the current value, timestamp and severity.
- async put(value: T, wait=True)#
Put a value to the PV, if wait then wait for completion