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

# Advanced | SIMAX3

## PHASE MAXIMUM – \[SIMAX3]

Computes the absolute and algebraic maximum on a specific part of a signal of a phase to phase or a phase to neutral voltage or a current.

## CATEGORY

Advanced

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/5NwYp9cE8LLABR4MrdTG/image2018%209%2024_15%2024%2023.png)

## DESCRIPTION

The function allows to compute the absolute and algebraic maximum on a specific part of a signal of a phase to phase or a phase to neutral voltage or a current.

## RESULT VARIABLES AND PARAMETERS

<table data-header-hidden><thead><tr><th width="189"></th><th></th></tr></thead><tbody><tr><td><strong>Algebraic Maximum</strong></td><td>Maximum of the resulting signal multiplied by the factor.<br>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 resulting signal multiplied by the factor.</td></tr><tr><td><strong>Signal_1</strong></td><td>input signal (phase a).</td></tr><tr><td><strong>Signal_2</strong></td><td>input signal (phase b).</td></tr><tr><td><strong>Signal_3</strong></td><td>input signal (phase c).<br>For simax3, the three signals are kept to the end. It is as if simax1 were applied to the three analyzed signals and the result returned were the maximum of the three maximums identified.</td></tr><tr><td><strong>Operation</strong></td><td>Operation to execute between the three signals: phase to phase voltage (pp) or phase to neutral (pt). In the case of phase to neutral, the three original signals are considered. For the phase to phase voltages, the difference signals (1 - 2), (2 - 3) and (3 - 1) are considered.<br>When phase to phase operation is used, three new signals R1, R2 and R3 are internally generated to perform calculation. R1 = Signal_1 – Signal_2, R2 = Signal_2 – Signal_3, R3 = Signal_3 – Signal_1.</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>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.<br>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/SR0kP2SDxw38XEGjMMe3/image2018%209%2024_15%2023%2031.png" alt=""></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]** = simax3(Va, Vb, Vc, "pp", "sig", 0, 0, 0, 0, HUGE, 1)

## CHARACTERISTICS

Data type support

Double Floating point

## EXAMPLE

The following figure shows absolute and algebraic maximum for three phase voltages.

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/yYaCy9A27ZyVO7e9tGMT/image2018%209%2024_15%2026%205.png)

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

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/qcIVUpgDEePSRsJYAxF8/image2018%209%2024_15%2024%208.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-simax3.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.
