> ## 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.

# CAPLfunctionIso11783OPOnStateChange

[Open topic with navigation](../../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/ISO11783/ISONodeLayer/Functions/CAPLfunctionIso11783OPOnStateChange.md)

[CAPL Functions](../../../CAPLfunctions.md) » [ISO11783](../../CAPLfunctionsISO11783Overview.md) » [ISO11783 Node Layer](../CAPLfunctionsISONLOverview.md) » Iso11783OPOnStateChange

# Iso11783OPOnStateChange (Callback)

[Valid for](../../../../Shared/FeatureAvailability.md):  CANoe DE • CANoe4SW DE

## Function Syntax

```plaintext theme={null}
void Iso11783OPOnStateChange( dword ecuHandle, dword state );
```

## Description

The function is called by the node layer, if the state of the Object Pool API has changed.

## Parameters

* **ecuHandle**: Handle of the ECU
* **state**: State of the Object Pool API
  * 0: not active
  * 1: wait until ECU is online
  * 2: wait for the status message from the VT
  * 3: initialization phase with the VT
  * 4: object pool upload is active or load version active
  * 5: active

## Return Values

—

## Example

```plaintext theme={null}
void Iso11783OPOnStateChange( dword handle, dword state )
{
}
```
