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

# Advanced | SITOP

## OPERATING TIME – \[SITOP]

Compute the operating time of a relay.

## **CATEGORY**

Advanced

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/OJFOudUYRNvdbAFQ8fRi/image2018%209%2025_8%2029%2027.png)

## **DESCRIPTION**

This function allows to compute the operating time of a relay.

## **RESULT VARIABLES AND PARAMETERS**

Res: time in milliseconds \[ms] for which the threshold value is reached on the signal analyzed, as of the specified begin\_time. The returned time is the time relative to the starting time and not relative to time 0.

If the returned result is HUGE, this means that the relay did not operate within the set limits. More specifically, no change of state relative to the threshold value was detected within the limits of the analysis, as compared with the state at the beginning of the analysis.

<table><thead><tr><th width="116"></th><th></th></tr></thead><tbody><tr><td><strong>Signal</strong></td><td>Signal to analyze.</td></tr><tr><td><strong>Threshold</strong></td><td>Threshold to reach on the signal analyzed showing that the relay operated.<br>The threshold value is reached when there is a change of state with respect to this value. If the sample was above the threshold at the start of the analysis, then the change of state occurs when the sample read is found to be below the threshold value.</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** = sitop( input, threshold, 0, HUGE, 1)

## **CHARACTERISTICS**

Data type support

Double Floating point

## **EXAMPLE**

The following figure shows the different cases which can arise when executing the sitop function. These examples can be serve as reference for the cases studied.

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/5butpxZlwZ4Bep5TIKwZ/image2018%209%2025_8%2033%2022.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-sitop.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.
