Skip to main content

AfdxGetSignalString

CAPL Functions » AFDX » AfdxGetSignalString

Valid for:

  • CANoe DE
  • CANoe:lite DE
  • CANoe4SW DE
  • CANoe4SW:lite DE

Function Syntax

long AfdxGetSignalString( long packet, char signalName[], long bufSize, char buffer[] ); // form 1
long AfdxGetSignalString( long packet, long offset, long bufSize, char buffer[] ); // form 2

Description

This function copies up to bufSize characters of an AFDX string to the specified buffer. The AFDX string structure consists of a 16-bit length code n and a sequence of n ASCII characters.

Parameters

  • packet: Handle of the message.
  • signalName: Name of the signal.
    Note: The signal and the message need to be defined in the assigned DBC file.
  • offset: The offset value points to the starting byte of the AFDX string.
  • bufSize: Size of available buffer area.
  • buffer: Buffer containing the read string value.

Return Values

  • Number of copied data bytes.
  • If this value is > bufSize an error occurred.

Example

See Also