fastcs.attributes.attr_w#
Members
Callbacks to be called when the setpoint of an attribute is changed |
|
Callbacks to be called when the setpoint of an attribute is changed |
|
A write-only |
- fastcs.attributes.attr_w.AttrOnPutCallback#
Callbacks to be called when the setpoint of an attribute is changed
alias of
Callable[[AttrW[DType_T, Any],DType_T],Awaitable[None]]
- fastcs.attributes.attr_w.AttrSyncSetpointCallback#
Callbacks to be called when the setpoint of an attribute is changed
- class fastcs.attributes.attr_w.AttrW(datatype: DataType[DType_T], io_ref: AttributeIORefT | None = None, group: str | None = None, description: str | None = None)[source]#
A write-only
Attribute.- async put(setpoint: DType_T, sync_setpoint: bool = False) None[source]#
Set the setpoint of the attribute
This should be called by clients to the attribute such as transports to apply a change to the attribute. The
_on_put_callbackwill be called with this new setpoint, which may or may not take effect depending on the validity of the new value. For example, if the attribute has an IO to some device, the value might be rejected.To directly change the value of the attribute, for example from an update loop that has read a new value from some underlying source, call the
updatemethod.