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

# Advanced | SIMAX1

## ABSOLUTE MAXIMUM – \[SIMAX1]

Computes the absolute or algebraic maximum on a specific part of a signal.

## CATEGORY

Advanced

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/HUKFTclbvZKjnXNo9m8H/image2018%209%2024_15%2019%2032.png)

## DESCRIPTION

This function computes the absolute or algebraic maximum on a specific part of a signal. The zone on which the analysis is performed can be specified using time or by using or a threshold condition.

## RESULT VARIABLES AND PARAMETERS

<table data-header-hidden><thead><tr><th width="208.54541015625"></th><th></th></tr></thead><tbody><tr><td><strong>Algebraic Maximum</strong></td><td>Maximum of the input signal multiplied by the factor. An algebraic or absolute result on an absolute or positive part of a signal does not affect the result. Similarly, the algebraic result on the negative part of a signal is negative, unless the time interval found for the analysis is null.</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</strong></td><td>Input signal to perform calculation</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.<img src="https://1028368895-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfwfLeQP2Iaoefor0ZUNi%2Fuploads%2FGMMfgUaaf5ALO2ORGlHR%2Fimage.png?alt=media&amp;token=efdd81b9-14ef-4d0a-9fac-aaf3abff7cea" alt=""></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.<img src="https://1028368895-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfwfLeQP2Iaoefor0ZUNi%2Fuploads%2FpHW01N3D8bsxzakxdcNp%2Fimage.png?alt=media&amp;token=34ef669a-7c6b-41c6-8590-0789c32a34bb" alt=""></p><p><strong>Sig:</strong> The original input signal is used for the calculations.<img src="https://1028368895-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfwfLeQP2Iaoefor0ZUNi%2Fuploads%2FaWCq7v97yIW4ySyJZTtR%2Fimage.png?alt=media&amp;token=518ff6bd-e036-4803-b956-8030e57405d8" alt=""></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%2FhLeAgEKL7oIo21IJIUr5%2Fimage.png?alt=media&amp;token=1afe76e3-37be-41ac-a83e-f9f3101a87c3" alt="" data-size="original"></p></td></tr><tr><td><strong>Threshold</strong></td><td>The threshold, delay, and duration parameters restrict the limits of an analysis. The threshold is the value to reach to start the analysis from the begin_time. If the threshold is positive, the threshold will be reached when the value of the sample is greater than that of the threshold. If the threshold is negative, the threshold will be reached when the value of the sample is smaller than that of the threshold. A null threshold sets the threshold equal to the starting time. The threshold value must be compatible with the signal part specified. If the positive part of a signal is specified with a negative threshold, this threshold will never be reached.</td></tr><tr><td><strong>Delay</strong></td><td>When the threshold time is determined, a delay is added to it. The new starting time of the analysis is thus equal to the time taken to reach the threshold plus the delay. The delay is specified in milliseconds [ms].</td></tr><tr><td><strong>Duration</strong></td><td>The duration parameter serves to determine the ending time of the analysis. This ending time will be equal to the new starting time with the delay plus the specified duration. It is possible to specify HUGE as duration indicating that the ending time will be the end of the analyzed signal. This duration is specified in milliseconds [ms].<br><img src="https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/b2AmtOx7Dztt8t0aDkQX/image2019%206%2019_11%2043%2050.png" alt="Duration"></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, abs]** = simax1(input, "sig", 0, 0, HUGE, 0, HUGE,1)

## CHARACTERISTICS

Data type support

Double Floating point

## EXAMPLE

The following figure shows absolute and algebraic maximum for a sine wave signal.

![Absolute and Algebraic Maximum for a Sine Wave Signal](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/wb58U2HitUYAx1wjgsFb/image2019%206%2019_11%2044%2042.png)

The following diagram shows the different results computed by this function.

![Function Results](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/kf8Nfh3u1PJyiEKsOaNN/image2019%206%2019_11%2045%2035.png)


---

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