> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionOnPDUSubscribed

# on PDU\_Subscribed (obsolete)

**Valid for**: CANoe DE

## Function Syntax

```
on PDU_Subscribed <PDU>;
```

## Description

The event procedure is called at the provider when a PDU is subscribed by a consumer.

## Parameters

* **`<PDU>`**: Designates the PDU on which the event procedure shall react. This must be a provider endpoint.

## Selectors

* **consumer**: Consumer, the type is [pduConsumerRef \*](../Objects/CAPLfunctionPDUConsumerRef.md)

## Example

```plaintext theme={null}
on PDU_Subscribed Mirrors::MirrorAdjustment[LeftMirror].StatusPdu
{
  write("PDU subscribed by %s", this.consumer.Name);
}
```

[Programming with the Communication Concept (C#, Python and CAPL)](../../../CANoeCANalyzer/CommunicationConcept/Programming/CCP.md) • [on PDU\_Unsubscribed](CAPLfunctionOnPDUUnsubscribed.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.