Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The WCM class has two live buffers of acquired data: one for the monitors crossed by the elecrons beam and one for the monitors crossed by the positrons beam.
Each buffer is a LabVIEW 2D-array DBL.

Excerpt

General information on LabVIEW 2D-arrays

LabVIEW 2D-arrays are written in memcached as two I32 numbers (number of rows and number o columns) followed by a series of DBL numbers (ordered row by row). The following example, reports the representation of a 2-rows, 3-cols array with the values: row 0 = [0,1,2], row 1 = [10,11,12]
Example of 2D array (3 columns, 2 rows):

|< #rows >|< #cols >|        a00        |        a01        |        a02        |        a10        |        a11        |        a12        |
                    |                          first row                        |                          last row                         |
|---------|---------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|
 0000 0002 0000 0003 0000 0000 0000 0000 3FF0 0000 0000 0000 4000 0000 0000 0000 4024 0000 0000 0000 4026 0000 0000 0000 4028 0000 0000 0000


Specific information on WCM 2D-arrays

In the WCM class case, the two 2-D arrays dimesions are: #rows = 4, #cols=9, so both arrays begin with:

...