caproto.server.get_pv_pair_wrapper

caproto.server.get_pv_pair_wrapper(setpoint_suffix: str = '', readback_suffix: str = '_RBV')[source]

Generates a Subgroup class for a pair of PVs (setpoint and readback).

If no put method is defined for the setter, a default will be specified which updates the readback value on write.

Startup, shutdown, and scan hooks will be configured on the readback instance.

Parameters:
setpoint_suffixstr, optional

The suffix for the setpoint PV

readback_suffixstr, optional

The suffix for the readback PV

Returns:
wrappercallable

A wrapper that creates a SubGroup. It accepts all arguments used for PVSpec (or pvproperty). Additionally, keywords meant only for the setpoint or readback classes may be specified using setpoint_kw or readback_kw, respectively.