EasyManua.ls Logo

STW TC1 - Page 195

STW TC1
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Teleservice Application Framework
User Manual 195/374
Example
// Global module
T_DBUS_Util mt_DBUS_Util;
sint32 s32_Retval;
s32_Retval = ylogd_create_log_job (&mt_DBUS_Util, "TC3_Logger", 1, 1024*1024, 1, "Test log
job", 500);
if (s32_Retval == C_NO_ERR)
{
// Go on
}
7.3.6.2.2 ylogd_add_log_variable
Function Description
sint32 ylogd_add_log_variable (const T_DBUS_Util *const opt_DBusInstance, const charn *
const opcn_LogJobName , const charn * const opcn_DatapoolName, const charn * const
opcn_ListName, const charn * const opcn_VariableName, const uint32 ou32_Hysteresis)
The function adds a variable to be logged as part of a data logging record of the data logger job
opcn_LogJobName. The value will only be written to the log file in case it differs more than +/- ou32_Hysteresis
from its previous record.
Information Flow
Input Information
Parameter
Range
Description
opt_DBusInstance
T_DBUS_Util
holds all D-Bus information
opcn_LogJobName
maximum
MAX_DL_NAME_LENGTH
pointer to log job name
opcn_DatapoolName
maximum
MAX_DP_NAME_LENGTH
pointer to the data pool name
opcn_ListName
maximum
MAX_DP_NAME_LENGTH
pointer to the list name
opcn_VariableName
maximum
MAX_DP_NAME_LENGTH
pointer to the variable name for logging
ou32_Hysteresis
uint32
includes the logging hysteresis
Structure T_DBUS_Util
typedef struct
{
DBusConnection* pt_dbus_conn; // D-BUS connection instance
charn acn_myNameString[128]; // Name of the application, Don't use any
special
// characters, white spaces or new lines!
charn acn_myVersion[128]; // Additional value (for HELLO) signal (opt.)
charn acn_myStatus[128]; // Additional value (for HELLO) signal (opt.)

Table of Contents