TestCheck c1, c2;
dword bcPduNetwork;
// only needed if the test works on several networks
bcPduNetwork = getBusNameContext("My Pdu Network");
setBusContext(bcPduNetwork);
// always use short header ID
ChkConfig_SetPDUIDFormat(1);
// creates the cycle time check with a PDU header ID
c1 = TestCheck::CreateMsgAbsCycleTimeViolation(2983504, 8, 12);
ChkConfig_DisablePDULayer();
// creates the cycle time check with a CAN ID
c2 = TestCheck::CreateMsgAbsCycleTimeViolation(0x3e1, 8, 12);
// reset to default values
ChkConfig_EnablePDULayer();
ChkConfig_SetPDUIDFormat(0);