> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/pe-add-on-simulink/model-and-simulation/add-and-configure-a-circuit-model-to-the-system-definition/sinewave-generators-section.md).

# Sinewave Generators Section

## Overview

Use the Sinewave Generators to generate up to 32 independent sinusoidal signals on the FPGA. These signals can be mapped directly to [**Analog Output**](https://www.opal-rt.com/docs/pe-add-on-simulink/model-and-simulation/configure-the-hardware-fpga/analog-outputs-section.md) channels or to voltage and current [**Sources**](https://www.opal-rt.com/docs/pe-add-on-simulink/model-and-simulation/add-and-configure-a-circuit-model-to-the-system-definition/sources-section.md) in the circuit model.

## Sinewave Generators Section Channels

In the **System Explorer** window configuration tree, expand the **Power Electronics Add-On** custom device, then **Circuit Model >> Sinewave Generators** to display the following subsections and custom device channels. Assign values to the channels to configure the Sinewave Generators. The value of an input channel can be modified dynamically at execution time.

### Frequency Engines

Description: Frequency Engines configure the base frequency for sets of sinewave generators. Up to 32 Frequency Engines are available in each hardware configuration.

<table><thead><tr><th width="199.95562744140625">Channel Name</th><th>Description</th></tr></thead><tbody><tr><td><p><strong>Frequency Engine X</strong></p><p><strong>(Input)</strong></p></td><td>Frequency of the engine. Up to 32 Frequency Engines are available in each hardware configuration, (Hertz) (Default Value: 60Hz).</td></tr></tbody></table>

### Reset

<table><thead><tr><th width="199.86663818359375">Channel Name</th><th>Description</th></tr></thead><tbody><tr><td><p><strong>Auto Synchronize</strong></p><p><strong>(Input)</strong></p></td><td><p><strong>False</strong>: Normal operation</p><p><strong>True</strong>: Synchronizes all Frequency Engines to each other to prevent phase drift but if the amplitude, phase, or offset of the generator is changed it can cause undesired outputs.</p><p>(Default Value: 0 (False)).</p></td></tr><tr><td><p><strong>Reset</strong></p><p><strong>(Input)</strong></p></td><td><p><strong>False</strong>: Normal operation</p><p><strong>True</strong>: Resets all Frequency Engines to 0 degrees</p><p>(Default Value: 0 (False)).</p></td></tr></tbody></table>

### SWG X (Sinewave Generator X)

Each SWG (Sinewave Generator) has the following channels to configure amplitude, frequency engine mapping, offset, and phase.

<table><thead><tr><th width="200.22216796875">Channel Name</th><th>Description</th></tr></thead><tbody><tr><td><p><strong>Amplitude</strong></p><p><strong>(Input)</strong></p></td><td>Amplitude of the generated sinewave. The peak-to-peak value will be twice the amplitude, (Volts) (Default Value: 0V).</td></tr><tr><td><p><strong>Frequency Engine</strong></p><p><strong>(Input)</strong></p></td><td><p>Index of the <strong>Frequency Engine X</strong> used to generate the sinewave. Setting a value of <strong>2</strong> will connect <strong>Frequency Engine 2</strong> to the sinewave generator. Assign the same <strong>Frequency Engine X</strong> index to multiple sinewave generators to ensure that they stay phase locked in time.</p><p>(Default Value: 0).</p></td></tr><tr><td><p><strong>Offset</strong></p><p><strong>(Input)</strong></p></td><td>DC offset of the generated sinewave, (Volts) (Default Value: 0V).</td></tr><tr><td><p><strong>Phase</strong></p><p><strong>(Input)</strong></p></td><td>Phase offset of the generated sinewave relative to the other sinewaves using the same frequency engine, (Degrees) (Default Value: 0°).</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/pe-add-on-simulink/model-and-simulation/add-and-configure-a-circuit-model-to-the-system-definition/sinewave-generators-section.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
