Gulf Coast Data Concepts X16-5 User manual

X16-5
USB Accelerometer
Data Logger
User Manual

Table of Contents
1 Introduction..........................................................................................................................................1
1.1 About This Manual..................................................................................................................1
1.2 Document Conventions............................................................................................................1
1.3 Appendix..................................................................................................................................1
1.4 Product ummary.....................................................................................................................2
1.5 Feature List..............................................................................................................................2
1.6 Items Included with X16-5......................................................................................................3
1.6.1 ingle Unit Purchase..........................................................................................................3
1.6.2 5 Unit Kit...........................................................................................................................3
1.7 Component Names...................................................................................................................4
1.8 Quick tart Guide....................................................................................................................5
2 Operation..............................................................................................................................................7
2.1 U B Interface...........................................................................................................................7
2.2 Memory Card...........................................................................................................................7
2.3 Battery......................................................................................................................................8
2.3.1 Expected Battery Life........................................................................................................8
2.3.2 Power aving trategies....................................................................................................9
2.4 etting The RTC.......................................................................................................................9
2.5 tatus Indicators.....................................................................................................................10
2.6 ystem Configuration Options...............................................................................................11
2.6.1 absoluteTime....................................................................................................................12
2.6.2 deadBand..........................................................................................................................12
2.6.3 deadBandTimeOut...........................................................................................................12
2.6.4 dirName............................................................................................................................12
2.6.5 disableCharger.................................................................................................................13
2.6.6 dwell.................................................................................................................................13
2.6.7 fileName...........................................................................................................................13
2.6.8 minBattVoltage................................................................................................................13
2.6.9 rebootOnDisconnect........................................................................................................13
2.6.10 samplesPerFile.................................................................................................................14
2.6.11 sampleRate.......................................................................................................................14
2.6.12 stopOnVusb......................................................................................................................14
2.6.13 statusIndicators................................................................................................................14
2.6.14 wakeUpTime....................................................................................................................14
2.7 Example Configuration Files.................................................................................................15
2.7.1 Example A........................................................................................................................15
2.7.2 Example B........................................................................................................................15
2.7.3 Example C........................................................................................................................16
3 Data Interpretation.............................................................................................................................16
3.1 Data Files...............................................................................................................................16
3.2 Data Format...........................................................................................................................16
3.3 Data Conversion.....................................................................................................................17
3.3.1 Time tamps: Relative Mode...........................................................................................17
3.3.2 Time tamps: Absolute Mode..........................................................................................18
A

3.3.3 Acceleration.....................................................................................................................18
4 ystem Details...................................................................................................................................19
4.1 ensor.....................................................................................................................................19
4.1.1 ensor pecial Features...................................................................................................20
4.2 Operating and torage Conditions.........................................................................................20
4.3 Dimensions............................................................................................................................21
5 Troubleshooting.................................................................................................................................22
6 Appendix............................................................................................................................................24
6.1 What is an Accelerometer......................................................................................................24
6.2 Using “R” to Analyze Data....................................................................................................26
6.2.1 What is “R”......................................................................................................................26
6.2.2 Introduction to R Commands...........................................................................................27
6.2.3 Online Resources for R....................................................................................................28
6.2.4 Example cripts in R.......................................................................................................29
Inde of Figures
Figure 1: X16-5 Data Logger.....................................................................................................................2
Figure 2: X16-5 and Accessories...............................................................................................................3
Figure 3: 5 Unit kit of Loggers..................................................................................................................3
Figure 4: X16-5 Data Logger Components...............................................................................................4
Figure 5: Exploded View of the X16-5......................................................................................................4
Figure 6: Connecting to PC........................................................................................................................5
Figure 7: Editing the Config.txt File..........................................................................................................5
Figure 8: tarting the X16-5......................................................................................................................6
Figure 9: ensor Orientation......................................................................................................................7
Figure 10: Expected Battery Life...............................................................................................................8
Figure 11: Example Time Entry in time.txt File......................................................................................10
Figure 12: LED tatus Indicators............................................................................................................10
Figure 13: Graphical Illustration of the Deadband Feature.....................................................................12
Figure 14: Graphical Illustration of the Dwell Feature............................................................................13
Figure 15: Configuration File Example A...............................................................................................15
Figure 16: Configuration File Example B...............................................................................................15
Figure 17: Configuration File Example C...............................................................................................16
Figure 18: Example Data File..................................................................................................................17
Figure 19: Time tamp Conversion Method............................................................................................17
Figure 20: 800Hz ample Configuration.................................................................................................20
Figure 21: Enclosure Dimensions (inches)..............................................................................................21
Figure 22: pring-mass Accelerometer....................................................................................................24
Figure 23: implified MEM Accelerometer Design (L) and Actual MEM Accelerometer (R)..........25
Figure 24: R Command Line Interface....................................................................................................26
Figure 25: R tudio Interface....................................................................................................................27
Inde of Tables
Table 1: Configuration File Tags and Descriptions..................................................................................11
Table 2: Example Data Conversion.........................................................................................................18
Table 3: Accelerometer ensor Characteristics........................................................................................19
Table 4: Operating and torage Conditions.............................................................................................21
B

1 Introduction
1.1 About This Manual
Thank you for purchasing the X16-5 accelerometer data logger. Gulf Coast Data Concepts spent
considerable efforts developing an easy to use data logger for the scientific researcher, student, or
hobbyist. Please read this manual to understand the operation and capabilities of the X16-5. If the
logger fails to operate as expected, please refer to the troubleshooting guide (page 22).
1.2 Document Conventions
The quick start guide in section 1.8 provides a basic summary of operation to begin using the X16-5
data logger. This user manual continues into further details of configurations and capabilities starting
in section 2. Each section also presents relevant tips and warnings to help the user.
This icon indicates a helpful tip that may enhance the performance of the logger or aide in
the application of the logger.
This icon indicates a warning, restriction, or limitation that the user should be aware of
regarding the logger operation.
1.3 Appendi
The appendices to this document include several educational discussions regarding accelerometers
(section 6.1) as well as software and analysis procedures (section 6.2). These short discussions will
help new users learn about the X16-5 and how to use the data.
Gulf Coast Data Concepts Page 1 X16-5, Rev New

1.4 Product Summary
The X16-5 is a low cost and compact self-recording accelerometer data logger. Data from the digital 3-
axis accelerometer sensor is time stamped using a real time clock and stored to a micro D card in
simple text format. When connected via the U B to a personal computer, the X16-5 appears as a
standard mass storage device containing the comma delimited data files and the user setup file. The
X16-5 includes an internal 500mAh lithium-polymer rechargeable battery, which will recharge using
U B power.
1.5 Feature List
•3-axis ±16g accelerometer
•16-bit resolution
•User selectable sample rate of 12, 25, 50, 100, 200, 400 Hertz
•Finite Impulse Response filter
•Accurate time stamped data using Real Time Clock (RTC)
•Convenient on/off button
•Data recorded to a removable micro D card (8GB included)
•Easily readable comma separated text data files
•Data transfer compatible with Windows or Linux via Universal erial Bus (U B) interface (no
special software required)
•Operates from internal lithium-polymer rechargeable battery
•Weight 1.3oz (48g)
•ize 1x1x4.1 inch (26x26x104 mm)
Gulf Coast Data Concepts Page 2 X16-5, Rev New

1.6 Items Included with X16-5
1.6.1 Single Unit Purchase
The X16-5 is packaged with the logger, a USB extender cable, and a screwdriver.
1.6.2 5 Unit Kit
kit includes 5 X16-5 loggers, a USB extender cable, and a screwdriver.
Gulf Coast Data Concepts Page 3 X16-5, Rev New

1.7 Component Names
A Type-A U B connector H Enclosure top
B Blue LED status indicator I Enclosure bottom
C Red LED data indicator J Enclosure cap
D Red LED charge indicator K Enclosure hinge
E 500mAh Battery Pack L #6-32 3/4” screw
F On/Off button M #6 nut
G Micro D card (under wrap) N ADXL345 sensor
Gulf Coast Data Concepts Page 4 X16-5, Rev New
Figure 5: E ploded View of the X16-5
!"#$
!#$
!%$
&'&(
)*+

1.8 Quick Start Guide
The X16-5 is a simple, economical solution to capture continuous motion data and quickly deliver the
information for analysis. The following instructions outline the steps to begin using the X16-5.
Configuration settings and mounting methods will depend on the particular application.
tep 1: Plug the X16-5 into a computer and allow the computer operating system to register the
device as a Mass torage Device. Notice that the logger will mount with a drive label
using the last digits of the serial number. A red LED located on the bottom side will
indicate the battery is charging. The LED will turn off when the battery is fully charged,
which takes about 2 hours.
tep 2: Configure the X16-5 by editing the appropriate tags in the config.txt file using a simple
text editor. In Windows, do not use Notepad as the editor does not terminate new lines
properly. GCDC recommends Windows Wordpad or Notepad++ to edit the config.txt
file. Refer to section 2.6 for a complete list of configuration options.
Gulf Coast Data Concepts Page 5 X16-5, Rev New
Figure 6: Connecting to PC
Figure 7: Editing the Config.t t File

tep 3: If necessary, initialize the RTC clock by creating a time.txt file (see section 2.4). Once
the time.txt file is saved, immediately unplug the logger to start the initialization
process. The logger will load the time.txt file, initialize the clock, and delete the time.txt
file. Initializing the RTC ensures the data files include the correct year, month, and day
and that the data samples can be correlated to a specific date and time.
tep 4: After removing from the U B port, attach the X16-5 logger to the target object. The
logger is small and light weight so double-sided tape, Velcro, or a spot of cyanoacrylate
glue are sufficient methods of attachment.
tep 5: Press the on/off button located at the rear of the enclosure to initiate data recording, (see
Figure 8). Logging will start about 3-5 seconds after pressing the button. The red LED
will blink as the configuration file is accessed. If the time.txt file is present, the RTC is
initialized with the time written in the file. Then, the blue LED will begin to blink at a 1
second interval indicating the system is operating. The red LED will blink periodically
as data is written to the micro D card.
tep 6: To stop recording, press and hold the button for about 3 seconds. The red and blue
LEDs will begin to blink rapidly for 2 seconds and then turn off. Release the button and
the X16-5 turns off. Pressing the button again restarts the logger and data is recorded to
a new file.
tep 7: Plug the logger into a PC and allow the logger to mount as a U B drive. The data files
will appear in the “GCDC” directory.
tep 8: The data recorded to the files must be converted to determine acceleration in “g” units.
Divide the Ax, Ay, Az columns by 2048 to determine g units. ee section 3.3 for a
complete discussion of data conversion.
Gulf Coast Data Concepts Page 6 X16-5, Rev New
Figure 8: Starting the X16-5
The X16-5 is small and light weight so attachment methods do not need to be substantial.
Double-sided tape, a spot of cyanoacrylate glue (contact cement , zip-ties, magnetic base,
or adhesive putty are example methods of attachment. These methods do not cause
adverse signal attenuation considering the relatively low frequency bandwidth of the X16-5
logger. Command Poster Adhesive strips by 3M offer excellent temporary attachment of
the logger to most surfaces.

2 Operation
2.1 USB Interface
The X16-5 connects to a PC using a standard Type-A U B connector and supports the U B mass
storage device interface for file access and file transfers. Nearly all computer operating systems
recognize the X16-5 as a typical U B external memory drive. Therefore, the X16-5 will allow file
transfers to the micro D card like a common U B flash drive. When connected to a PC, the X16-5
deactivates logging and operates only as a U B interface to the micro D card. Note that some tablet
operating systems block access to U B mass storage devices and will not recognize the X16-5.
2.2 Memory Card
The X16-5 stores data to a removable micro D flash memory card located beneath the white plastic
wrap. The included 8GB card is sufficient for most applications so the card does not need to be
removed or upgraded. However, the plastic wrap can be cut away to allow access to the card. The
logger uses FAT32 and is compatible with micro D and mico DHC type cards.
The logger needs only the config.txt file to operate. The X16-5 will use default configuration settings
if the config.txt is not present. The “config.txt” and “time.txt” files must occur in the root directory
(see section 2.6 and section 2.4). The X16-5 will create a data folder to place the data files.
Gulf Coast Data Concepts Page 7 X16-5, Rev New
Interrupting the power to the logger can result in corruption of the microSD card. For
example, removing the logger from the USB port during file transfers to the PC or
removing the battery during logging activity. Reformat the card if it becomes corrupted
(FAT32 file structure . If data transfers to/from the card become slow, consider formatting
the card using “SD Card Formatter” software provided by the SD Association
(www.sdcard.org .
Figure 9: Sensor Orientation
+X
+Z
+Y
The standard 8GB memory card included with the X16-5 logger uses multi-level cell NAND
flash technology. MLC achieves higher memory density at the expense of power
consumption. Figure 9 illustrates the expected battery performance using the 8GB MLC
card. The battery performance can nearly double using a single-level cell type microSD
card, which is commonly found in cards <4GB.

2.3 Battery
The X16-5 is powered by an internal 500mAh lithium-polymer rechargeable battery pack. The internal
battery management system recharges the battery when the X16-5 is plugged into a U B port or
attached to a U B 5v power adapter. The red charge indicator LED turns on (see ection 2.5) when the
battery is charging and off when the battery reaches full charge. The battery is not used when the
system is connected to a computer U B port.
The RTC continues to operate from the battery when the device is “off”. The RTC should be
reinitialized if the battery is removed or completely depleted (see ection 2.4).
2.3.1 E pected Battery Life
The battery provides approximately 7 hours of operation sampling at 400 Hz with the deadband set to
zero (maximum data recording capability). Operating time increases with lower sample rates. Figure
10 illustrates the expected continuous logging time versus sample rate.
Figure 10: E pected Battery Life
Gulf Coast Data Concepts Page 8 X16-5, Rev New
A 5v supply via the USB connector provides extended operation of the device independent
of the internal battery. The logger does not implement power saving features when
connected to an external power supply so power consumption will be higher than using the
internal battery.

2.3.2 Power Saving Strategies
Write operations to the mirco D card is the most significant power drain to the battery. witching the
micro D card to LC type memory will nearly double the operating time of the logger. Finding LC
type micro D cards is very difficult since the flash memory industry has moved to MLC. However,
there are several feature configurations that will reduce power consumption and help extend the battery
life.
•Use the deadBand feature to reduce the recorded data. ince the micro D card is the most
significant power draw, then reducing the data writes will translate into much better battery life.
For example, setting the deadBand=1024 will keep the logger from writing data to a file when
motion is less than 0.5g. Reducing the data by 20% can increase the battery life by 30%.
•Turn off the over-sample/FIR filter feature using the “filterOff” option. This will reduce the
power consumption by about 20% at the expensive of lower effective resolution (see the
discussion in section 4.1.1)
2.4 Setting The RTC
A real time clock (RTC) integrated into the X16-5 determines the time for each line of data recorded.
The RTC is initialized using a user-created text file named “time.txt” that is loaded by the logger upon
booting. The time file method of setting the RTC does not require special communication drivers, so it
can be implemented using a simple text editor. Direct initialization of the RTC is possible but requires
specific device drivers and software from Gulf Coast Data Concepts.
Initializing the RTC with a time.txt file is accomplished as follows:
tep 1: Use Wordpad, or an equivalent text editor, to create a simple text file called
“time.txt”.
tep 2: Enter on the first line the current date and time as “yyyy-MM-dd HH:mm:ss” in
24-hr format. Figure 11 provides an example time.txt file that will initialize the
RTC to 2:26:30 pm June 16, 2014.
tep 3: ave this file to the root directory of the micro D card (same location as the
config.txt file) and close the text editor.
tep 4: Remove the logger form the PC. The logger will automatically find the time.txt
file and intialize the RTC with the time stored in the file. The file is deleted after
initialization.
The RTC maintains ±50ppm accuracy (-40°C to +85°C), which means that the accuracy may drift
about 4 seconds every day. The RTC is powered by the battery at all times, even when the logger is
“off”.
Gulf Coast Data Concepts Page 9 X16-5, Rev New
The logger is always “on” maintaining the real time clock and will eventually discharge the
battery completely after several months. The completely discharged battery will take
additional time to recharge. Keep in a cool (20°C/ 68°F dry environment to avoid damage
of the battery pack.

2.5 Status Indicators
ystem status is indicated by the two LEDs located near the U B connector. The blue LED indicates
system operation and blinks once per second to indicate a properly operating system. The blue LED
blinks when the X16-5 is recording data, in standby mode, or is connected to a computer via the U B
port. The red LED blinks when data is written or read from the micro D memory card. In data
logging mode, the period at which the red LED blinks depends on the sample rate and other
configuration settings. The LEDs will flicker during user initiated shutdown. The “statusindicators”
tag in the configuration file turns off or changes the brightness of the status indicators (see section
2.6.13). The red charge indicator LED is located on the reverse side of the circuit board and
illuminates when charging is in process (see Figure 12). The charge indicator LED will turn off when
the battery is fully charged. A fully discharged battery will charge in about 2 hours. A blinking charge
indicator LED means there is a problem with the lithium-polymer battery pack.
Gulf Coast Data Concepts Page 10 X16-5, Rev New
Initializing the RTC ensures that the start time and individual time stamps can be
correlated to an absolute time – the year, month, day, hour, minute, second, and fractional
second. An uninitialized RTC or reset of the RTC will lead to indeterminate start time
recorded in the data file header.
After unplugging the logger from the USB port, the logger will load the config.txt file and
time.txt file, if present. Therefore, there is a delay between when the time.txt was created
and when the logger actually loads the time information. For most applications, this simple
method of initializing the clock results in sufficient accuracy.
Figure 11: E ample Time Entry in time.t t File

2.6 System Configuration Options
The X16-5 is configured using a set of tags and settings stored in a text file named “config.txt”, which
is located in the root directory of the micro D card. The logger reads the configuration file at boot
time. Table 1 lists the configuration file tags. Tags that require a setting must be followed by an equal
sign (“=”) and an applicable tag setting. A line finishes with a newline character. Tags are not case
sensitive. Tab and space characters are ignored. Lines starting with a semicolon (“;”) are treated as
comments and ignored by the logger. The logger will use default settings if the config.txt file is not
found.
Table 1: Configuration File Tags and Descriptions
Tag Valid Settings Default Description
absoluteTime - Off Time stamps relative to epoch (Jan 1, 1970)
deadBand An integer between
0 and 16384
0 A new sample is recorded if any sensor axis
exceeds the previous recorded reading by the
deadband value
deadBandTimeOut An integer between
0 and 16384
3 pecifies the period in seconds when a sample is
recorded regardless of the deadband setting
dirName Character text /GCDC Defines directory name to store data files
disableCharger - Off Deactivates the charger circuit to the battery
dwell An integer between
0 and 65535
1 The number of samples recorded after a deadband
threshold triggered event
fileName Character text DATA- File name prefix for the data files
minBattVoltage An integer greater
than 0
3200 set the minimum operating battery voltage (mV)
rebootOnDisconnect - Off The presence of this tag causes the system to start
recording after disconnect from a U B port.
samplesPerFile An integer greater
than 0
90000 The number of lines of data per data file before a
new file is created
sampleRate 12, 25, 50, 100,
200, 400
100 ets the rate at which data is collected and recorded
to the micro D card.
stopOnVusb - Off tops data logging if 5v U B power is present
statusIndicators “Normal”, “High”,
“Off”
Normal LED status indicators can be activated with normal
brightness (Normal), activated with high brightness
(High), or completely deactivated (Off).
wakeUpTime integers Off Activates logger at specific times
Gulf Coast Data Concepts Page 11 X16-5, Rev New
Do not use the Windows Notepad editor because it does not terminate new lines properly.
GCDC recommends Windows Wordpad or Notepad++ to edit the config.txt file.

2.6.1 absoluteTime
By default, the time stamps represent the elapsed seconds since the start_time value listed in the file
header. “absoluteTime” changes the start reference to midnight January 1, 1970, otherwise known as
“epoch” or Unix time 0.
2.6.2 deadBand
“deadBand” defines the minimum difference between recorded sensor readings. A new sample from
the accelerometer sensor must exceed the previous recorded reading before the logger records the data.
The deadBand setting is expressed in "counts" units and is applied to the output of each axis. The
deadband value can be set to an integer between 0 and 16384. The deadBand function is an effective
way to reduce the amount of data collected by defining the granularity of the data.
The deadBand functions as a event threshold limit when used in conjunction with the “dwell” feature.
Figure 13 illustrates the deadBand feature filtering out small changes in acceleration from the recorded
data. Only when the deadBand limit is exceeded will a new data sample be pushed to the file. Note
that this feature will result in samples with inconsistent time periods. Therefore, the data sets should be
re-sampled to establish uniform time periods.
2.6.3 deadBandTimeOut
“deadBandTimeOut” defines the period in seconds when a sample is recorded by the logger regardless
of the deadBand setting. This feature ensures periodic data is recorded during extended periods of
inactivity. A valid setting for the deadBandTimeOut is an integer between 0 and 16384.
2.6.4 dirName
The logger will store data files into the directory defined by “dirName”. The directory must be defined
with a preceding slash, such as “dirName=/GCDC”. By default, the data directory is set to the root
location /GCDC.
Gulf Coast Data Concepts Page 12 X16-5, Rev New
Figure 13: Graphical Illustration of the Deadband Feature

2.6.5 disableCharger
pecialized variations of the X16-5 logger allow a primary non-rechargeable type battery, as opposed
to the standard lithium-polymer rechargeable battery configuration. “disableCharger” deactivates the
charge controller when the logger is attached to a PC or U B power source, which avoids charging a
non-rechargeable battery.
2.6.6 dwell
Use “dwell” together with “deadBand” to create an event trigger configuration. The “dwell” tag
defines the number of consecutive samples recorded at the set sample rate after a deadBand threshold
event. The deadBand threshold event occurs when a sensor reading exceeds the last recorded value by
the deadBand setting. A valid dwell setting is an integer between 0 and 65535. ee section 2.7.2 for an
example implementation of the deadBand/dwell features.
2.6.7 fileName
“fileName” sets the prefix name of the data files. By default, fileName is set to “DATA-”.
2.6.8 minBattVoltage
The logger will initiate a low-battery shutdown when the minBattVoltage is detected. By default, the
minBattVoltage is set to 3200 millivolts. In the case of non-rechargeable type battery configurations,
the minBattVoltage can be set to a custom value to optimize the battery usage. minBattVoltage value is
millivolts.
2.6.9 rebootOnDisconnect
The X16-5 incorporates an on/off button for initiating and terminating the data recording process. Data
recording is automatically started upon disconnect from a computer U B port if the tag word
“rebootOnDisconnect” is included in the configuration file.
Gulf Coast Data Concepts Page 13 X16-5, Rev New
Figure 14: Graphical Illustration of the Dwell Feature

2.6.10 samplesPerFile
“samplesPerFile” defines the number of data lines each file can have before a new file is created. This
tag controls the size of the data files into easily manageable lengths for later processing. This setting is
loaded as a signed 32-bit integer, which can translate into very large data files. The user should
exercise caution before setting large files and test the end-user software application for data limitations.
2.6.11 sampleRate
The “sampleRate” tag defines the data rate in Hertz, or samples per second. Valid sample rate settings
are 12, 25, 50, 100, 200, and 400 Hz. ee section 4.1 for special features regarding the sample rates.
2.6.12 stopOnVusb
The “stopOnVusb” tag stops data logging operations when a 5v supply is detected on the U B
connector. Without the stopOnVusb option (default), the device switches power from the internal
battery to the U B 5v and continues to log data.
2.6.13 statusIndicators
The brightness intensity of the LED status indicators is defined using the “statusIndicators” tag and
valid settings of “normal”, “high”, and “off”.
2.6.14 wakeUpTime
The “wakeUpTime” option configures the logger to turn on at specific times and days of month.
Parameters are in order of minutes, hours, and days and are separated by spaces. Multiple parameters
are separated by commas. For example, “wakeUpTime=5,20 4,15” turns the logger on at 5 minutes
and 20 minutes past the hour of 4am and 3pm. “wakeUpTime=*” will turn the logger on with each
minute. There are three additional parameters needed to complete the wakeUpTime option and each
must be on a separate line in the config.txt file:
“secsToRecord” defines the time period of data to record in seconds. For example,
“secsToRecord=50” will record 50 seconds of data after a wake up event.
“fileAppend” will append new data to the previous available data file. The logger
will create a new file with each wake up event if fileAppend is not used.
“offOnEndRecord” turns the logger off after the completion of each wake up event.
This option saves power since the logger is not active between wake up
events. Otherwise, the logger will stay in a standby mode (blue LED blinks)
while waiting for the next wake up event.
Each time the logger completes a wake up event, the remaining portion of the memory sector is filled
with a repeating comment string (“;sectalign”). This procedure ensures that the next wake up event
starts on a new memory sector, which makes flash memory allocation easier for the logger. For the
end-user, ignore these “;sectalign” comment strings.
Gulf Coast Data Concepts Page 14 X16-5, Rev New

2.7 E ample Configuration Files
2.7.1 E ample A
The following configuration records data at 100 hertz. Deadband and deadbandtimeout are set to zero
so the logger will record constantly at the set sample rate. Each data file is 90,000 lines long, which is
15 minutes of data. The status indicators are set to high brightness. The logger is activated with the
on/off button (notice “rebootondisconnect” is not active).
2.7.2 E ample B
The deadband and dwell settings configure the device to record at least 5 seconds of data when a
change greater than 0.1g is detected. The deadbandtimeout setting forces a sample write every hour.
Gulf Coast Data Concepts Page 15 X16-5, Rev New
Figure 15: Configuration File E ample A
;Example X16-5 config file
;set sample rate
;available rates 12, 25, 50, 100, 200, 400
samplerate = 100
;record constantl
deadband = 0
deadbandtimeout = 0
;set file size to 15 minutes of data
samplesperfile = 90000
;set status indicator brightness
statusindicators = high
A wakeUpTime event is triggered upon the first time the logger is turned on, regardless of
the clock time. After this event completes, the logger will record data at the times specified
by the wakeUpTime option.
Figure 16: Configuration File E ample B
; Example X16-5 Config file
; set to 25Hz
samplerate = 25
; trigger at 0.1g
deadband = 205
; record 5 seconds of data
dwell = 125
;force a write ever hour
deadbandtimeout = 3600
; set file length
samplesperfile = 30000
; LEDs on
statusindicators = normal

2.7.3 E ample C
The logger must be turned on with the on/off button. It will first record a period of data according to
“secsToRecord” and then enter a sleep mode while it waits for the wake-up time. The logger will wake
at 11:15 and record 30 seconds of data at 50 Hz. This will repeat at 11:30am, 2:15pm, and 2:30pm
each day until the battery is depleted or the logger is turned off.
3 Data Interpretation
3.1 Data Files
The X16-5 creates a new data file when the system is booted or when the maximum number of data
lines is reached in the previous data file. A system boot condition occurs when the on/off button is
pressed, 5v power is restored to the system via the U B connector, or when the X16-5 is removed from
a computer U B port with the “rebootondisconnect” feature enabled. Data files are placed in a folder
named “GCDC” and are named data-XXX.csv, where XXX is a sequential number starting with 001.
The directory and file prefix are configurable parameters (see sections 2.6.4 and 2.6.7). The system
will create up to 999 files. At the beginning of each file, a header is written describing the system
configuration and the current time when the file was created.
3.2 Data Format
Data is written to files in comma separated text format starting with the file header information and
followed by event data entries. Each data line contains a time entry and the raw accelerometer sensor
readings from the X, Y, and Z axes. The time entry is seconds elapsed from the start time recorded in
the header (default mode) or relative to Jan 1, 1970 (absoluteTime mode). Figure 18 represents an
example data file.
The last line of the final data file records the reason for the termination, such as “shutdown: switched
off”, “shutdown: low battery”, “shutdown: max files exceeded”, “shutdown: vbus disconnect”, or
“connected to computer”. The line is designated as a comment with a semicolon (“;”).
Gulf Coast Data Concepts Page 16 X16-5, Rev New
Figure 17: Configuration File E ample C
;Example X16-5 config file
;set sample rate
;available rates 12, 25, 50, 100, 200, 400, 800
samplerate = 50
; set the wake up times to
; 11:15am, 11:30am, 2:15pm, 2:30pm
wakeUpTime = 15,30 11,14
; record 30 seconds of data
secsToRecord = 30
; append the new data to the previous file
fileAppend
; turn the logger off after wakeup event
offOnEndRecord
;record constantl when logger active
deadband = 0
deadbandtimeout = 0
;set file size to 15 minutes of data
samplesperfile = 45000
;set status indicator brightness
statusindicators = high
;rebootOnDisconnect

Figure 18: E ample Data File
3.3 Data Conversion
3.3.1 Time Stamps: Relative Mode
By default, the time stamps represent the elapsed seconds relative to the start time listed in the file
header. Add the time stamp to the start time to determine the complete date/time of each sample.
The time stamp calculation is incorporated easily into a spreadsheet, such as Excel or Calc. First, open
the data file in a spreadsheet and parse on the comma (“,”) deliminator. Most spreadsheets will
automatically parse the data using the “,” character. The parsing operation will separate the start_time
into two cells – date and time. Use the “trim” function to strip the white space around the date cell and
use “concatenate” to combine the text into a new start date. The spreadsheet will automatically format
the new text into a date. Next, divide the time stamp entry by 86400. This converts the time stamp
into a value compatible with the spreadsheet date functions. Finally, add the new time stamp to the
new start date and a complete data/time is generated. Format the column as a “time” category and
include the trailing “.000” to present the millisecond precision.
Gulf Coast Data Concepts Page 17 X16-5, Rev New
Figure 19: Time Stamp Conversion Method
;Title, http://www.gcdataconcepts.com, X16-5, Analog Dev ADXL345
;Version, 2031, Build date, Dec 2 2020, SN:CCDC1016D2A5B00
;Start_time, 2020-12-15, 10:15:24.390
;Uptime, 5,sec, Vbat, 3270, mv, EOL, 3200, mv
;SampleRate, 100,Hz
;Deadband, 0, counts
;DeadbandTimeout, 0.000,sec
0.163,10,24,-2054
0.173,21,28,-2063
0.183,17,12,-2090
0.194,3,7,-2097
0.204,30,5,-2061
0.214,24,24,-2061
0.224,17,26,-2082
0.234,44,16,-2063
0.245,19,33,-2072
0.255,-2,26,-2093
0.265,39,3,-2061
Table of contents
Other Gulf Coast Data Concepts Data Logger manuals