Skip to content

Commit eab7795

Browse files
committed
readback detail
1 parent 2912754 commit eab7795

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scan/commands/set.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ class Set(Command):
105105
for a PV without knowing how it is implemented on the IOC, so the
106106
choice of completion, readback and timeout needs to be configured by somebody
107107
who knows the PV's behavior.
108+
109+
The readback can be used in several ways.
110+
`readback=True` checks if the written PV has the written value.
111+
`readback='SomeOtherPV'` checks if some other PV, for example the '.RBV' of a motor, has the written value.
112+
By adding `readback_value=42` the command checks if the readback, i.e. either the written PV or
113+
an alternate readback PV, has the provided value. This is typically used to check if some 'status' PV
114+
indicates 'OK' after writing.
108115
"""
109116

110117
def __init__(self, device, value, completion=False, readback=False, readback_value=None, tolerance=0.0, timeout=0.0, errhandler=None):

0 commit comments

Comments
 (0)