CAPL Script

TriggerPDU

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

void triggerPDU(pdu myPDU);

Function

Triggers a PDU to be sent. If the PDU has an update bit it will be set. After the PDU was sent the update bit will be reset.

Parameters

Variable of type PDU.

Return Values

—

on timer cyclic100ms{PDU randomPDU myPDU;myPDU.signal1 = 10;myPDU.signal2 = 20;triggerPDU(myPDU);}