@@ -34,35 +34,35 @@ Proposal
3434It is proposed to add three new interface classes.
3535
3636
37- ``MeasurableController `` (no base interface)
38- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37+ ``Controller `` (no base interface)
38+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3939
4040Accessibles:
4141
4242``status ``
4343 Mandatory: Standard SECoP status.
4444 The module is in ``BUSY `` state while the measurable is acquiring.
45- The module is in ``PREPARED `` state after ``prepare() `` is called or data
46- acquisition is paused by ``hold() ``.
45+ The module is in ``PREPARED `` state after ``prepare `` is called or data
46+ acquisition is paused by ``hold ``.
4747
48- ``prepare() ``
48+ command ``prepare ``
4949 Optional command: prepares a data acquisition so that triggering with ``go ``
5050 is immediate. No-op if already prepared. Cannot be called when busy.
5151
52- ``go() ``
52+ command ``go ``
5353 Mandatory command: starts a data acquisition. No-op if busy.
5454 Data acquisition runs until one of the channels' active presets is hit or
55- ``stop `` is called explicitly. Runs the ``prepare() `` sequence first if
55+ ``stop `` is called explicitly. Runs the ``prepare `` sequence first if
5656 module is not already prepared.
5757
58- ``hold() ``
58+ command ``hold ``
5959 Optional command: pauses a data acquisition. No-op if not busy.
60- Subsequent ``go() `` continues the acquisition without clearing currently
60+ Subsequent ``go `` continues the acquisition without clearing currently
6161 acquired data.
6262
63- ``stop() ``
63+ command ``stop ``
6464 Optional command: stops a data acquisition. No-op if not busy.
65- Subsequent ``go() `` starts a new acquisition with clearing currently
65+ Subsequent ``go `` starts a new acquisition with clearing currently
6666 acquired data.
6767
6868
@@ -116,10 +116,10 @@ Accessibles:
116116``roi ``
117117 Optional: a list containing a ``(min, max) `` tuple per dimension, to specify
118118 a sub-slice of matrix data to consider in ``value `` and return in
119- ``get_data() ``.
119+ ``get_data ``.
120120
121- ``get_data() ``
122- Optional: returns the channel's matrix data, see below for details .
121+ command ``get_data ``
122+ Optional: returns the channel's data, with a `` matrix `` data type .
123123
124124The ``value `` parameter only contains a useful "reduced" form of the data, for
125125example, the sum of all events in the matrix, or the average of all intensity
@@ -135,38 +135,6 @@ data is considered for this reduction.
135135 useful (i.e. not just "pixel 1..N"). (Precise semantics to be specified.)
136136
137137
138- The return value of ``get_data() ``
139- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140-
141- Since the returned data matrix can get pretty large, it is not efficient to
142- encode it as nested ``Array ``\s . Instead, the data is kept in Blob form
143- (base64-encoded for JSON transmission).
144-
145- The return value is a struct, where the following members are currently
146- specified:
147-
148- - ``data ``: The data as a ``Blob ``, whose datainfo must have these additional
149- properties:
150-
151- - ``elementtype ``: The type (and size, and byte order) of each matrix element,
152- a string in Numpy convention (e.g. ``"<u4" ``).
153- - ``names ``: A list of names for each dimension
154- - ``maxlengths ``: A list of maximum lengths for each dimension
155-
156- - ``dims ``: An array containing the actual lengths of each dimension.
157-
158- The order of the matrix elements is defined so that the dimension with the
159- fastest running index comes first in ``dims ``, ``names `` and ``maxlengths ``.
160-
161- Example: ``data `` is ``[1, 2, 3, 4, 5, 6] ``, ``dims `` is ``[2, 3] `` and
162- ``names `` is ``["x", "y"] ``. Then the matrix looks as follows::
163-
164- . x=0 x=1
165- y=0 1 2
166- y=1 3 4
167- y=2 5 6
168-
169-
170138Remarks
171139~~~~~~~
172140
0 commit comments