public class simpleCsvLogger
extends java.lang.Object
Constructor and Description |
---|
simpleCsvLogger() |
Modifier and Type | Method and Description |
---|---|
int |
close()
Closes the log file and ensures everything is written to disk.
|
int |
forceSync()
Clears the buffer in memory and forces things to file.
|
int |
init(java.lang.String[] data_fields,
java.lang.String[] units_fields)
Determines a unique file name, and opens a file in the data captures directory and writes the
initial lines to it.
|
int |
writeData(double... data_elements)
Write a list of doubles to the output file, assuming it's open.
|
public int init(java.lang.String[] data_fields, java.lang.String[] units_fields)
data_fields
- A set of strings for signal names to write into the fileunits_fields
- A set of strings for signal units to write into the filepublic int writeData(double... data_elements)
data_elements
- Values to write (any number of doubles, each as its own argument).
Should have the same number of arguments here as signal names/units set during the
call to init()public int forceSync()
public int close()