CAPL Script

Can Activate Tx Self Ack

This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.

Syntax

int canActivateTxSelfAck (int channel, int activate);

Function

Activates/deactivates the transmitself ack featureinCANoefor the defined channel.

Parameters

channel CAN channel

activate

  • 0 = deactivate
  • 1 = activate

Return Values

0 = device does not support self ack

1 = successful

-1 = In case of error

Reference example from the CANoe 12 help. Check the required configuration, database objects and API availability in your installed version; this is not a recorded compiler or runtime test.

on key 'a'
{
  int channel;
  int activate;
  // Activate TX Self-ACK for CAN channel 1
  channel = 1;
  activate = 1;
  canActivateTXSelfAck(channel, activate);
}