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

# Misc. | XLAST

## LAST – \[XLAST]

Outputs the sampling time of the last data in the acquisition buffer.

## **CATEGORY**

Miscellaneous

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/ONxfmfhsTZejTRVYN97p/image2018%209%2024_13%2037%2054.png)

## **DESCRIPTION**

Outputs the sampling time of the last data of the input stored in the acquisition buffer in seconds \[s].

## **RESULT VARIABLES AND PARAMETERS**

<table data-header-hidden><thead><tr><th width="90.800048828125"></th><th width="274"></th></tr></thead><tbody><tr><td><strong>Result</strong></td><td>Sampling time of the last data [s]</td></tr><tr><td><strong>Signal</strong></td><td>Input</td></tr></tbody></table>

## **SYNTAX**

**res** = xlast(input)

## **CHARACTERISTICS**

Data type support

Double Floating point

## **EXAMPLE**

In the below example, acquisition is started exactly at the same time as the trigger condition (without time offset) and the acquisition time length is 0.1 second. Sampling time of the last data is then 0.1 second.

![](https://content.gitbook.com/content/fwfLeQP2Iaoefor0ZUNi/blobs/g3POnGULPnIFpMwubm4b/image2018%209%2024_13%2038%2010.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/miscellaneous-functions/misc.-or-xlast.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.
