Skip to main content

TestDisableMsgAllTx

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long TestDisableMsgAllTx (char [] aNode)

Description

Disables the sending of all tx messages of the node except the sending with testSetMsgEvent. This function influences a simulation node with an assigned CANoe Interaction Layer or CANopen simulation. Note
  • Consider to set always the appropriate bus context in a multibus environment before the function is called.
  • Further information on site MultiBus Environment.

Parameters

  • aNode: Node, the tx messages should be disabled.

Return Values

  • 0: No error.
  • -1: General error.

Example

// send a message event for a message which is disabled by TestDisableMsgAllTx
TestDisableMsgAllTx(NodeToManipulate);
TestWaitForTimeout(5000);
TestSetMsgEvent(MsgToManipulate);
TestWaitForTimeout(5000);
TestEnableMsgAllTx(NodeToManipulate);
TestEnableMsgAllTx