> 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/scopeview/use-functions/advanced-functions/advanced-or-simxsymt.md).

# Advanced | SIMXSYMT

## ABSOLUTE HARMONIC MAXIMUM – \[SIMXSYMT]

Compute the absolute maximum amplitudes of the harmonic components in a window moving over time.

## CATEGORY

Advanced

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/ON7fI3GJ1MDKrLcGnSKd/image2018%209%2025_8%2021%204.png)

## DESCRIPTION

This function allows to compute the absolute maximum amplitudes (modules) for the symmetric components of a harmonic in a window moving over time.

## RESULT VARIABLES AND PARAMETERS

<table data-header-hidden><thead><tr><th width="169.45452880859375"></th><th></th></tr></thead><tbody><tr><td><strong>Module (m)</strong></td><td>Absolute maximum of module (or amplitude) for the symmetric components of a harmonic. It is computed for each window moving over the signal. The maximum computed is then multiplied by the absolute value of the factor.</td></tr><tr><td><strong>Phase (a)</strong></td><td>Angle a (or phase) of the symmetric component sequence associated with the maximum module found. Value is between -180 and 180 degrees [°].<br>Since the module is multiplied by the absolute value of the factor, the phase is modified if the multiplying factor is negative. In this case, 180 degrees are added to the phase.</td></tr><tr><td><strong>Phase 0-360 (a0)</strong></td><td>Angle a0 (or phase) of the symmetric component sequence associated with the maximum module found. Value is between 0 and 360 degrees [°].</td></tr><tr><td><strong>Real (r)</strong></td><td>Real part r of the maximum module of the required symmetric component sequence (m * cos(a)).</td></tr><tr><td><strong>Imaginary (i)</strong></td><td>Imaginary part i of the maximum module of the required symmetric component sequence (m * sin(a)).</td></tr><tr><td><strong>Signal_A</strong></td><td>Symbolic name of first signal to analyze (phase A).</td></tr><tr><td><strong>Signal_B</strong></td><td>Symbolic name of second signal to analyze (phase B).</td></tr><tr><td><strong>Signal_C</strong></td><td>Symbolic name of third signal to analyze (phase C).</td></tr><tr><td><strong>Freq</strong>:</td><td>Fundamental frequency of the signals in Hertz [Hz], normally computed with the sifreq function. This fundamental frequency in hertz serves to establish the length of time the window moves over the analyzed signal. In fact, this window is equal to one cycle (in number of samples). lfen = rate/ freq [samples].<br>- If the number of samples to establish the length of a cycle is greater than the number of samples found between the begin_time and end_time of the sequence, then the length of the window used is equal to the number of samples between the begin_time and end_time (in other words end_time - begin_time).</td></tr><tr><td><strong>Harmonic number</strong></td><td>Number of harmonic to compute.<br>- <strong>0</strong>: DC;<br>- <strong>1</strong>: Fundamental;<br>- <strong>2:</strong> 2nd harmonic;<br>- <strong>n:</strong> nth harmonic (max. 30).</td></tr><tr><td><strong>Sequence</strong></td><td>Sequence of symmetric components to compute.<br>- <strong>0:</strong> zero sequence<br>- <strong>1</strong>: positive sequence<br>- <strong>2</strong>: negative sequence</td></tr><tr><td><strong>Begin_time</strong></td><td>Time at which the analysis of a signal must start. This time is expressed in milliseconds [ms]. This value must be greater than 0 and lower than the size of the acquisition buffer. The default value is 0.</td></tr><tr><td><strong>End_time</strong></td><td>Time at which the analysis of a signal must end. This time is expressed in milliseconds [ms]. The value of this time must be larger than the specified begin_time and smaller than the duration of the test. Use the “HUGE” value to specify the end of the test. The default value is HUGE.<br>- The <strong>begin_time</strong> and <strong>end_time</strong> specified for the calculation of the harmonics must be the same as those used in the sifreq sequences to compute the fundamental frequency.</td></tr><tr><td><strong>Factor</strong></td><td>Multiplying factor for the results generated by the function. The default value of the multiplying factor is 1.0 and has no effect on the results.</td></tr></tbody></table>

## SYNTAX

**\[m, a, a0, r, i]** = simxsymt(a, b, c, 60, 1, 1, 0, HUGE,1)

## CHARACTERISTICS

Data type support

Double Floating point

## EXAMPLE

In the following example, the function compute the absolute maximum of the positive sequence of the first harmonic.

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/93PImbzkkwgFJk4PMQOS/image2018%209%2025_8%2021%2041.png)

The following diagram shows the window moving over a signal based on the time specified for the window.

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/WWHFr0KK9TEzHeAI72v8/image2019%206%2019_12%2025%2033.png)

The symmetric components are computed for each window from the start to the end of the limits and the function returns the maximum of the computed modules.

Let:

* **nbech=** number of samples to analyze for the signal
* **lfen=** number of samples in a window
* **nbfen=** number of windows for which the calculations are made

Then:

* **nbfen=nbech-lfen+1**

This set of points is used to find the maximum.

The following figure shows the formulas used to calculate the symmetric components.

Let:

<table data-header-hidden><thead><tr><th width="87.418212890625"></th><th></th></tr></thead><tbody><tr><td><strong>m1</strong></td><td>module of required harmonic for signal 1</td></tr><tr><td><strong>m2</strong></td><td>module of required harmonic for signal 2</td></tr><tr><td><strong>m3</strong></td><td>module of required harmonic for signal 3</td></tr><tr><td><strong>a1</strong></td><td>angle of required harmonic for signal 1</td></tr><tr><td><strong>a2</strong></td><td>angle of required harmonic for signal 2</td></tr><tr><td><strong>a3</strong></td><td>angle of required harmonic for signal 3</td></tr></tbody></table>

$$zero\ sequence\_module = \sqrt{xhom^2 + yhom^2} \\\[8pt]$$

$$positive\ sequence\_module = \sqrt{xdir^2 + ydir^2} \\\[8pt]$$

$$negative\ sequence\_module = \sqrt{xinv^2 + yinv^2} \\\[8pt]$$

$$\tan(zero\ sequence\_angle) = xhom / yhom \\\[8pt]$$

$$\tan(positive\ sequence\_angle) = xdir / ydir \\\[8pt]$$

$$\tan(negative\ sequence\_angle) = xinv / yinv \\\[8pt]$$

$$xhom = \frac{m1\cos(a1) + m2\cos(a2) + m3\cos(a3)}{3} \\\[8pt]$$

$$xdir = \frac{m1\cos(a1) + m2\cos(a2 + 120) + m3\cos(a3 - 120)}{3} \\\[8pt]$$

$$xinv = \frac{m1\cos(a1) + m2\cos(a2 - 120) + m3\cos(a3 + 120)}{3} \\\[8pt]$$

$$yhom = \frac{m1\sin(a1) + m2\sin(a2) + m3\sin(a3)}{3} \\\[8pt]$$

$$ydir = \frac{m1\sin(a1) + m2\sin(a2 + 120) + m3\sin(a3 - 120)}{3} \\\[8pt]$$

$$yinv = \frac{m1\sin(a1) + m2\sin(a2 - 120) + m3\sin(a3 + 120)}{3} \\\[8pt]$$


---

# 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/scopeview/use-functions/advanced-functions/advanced-or-simxsymt.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.
