> 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/miscellaneous-functions/misc.-or-crossing-time.md).

# Misc. | CROSSING TIME

## **CROSSING TIME – \[CROSST]**

Output the time at which the signal cross the threshold depending on direction and slope parameter.

## **CATEGORY**

Miscellaneous

<figure><img src="https://1028368895-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfwfLeQP2Iaoefor0ZUNi%2Fuploads%2Fd055imTS1EYzLLuYOUTF%2Fimage.png?alt=media&amp;token=9f247bd1-062b-4296-af4a-67c933a750ec" alt=""><figcaption></figcaption></figure>

## **DESCRIPTION**

The function outputs time value at which the signal cross the threshold depending on direction and slope parameter. The scope of the search is limited to the window formed by Begin\_Time and End\_Time. Using HUGE for the End\_Time will set the parameter to match the end of acquisition. If there is no match, the graphic will be empty.

<table data-header-hidden><thead><tr><th width="104.4000244140625"></th><th></th></tr></thead><tbody><tr><td><strong>Direction</strong></td><td>Forward will search the threshold value from Begin_Time toward End_Time. Backward will do the opposite.</td></tr><tr><td><strong>Slope</strong></td><td>Using Positive Slope will search the threshold when the slope increase in function of time while Negative will search it when the slope decrease in function of time.</td></tr></tbody></table>

## **RESULT VARIABLES AND PARAMETERS**

<table data-header-hidden><thead><tr><th width="116.39996337890625"></th><th></th></tr></thead><tbody><tr><td><strong>Result</strong></td><td>Time at which the signal cross the threshold in function of the parameters</td></tr><tr><td><strong>Signal</strong></td><td>Input signal</td></tr><tr><td><strong>Threshold</strong></td><td>Reference value to which the signal is compared</td></tr><tr><td><strong>Begin Time</strong></td><td>Beginning time of the function</td></tr><tr><td><strong>End Time</strong></td><td>Ending time of the function</td></tr><tr><td><strong>Direction</strong></td><td>Direction for the search (1: Forward, 0 : Backward)</td></tr><tr><td><strong>Slope</strong></td><td>Type of slope (1: Positive, 0 : Negative)</td></tr></tbody></table>

## **SYNTAX**

**Result** = crosst(Input,Threshold,T\_Beg,T\_End,Direction,Slope)

## **CHARACTERISTICS**

Data type support

Double Floating point<br>

## **EXAMPLE**

Threshold = 0, T\_Beg = 0, T\_End = Huge

<figure><img src="https://1028368895-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfwfLeQP2Iaoefor0ZUNi%2Fuploads%2FmsxG2qHU4up1CkbvSfWp%2Fimage.png?alt=media&amp;token=23f652f3-28f2-4f51-8ec8-6910e8631938" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1028368895-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfwfLeQP2Iaoefor0ZUNi%2Fuploads%2Fd6mhTyERfPpwSNAFpDdZ%2Fimage.png?alt=media&amp;token=f0d145a3-2f3a-40a1-9186-55163276cfe9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1028368895-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfwfLeQP2Iaoefor0ZUNi%2Fuploads%2F9TC20BFdpdTMzJi5Cqq5%2Fimage.png?alt=media&amp;token=ff34ad19-370f-4f03-87a7-e02b76c28ad3" alt=""><figcaption></figcaption></figure>


---

# 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/miscellaneous-functions/misc.-or-crossing-time.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.
