TOnLogAlarmCB
Features
This is a callback function for checking all alarms and log information generated in the robot controller. As the callback function is executed automatically in the case of a specific event, a code that requires an excessive execution time (within 50 msec) within the callback function should not be made.
Parameter
Parameter Name | Data Type | Default Value | Description |
---|---|---|---|
* pLogAlarm | struct.LOG_ALARM | - | Refer to definition of structure |
Return
None.
Example
void OnLogAlarm(LPLOG_ALARM pLogAlarm)
{
switch(pLogAlarm->_iGroup)
{
case LOG_GROUP_SYSTEMFMK:
switch(pLogAlarm->_iLevel)
{
case LOG_LEVEL_SYSINFO:
cout << "index(" << pLogAlarm->_iIndex << "), ";
cout << "param(" << pLogAlarm->_szParam[0]<< ", ";
cout << "param(" << pLogAlarm->_szParam[1]<< ", ";
cout << "param(" << pLogAlarm->_szParam[2]<< ")" << endl;
break;
default:
break;
}
break;
default:
break;
}
}
int main()
{
Drfl.SetOnLogAlarm(OnLogAlarmCB)
}