Changes between Version 3 and Version 4 of Old/CollectMeasurements
- Timestamp:
- Sep 30, 2005, 5:30:37 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Old/CollectMeasurements
v3 v4 3 3 The '''ORBIT Measurement Framework (OML)''' was discussed in the first section of this tutorial as one of the ORBIT Services. It is a distributed software framework enabling real-time collection of data, and, as such, has a client application programming interface (API). A developer can use this client API through a web interface to define the measurement points and parameters for his or her application. Measurement points and their frequency of collection are an important part of ones experimental plan. 4 4 5 The definition of a measurement point is illustrated in Figure 12 below. Measurement point definitions are saved as an XML-based configuration file, and source code for the measurement client is automatically generated that contains application-specific methods that handle type-safe data collection. This source code can be compiled and linked with the application as illustrated by a Makefile in Figure 13 and sample application code in Figure 14 below. 6 5 The definition of a measurement point is shown below. 7 6 {{{ 8 7 <measurement-points> … … 17 16 }}} 18 17 19 Figure 12. Defining Measurement Points 18 Measurement point definitions are saved as an XML-based configuration file, and source code for the measurement client is automatically generated that contains application-specific methods that handle type-safe data collection. This source code can be compiled and linked with the application as illustrated by a Makefile and sample application code below. 19 20 '''Makefile and include file for Measurement Points''' 20 21 21 22 {{{ … … 25 26 wget -q http://www.orbit-lab.org/oml/client_wrapper\ 26 27 --post-file $< -O - \ 27 | tar -C $(BUILD_DIR) -xzf 28 | tar -C $(BUILD_DIR) -xzf 28 29 oml_foo.h: 29 30 int oml_group1(float rssi, float noise); … … 31 32 }}} 32 33 33 Figure 13. Makefile and include file for Measurement Points34 34 35 '''Application Code Sample''' 35 36 {{{ 36 37 oml_init(&argc, &argv, NULL); … … 48 49 }}} 49 50 50 Figure 14. Application Code Sample 51 52 Because not all measurements are needed and not all measurement samples are needed, '''OML''' supports preprocessing or filtering at source to reduce the amount of reported and recorded data. Filters are defined by experimenter, and experimenter-provided filters are supported. Figure 1. below illustrates the client-side data flow. Collection of and access to the recorded data requires the use of a database schema. '''OML''' automatically generates the appropriate schema as diagrammed in Figure 16 below. 51 Because not all measurements are needed and not all measurement samples are needed, '''OML''' supports preprocessing or filtering at source to reduce the amount of reported and recorded data. Filters are defined by experimenter, and experimenter-provided filters are supported. Figure 1. below illustrates the client-side data flow. Collection of and access to the recorded data requires the use of a database schema. '''OML''' automatically generates the appropriate schema as diagrammed in Figure 2 below. 53 52 54 53 [[Image(clientsidedataflow.PNG)]]