WPILibC++ 2024.3.2
Data Logger Functions

Functions

NT_DataLogger NT_StartEntryDataLog (NT_Inst inst, struct WPI_DataLog *log, const char *prefix, const char *logPrefix)
 Starts logging entry changes to a DataLog. More...
 
void NT_StopEntryDataLog (NT_DataLogger logger)
 Stops logging entry changes to a DataLog. More...
 
NT_ConnectionDataLogger NT_StartConnectionDataLog (NT_Inst inst, struct WPI_DataLog *log, const char *name)
 Starts logging connection changes to a DataLog. More...
 
void NT_StopConnectionDataLog (NT_ConnectionDataLogger logger)
 Stops logging connection changes to a DataLog. More...
 

Detailed Description

Function Documentation

◆ NT_StartConnectionDataLog()

NT_ConnectionDataLogger NT_StartConnectionDataLog ( NT_Inst  inst,
struct WPI_DataLog *  log,
const char *  name 
)

Starts logging connection changes to a DataLog.

Parameters
instinstance handle
logdata log object; lifetime must extend until StopConnectionDataLog is called or the instance is destroyed
namedata log entry name
Returns
Data logger handle

◆ NT_StartEntryDataLog()

NT_DataLogger NT_StartEntryDataLog ( NT_Inst  inst,
struct WPI_DataLog *  log,
const char *  prefix,
const char *  logPrefix 
)

Starts logging entry changes to a DataLog.

Parameters
instinstance handle
logdata log object; lifetime must extend until StopEntryDataLog is called or the instance is destroyed
prefixonly store entries with names that start with this prefix; the prefix is not included in the data log entry name
logPrefixprefix to add to data log entry names
Returns
Data logger handle

◆ NT_StopConnectionDataLog()

void NT_StopConnectionDataLog ( NT_ConnectionDataLogger  logger)

Stops logging connection changes to a DataLog.

Parameters
loggerdata logger handle

◆ NT_StopEntryDataLog()

void NT_StopEntryDataLog ( NT_DataLogger  logger)

Stops logging entry changes to a DataLog.

Parameters
loggerdata logger handle