> 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/rt-lab/simulink-blocks-reference/rt-lab-library/opassertion.md).

# OpAssertion

## Description

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-16b06e2ce193b54cac9783ab8d85441745ccca40%2FRTL_opassertion_block.png?alt=media" alt=""><figcaption></figcaption></figure>

The **OpAssertion** block, located in the **RT-LAB/Miscellaneous** library, replaces the Simulink Assertion block, which is not supported in real-time. Refer to the Simulink Assertion block documentation for details about assertion tests.

## Mask parameters

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-5b3eb82710c8a29f69916098caa44a34856a2ef9%2FRTL_opassertion_mask.png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

<table><thead><tr><th width="312.18182373046875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enable assertion</strong></td><td>Enable or disable the assertion.</td></tr><tr><td><strong>Stop simulation when assertion fails</strong></td><td>Stop the simulation (same behavior as the Stop block) when the assertion fails.</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="309.45452880859375">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>Input 1</strong></td><td>Signal to test.</td></tr></tbody></table>

## Outputs

This block has no outputs.

## Characteristics and limitations

| Characteristic       | Value |
| -------------------- | ----- |
| Direct Feedthrough   | No    |
| Discrete sample time | Yes   |
| XHP support          | Yes   |
| Work offline         | Yes   |


---

# 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/rt-lab/simulink-blocks-reference/rt-lab-library/opassertion.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.
