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

# CAPLfunctionTestWaitScopeGetSerialBitAnalyseViolationData

# testWaitScopeGetSerialBitAnalyseViolationData

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

## Function Syntax

`long testWaitScopeGetSerialBitAnalyseViolationData(ScopeAnalyseHandle handle, long errorNo, ScopeDutyCycleDefinition dutyCycle, ScopeBitDataDutyCycle cycleData, ScopeSerialBitAnalysisViolationData data);`

## Description

Returns the duty cycle data and the violation data of the serial bit analysis for the error number.

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

* **errorNo**: The error number the data are requested.

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

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

* **data**: The serial bit analysis violation data for the error number. See [ScopeSerialBitAnalysisViolationData](../../Scope/Classes/CAPLfunctionScopeSerialBitAnalysisViolationData.md).

## Return Values

* **1**: Success
* **\< 0**: Error occurred. See `EScopeCAPLFitDataReturnCode` in `<application\>\Reusable\CAPL_Includes\Scope\` [ScopeBitAnalyse.cin](javascript:startDemoLoader\('"Reusable\CAPL_Includes\Scope"'\))

## Example

—
