-
Notifications
You must be signed in to change notification settings - Fork 3
DataLog
Another useful utility is DataLog. This allows you to get DataUnit
objects, which all sensors and some other components provide, and save them to a CSV file.
We recommend you split your data into multiple CSVs if the data means different things, or will not be time-correlated. DataLog is instantiable for this reason.
Simply start the logger with the constructor, passing in a filename.
Now, just call:
DataLog.Output(DataUnit1, DataUnit2, ...);
With all of your DataUnit
s. If this is the first line, it will auto-generate headers.
Please make sure that your DataUnit
s are consistent (in number and order) between every call to Output()
, as there is no internal checking. Data will simply be output in the order given, and as such, if the format changes, the data will be in the wrong column.
Because of the dynamic nature of the DataLog structure, doing this check on every datapoint would become very time-expensive, so we decided to skip the checks.
Quick Links:
NuGet
Pin Diagrams: RPi | BBB
Developers: CaiB, Baldstrom
General Info:
Home
Common Issues
Getting Started
Supported Devices
Sections:
Logging
DataLog
Filters
Hardware I/O:
- BeagleBone Black
- Raspberry Pi
- Pin Diagrams: RPi | BBB
- GPIO: Using | For Beginners
- PWM: Using | For Beginners
- ADC: Using | For Beginners
- I2C: Using | For Beginners
- SPI: Using | For Beginners
- UART: Using | For Beginners
- CAN: Using | For Beginners
Networking
Sensors
StateStore
Other: Interesting Case Studies