Versions Compared

Key

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

...

Example of LabVIEW code to use at level 1 to unflatten and extract from the 2D-array the two projections of the orbit:

When using other languages, the "unflatten from string" operator is not available; in these cases, you can decode the 2D-array fo
The 2D-array is written in memcached as two I32 numbers that report the number of rows and the number o columns of the 2D-array, followed by a series of DBL numbers (ordered line by line). The following example, reports the 2D representation of a 2-rows, 3-cols array with the values: line 0 = [0,1,2], line 1 = [10,11,12]

Code Block
languagetext
titleExample 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 00010000 0000 00024026 0000 000A0000 0000 000B4028 0000 0000 000C0000