MX Foundation 4
Error Detection

Control word

The control field of the MXF_MIL1553_DATAREC and MXF_MIL1553_SAMPREC is used to detect errors on the received record.

MXF_MIL1553_SAMPREC has also an errorCount field that returns the number of errors detected for this sampling message.


Statistics counters

Statistic counters are available for errors on different levels: global, by address, by subaddress and detailed by subaddress. To enable the statistics, use the mxfChannelStatisticEnableSet() function.

To read the statistics, four functions and structures are available:

mil1553_errors.c

HMXF_CHANNEL bc;
uint32 rc;
...
// Gets total number of transactions
if(!rc)
{
memset(&transGlobal, 0, sizeof(transGlobal));
if(!rc)
printf("Total number of transactions: %u\n\r", transGlobal.totalCount);
}
// Gets total number of errors
if(!rc)
{
memset(&errorGlobal, 0, sizeof(errorGlobal));
rc = mxfMIL1553StatisticErrorGlobalGet(bc, &errorGlobal);
if(!rc)
printf("Total number of errors: %u\n\r", errorGlobal.totalError);
}
...
Updated 10/23/2023