CAPL Script

LookupTxPDU

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

txPDURef * LookupTxPDU(char[] path)

Function

Searches for the specified tx PDU. The path must be complete including namespaces and endpoint(s): You can downcast the result to a concrete type, see the example.

Parameters

path Path of the Tx PDU.

Return Values

The tx PDU. An uninitialized object if the PDU is not found, which will also be reported in the Write Window or as an error in test system (if the function is called in a test routine).

txPDURef MirrorState statePDU;char path[200];char pduName[50] = "Mirrors::MirrorState";char sender[20] = "LeftMirror";snprintf(path, elcount(path), "%s[%s]", pduName, sender);statePDU = (txPDURef MirrorState) lookupTxPDU(path);

LookupRxPDU