ChkCreate_NodeMsgsRelCycleTimeViolation, ChkStart_NodeMsgsRelCycleTimeViolation
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Constructor
TestCheck::CreateNodeMsgsRelCycleTimeViolation (Node aNode, double aMinRelCycleTime, double aMaxRelCycleTime, Callback aCallback); TestCheck::StartNodeMsgsRelCycleTimeViolation (Node aNode, double aMinRelCycleTime, double aMaxRelCycleTime, Callback aCallback);Check Name
Cycle TimeDescription
Checks the occurrences of cyclic messages of the given send node. Event is generated if the time between sends of the (same) message is smaller than minRelCycleTime GenMsgCycleTime (DB-attribute) or larger than maxRelCycleTime GenMsgCycleTime. Not to be checked limits are set to 0; there must be at least one limit specified. Not checked are send messages with a specified cycle time equal to 0 or network management messages or diagnostic messages. Can be started only in the start-section of CAPL or during measurement. For FlexRay only valid data frames and PDUs are recognized as communication, Null Frames and Erroneous frames are ignored. Note: Dependent on the used parameter type the appropriate bus context in a multibus environment has only to be set before the function is called if the corresponding database object will be ambiguous. Further information on site MultiBus Environment.Parameters
- aNode: Must exist in DB
- aMinRelCycleTime:
- 0: Limit is not checked
- 0 < x < 1: Limit is checked
- aMaxRelCycleTime:
- 0: Limit is not checked
- 1 < x < ∞: Limit is checked
- aCallback: In simulation nodes this parameter has to be set. In test modules this parameter is optional.
Return Values
- 0: Check could not be created and must not be referenced
- > 0: Check was created successfully and may be referenced using the returned (handle-) value
Possible Errors
- Value range(s) exceeded
- Node object does not exist in the DB
- There are no cyclic messages in the specified node
- There are messages specified as cyclic but the cycle time is 0 or not available
- Both relative limits are 0
- CAPL callback does not exist