> 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-simxsom2.md).

# Advanced | SIMXSOM2

## **INTEGRAL MAXIMUM – \[SIMXSOM2]**

Computes the absolute maximum of an integral, a mean or a RMS value in a window moving over a signal resulting from a mathematical operation.

## **CATEGORY**

Advanced

![](https://opal-rt.atlassian.net/wiki/download/thumbnails/1517486453/image2018-9-25_8-16-53.png?version=1\&modificationDate=1757702685576\&cacheVersion=1\&api=v2\&width=460\&height=400)

## **DESCRIPTION**

The function allows to computes the absolute maximum of an integral, a mean or an RMS value in a window moving over a signal resulting from a mathematical operation between specific parts of two initial signals. A reject threshold can be applied to the first signal before the mathematical operation, in other words, the reject of the signal samples not reaching this threshold.

## **RESULT VARIABLES AND PARAMETERS**

<table data-header-hidden><thead><tr><th width="175"></th><th></th></tr></thead><tbody><tr><td><strong>Algebraic Maximum</strong></td><td>Maximum of the input signal, multiplied by the factor.</td></tr><tr><td><strong>Absolute Maximum</strong></td><td>Absolute maximum of the input signal, multiplied by the factor.</td></tr><tr><td><strong>Signal 1</strong></td><td>First input signal to perform analysis</td></tr><tr><td><strong>Signal 2</strong></td><td>Second input signal to perform analysis</td></tr><tr><td><strong>Threshold</strong></td><td>Threshold to reach on the first signal to keep the sample. This threshold value must be positive since the absolute value of the sample is compared to it. The samples which do not exceed this threshold are considered as null. If this threshold is null, all the samples are automatically considered.</td></tr><tr><td><strong>Signal_Part</strong></td><td>Part of the signal on which the analysis is done (neg, pos, sig, abs).</td></tr><tr><td><strong>Here are the definitions for the four distinct parts of a signal:</strong></td><td><p><strong>Neg:</strong> Only the negative values of the input signal are used for the calculations. The other values are considered to be null.</p><p><img src="https://1028368895-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfwfLeQP2Iaoefor0ZUNi%2Fuploads%2FfxFZ28vhfXvyTL6PgWYn%2Fimage.png?alt=media&amp;token=54b08acc-ae60-4b21-9040-47a478164b58" alt="" data-size="original"></p><p><strong>Pos:</strong> Only the positive values of the input signal are used for the calculations. The other values are considered to be null.</p><p><img src="https://1028368895-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfwfLeQP2Iaoefor0ZUNi%2Fuploads%2FhN78qugoHXYJeipf374u%2Fimage.png?alt=media&amp;token=4015bb7f-8aae-490e-a5e3-470c0d0ae2ad" alt="" data-size="original"></p><p><strong>Sig:</strong> The original input signal is used for the calculations.</p><p><img src="https://1028368895-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfwfLeQP2Iaoefor0ZUNi%2Fuploads%2FIN5ojK69fHpBi2q2n3ik%2Fimage.png?alt=media&amp;token=32725de5-a15c-4285-9700-7fef917d877a" alt="" data-size="original"></p><p><strong>Abs:</strong> The calculations are done on the absolute value of the input signal.</p><p><img src="https://1028368895-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfwfLeQP2Iaoefor0ZUNi%2Fuploads%2FcAESv86ZQIJ13KL09bEz%2Fimage.png?alt=media&amp;token=4d71ee93-ec35-4449-a66f-b70dabb7a057" alt="" data-size="original"></p></td></tr><tr><td><strong>Operation_1</strong></td><td>Mathematical operation to execute between the two input signals (+,-,*,/).</td></tr><tr><td><strong>Operation_2</strong></td><td><p>Operation to execute on the signal resulting from the mathematical operation in a window moving over it (int, moy, rms). The maximums of the integrals, means or rms values are kept.</p><ul><li><strong>int</strong>: integral</li><li><strong>moy</strong>: mean</li><li><strong>rms</strong>: rms value</li></ul></td></tr><tr><td><strong>Window_Length</strong></td><td>Time in seconds [s] during which the window moves over the analyzed signal. This time is reduced to the time of the analysis (ending time - starting time) if the window time specified is longer than the duration considered for the signal. This window time cannot be null.</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.</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**

**\[alg\_max, abs\_max]** = simxsom1( input, "sig", 0, "int", 1/60, 0, HUGE, 1 )

## **CHARACTERISTICS**

Data type support\
Double Floating point

## **EXAMPLE**

In the following example, the function compute the absolute maximum of the integral of the sum of two sine waves.

![](https://opal-rt.atlassian.net/wiki/download/thumbnails/1517486453/image2018-9-25_8-18-28.png?version=1\&modificationDate=1757702686913\&cacheVersion=1\&api=v2\&width=484\&height=400)

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

![](https://opal-rt.atlassian.net/wiki/download/thumbnails/1517486453/image2019-6-19_12-11-9.png?version=1\&modificationDate=1757702686433\&cacheVersion=1\&api=v2\&width=550\&height=339)

The operation is computed for each window from the start to the end of the limits and the function returns the maximum of the computed samples.

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.

<br>


---

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