You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will read PV values for all items listed in the configuration identified by ``configNodeId``. Upon successful
822
+
completion the data is persisted into the database. ``name`` and ``comment`` are optional query parameters and will
823
+
default to the current date/time on the format ``yyyy-MM-dd HH:mm:ss.SSS``.
824
+
825
+
The response is a snapshot object representing the persisted data, see :ref:`Get a snapshot`
826
+
764
827
Server Restore Endpoints
765
828
------------------------
766
829
@@ -885,15 +948,14 @@ Comparisons are performed like so:
885
948
* Table PVs are compared element wise, always using zero tolerance. Tables must be of same dimensions, and data types must match between columns.
886
949
* Enum PVs are compared using zero tolerance.
887
950
888
-
In addition, the ``compareMode`` and ``skipReadback`` together with the presence of a read-back PV value is used to
889
-
determine which value to compare to the stored value:
951
+
The ``compareMode`` and ``tolerance`` are applied to all comparison operations, but can be overridden on each individual
952
+
item in a configuration, see :ref:`Get a configuration`.
953
+
954
+
Equality between a stored value and the live value is determined on each PV like so:
890
955
891
-
* If a read-back PV name has been specified it's live value is compare to the stored value.
892
-
* If a read-back PV name has not been specified, or if ``skipReadback`` is ``true``, then the live value of ``PV Name`` is used to compare to the stored value.
893
-
* Compare mode=ABSOLUTE (default) will apply absolute delta comparison.
894
-
* Compare mode=RELATIVE will apply relative comparison.
895
-
* If an item in the configuration specifies a tolerance of zero, then a tolerance value specified in the API call will be ignored.
896
-
* If the stored value is zero and compareMode is RELATIVE, then live value must also be zero to be treated as equal.
956
+
* If the configuration of a PV does not specify a comparison mode and tolerance, the ``comparisonMode`` and ``tolerance`` request parameters are used. These however are optional and default to ABSOLUTE and zero respectively.
957
+
* The base (reference) value is always the value stored in the value field of a snapshot item object. It corresponds to the ``pvName``` field, i.e. never the ``readbackPvName`` of a configuration item.
958
+
* The live value used in the comparison is either the value corresponding to ``pvName``, or ``readbackPvName`` if specified. The latter can be overridden with the ``skipReadback`` request parameter.
897
959
898
960
Return value: a list of comparison results, one for each PV in the snapshot, e.g.:
0 commit comments