MX Foundation 4
Modes

The Bus Monitor is used to record bus traffic with choices to attach a time tag to each word (Word Mode) or each wordstring (String Mode).

Using String Mode, a string includes all consecutive words on the bus (label word and data words). Filtering and Sampling are available with this mode.

Using Word Mode, each 20-bit word will be time-tagged and stored in the acquisition queue. Filtering and Sampling are not available with this mode.

The Bus Monitor mode is selected using the mxfAttributeUint64Set() function with the KMXF_A629_BM_MODE attribute key constant.

HMXF_SERVER server=0;
HMXF_DEVICE device=0;
HMXF_MODULE module=0;
HMXF_CHANNEL bm=0;
uint32 rc;
uint64 deviceCount=0;
uint64 deviceType = MXF_DEVICE_FLEXMULTI_629; // Flex629 device
uint64 moduleIndex = 0; // First module
uint64 channelIndex = 0; // First BM channel
rc = mxfServerConnect("0.0.0.0", "", "", FALSE, &server);
if(rc == MAXT_SUCCESS)
rc = mxfSystemDeviceAllGet(server, deviceType, 1, &deviceCount, &device);
if(rc == MAXT_SUCCESS && deviceCount == 1)
{
rc = mxfDeviceModuleGet(device, moduleIndex, &module);
if(rc == MAXT_SUCCESS)
rc = mxfModuleChannelGet(module, channelIndex, &bm);
if(rc == MAXT_SUCCESS)
{
rc = mxfAttributeUint64Set(bm, KMXF_A629_BM_MODE, VMXF_A629_BM_MODE_WORD); // Configure BM WORD MODE
if(rc == MAXT_SUCCESS)
printf("ARINC 629 Bus Monitor using WORD MODE configured");
else
printf("Error code=0x%lX\n", rc);
}
}
Updated 10/23/2023