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

# CAPLfunctionTestWaitScopeGetSerialBitAnalysisData

# testWaitScopeGetSerialBitAnalysisData

**Valid for**: CANoe DE • CANoe4SW DE

## Function Syntax

```c theme={null}
long testWaitScopeGetSerialBitAnalysisData (ScopeAnalyseHandle handle, dword msgField, dword bitNo, ScopeDutyCycleDefinition dutyCycle, ScopeBitDataDutyCycle data);
```

## Description

Returns the serial bit analysis data and duty cycle data for the defined bit.

## Parameters

* **handle**: A unique ID. The same handle must be used for all bit analysis function calls.
  * **ScopeAnalyseHandle Selectors**
    * **Keyword**: handle
    * **Description**: A unique ID
    * **Type**: long

* **msgField**: The field within the message. See `ScopeBitAnalyse.cin`.

* **bitNo**: The bit number within the msg field.

* **dutyCycle**: The duty cycle measurement parameters. See [ScopeDutyCycleDefintion](../../Scope/Classes/CAPLfunctionScopeDutyCycleDefinition.md).

* **data**: The duty cycle data for the defined bit. See [ScopeBitDataDutyCycle](../../Scope/Classes/CAPLfunctionScopeBitDataDutyCycle.md).

## Return Values

* **1**: Success
* **\< 0**: Error occurred. See `EScopeCAPLFitDataReturnCode` in `ScopeBitAnalyse.cin`.

## Example

—
