SR Research Support Site
Functions
Time stamped messages to log file

Functions

INT16 timemsg_printf (UINT32 t, char *fmt,...)
 
int open_message_file (char *fname)
 
void close_message_file (void)
 

Detailed Description

Function Documentation

void close_message_file ( void  )

Flush and close message file, opened by open_message_file.

int open_message_file ( char *  fname)

Creates message file, once open call to timemsg_printf(), will not send messages to tracker. Messages are kept in a queue if the application is in realtime mode, and written to disk on non real-time mode except when close_message_file() is called while in real-time mode.

Parameters
[in]fnameMessage file name
INT16 timemsg_printf ( UINT32  t,
char *  fmt,
  ... 
)

Very similar to eyemsg_printf, with the following features:

  • Optionally write the timestamped message to file instead of sending over the link to tracker.
  • Optional time of event.
    Parameters
    toptional time of event (0 = NOW)
    fmtformat messages

Copyright ©2002-2023, SR Research Ltd.