From version < 6.1
edited by Matej Durcik
on 2022/05/17 14:37
To version 1.1 >
edited by Michael Sibayan
on 2022/05/03 16:48
Change comment: Imported from XAR

Summary

Details

Icon Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.mdurcik
1 +XWiki.msibayan
Content
... ... @@ -1,6 +1,4 @@
1 -{{warning}}
2 -As of January 2016 the Measurement File format has been changed from the old tab delimited variables, to the new JSON format.
3 -{{/warning}}
1 +{{warning}}As of January 2016 the Measurement File format has been changed from the old tab delimited variables, to the new JSON format.{{/warning}}
4 4  
5 5  
6 6  The "Measurement File" or "m-file" is an ASCII text, human readable, JSON format file which holds information pertaining to a measurement or group of measurements. In general, a measurement file will hold all data from sensors sampled at a particular time (i.e. - measure a group of five thermocouples at 11:30am on Dec. 1, 2012). However, it is not limited to this, as one could group a single sensor, or even a group of sensors, over an extended period of time. The format of this file is a JSON array of JSON objects containing information about the sensor and it's measurement.
... ... @@ -7,7 +7,7 @@
7 7  
8 8  Below is an example of a sensor named "MySensor" that measures speed and direction with raw measurements of voltage and counts.
9 9  
10 -{{code language="<JSON>"}}
8 +> {{code language="<Apache"}}
11 11  [{"sensorcode":"MySensor","sensorid":102,"variablecode":"Volts","variableid":1,"value":1.54,"units":"V","DateTime":"2016-03-18 19:00:00"}
12 12  ,{"sensorcode":"MySensor","sensorid":102,"variablecode":"Direction","variableid":3,"value":224,"units":"Degrees","DateTime":"2016-03-18 19:00:00"}
13 13  ,{"sensorcode":"MySensor","sensorid":102,"variablecode":"Counts","variableid":1,"value":6,"units":"#","DateTime":"2016-03-18 19:00:00"}
... ... @@ -16,7 +16,6 @@
16 16  {{/code}}
17 17  
18 18  Useful fields:
19 -
20 20  * SensorCode - Unique name of a sensor (string)
21 21  * VariableCode - Unique name of a variable (string)
22 22  * Value - Numeric value of the measurement (float)
... ... @@ -28,10 +28,9 @@
28 28  * DBID - The user account that manages the sensor information (string)
29 29  * DataTable - The table within the schema to which data is stored (string)
30 30  
31 -{{info}}
32 -The information below is provided for reference and is no longer the standard format.
33 -{{/info}}
34 34  
29 +{{info}}The information below is provided for reference and is no longer the standard format.{{/info}}
30 +
35 35  The "Measurement File" or "m-file" is an ASCII text, human readable, tab-delimited file which holds information pertaining to a measurement or group of measurements. In general, a measurement file will hold all data from sensors sampled at a particular time (i.e. - measure a group of five thermocouples at 11:30am on Dec. 1, 2012). However, it is not limited to this, as one could group a single sensor, or even a group of sensors, over an extended period of time.
36 36  
37 37  **The measurement file has strict conventions. Measurement files uploaded to the LEO Data Server must follow these guidelines**
... ... @@ -49,8 +49,6 @@
49 49  
50 50  The current convention for file naming is “DeviceName_TimeStamp.txt”, and example filename is “cRIO-LEO-Center-P01_20131121173002.txt” for a device named “cRIO-LEO-Center-P01” and a timestamp 2013/11/21 at 17:30:02. An example of the file contents for a measurement file containing data for 8 sensors with 14 data points is shown below:
51 51  
52 -
53 -
54 54  |(((
55 55  2013-11-21 17:30:01 LEO-C_10_-4_4_GMM222 0.121902 341.325300
56 56  2013-11-21 17:30:01 LEO-C_10_4_4_GMM222 0.142809 399.866131
... ... @@ -61,5 +61,3 @@
61 61  2013-11-21 17:30:01 LEO-C_6_-4_1_TCAV 23.783472
62 62  2013-11-21 17:30:01 LEO-C_6_0_1_TCAV 23.336414
63 63  )))
64 -
65 -
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 13.10.5 - Documentation