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

# Advanced | SITSEUIL

## THRESHOLD TIME – \[SITSEUIL]

Compute the time at which a threshold value is reached.

## **CATEGORY**

Advanced

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/TcLLM62YRf6xZUv1mqU2/image2018%209%2025_8%2036%2014.png)

## **DESCRIPTION**

Compute the time at which a threshold value is reached (either on positive or negative slope) on a specified part of a signal.

## **RESULT VARIABLES AND PARAMETERS**

<table data-header-hidden><thead><tr><th width="148.54547119140625"></th><th></th></tr></thead><tbody><tr><td><strong>Result</strong></td><td>Time in milliseconds [ms] at which the threshold value is reached on the specified part of the signal, increased by the delay and multiplied by the factor. If the returned result is HUGE, this means that the threshold value was never reached within the set limits<br>Note that the returned time is really the time at which the threshold value is reached, increased by the delay, and not the time relative to the starting time of the analysis.</td></tr><tr><td><strong>Signal</strong></td><td>Signal to analyze.</td></tr><tr><td><strong>Signal_Part</strong></td><td>Part of the signal on which the analysis is done:<br><strong>Neg</strong>: Only the negative values of the input signal are used for the calculations. The other values are considered to be null.<br><strong>Pos</strong>: Only the positive values of the input signal are used for the calculations. The other values are considered to be null.<br><strong>Sig</strong>: The original input signal is used for the calculations.<br><strong>Abs</strong>: The calculations are done on the absolute value of the input signal.<br></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>Value of threshold to be reached on the specified part of the signal.</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>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 duration of the test. 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**

**res** = sitseuil( input, "sig", 0.5, 0, 0, HUGE, 1)

## **CHARACTERISTICS**

Data type support

Double Floating point

## **EXAMPLE**

The following figure shows the different cases which can arise when executing the sitseuil function.

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/UU1Hinolw5bvzyPpexvL/image2018%209%2025_8%2037%2035.png)

* **Begin Time**: Instant after which the function computes the time.
* Pictorial Representation:

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/sybtuTKKuIZnTE8a8eXl/image2018%209%2025_8%2037%2054.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-sitseuil.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.
