> 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/hypersim/automation-api-and-scripting/datalogger-api/python-datalogger-api-reference/class-triggerconfig.md).

# Class TriggerConfig

## Arguments

TriggerConfig(signal\_name=None, level=0.0, type=None, holdoff\_steps=0, offset\_sec=0)

<table><thead><tr><th width="289.5555419921875">Attribute</th><th>Description</th></tr></thead><tbody><tr><td>signal_name</td><td>Trigger signal<br>str</td></tr><tr><td>type</td><td>Trigger type<br>enum</td></tr><tr><td>level</td><td>Trigger threshold<br>float</td></tr><tr><td>holdoff_steps</td><td>Pre-trigger steps<br>int</td></tr><tr><td>offset_sec</td><td>Offset in seconds (file trigger only).<br>float</td></tr></tbody></table>

## Method

<table><thead><tr><th width="289.5555419921875">Method</th><th>Description</th></tr></thead><tbody><tr><td>get_holdoff()</td><td>Holdoff steps, the number of simulation steps before re-arming the trigger.<br>Return: int</td></tr><tr><td>get_level()</td><td>Trigger level<br>Return: float</td></tr><tr><td>get_offset()</td><td>Offset<br>Return: float</td></tr><tr><td>get_signal()</td><td>Return: str, the name of the signal used for the trigger.</td></tr><tr><td>get_type()</td><td>Return enum, trigger type<br>See TriggerConfig.type for available type values.</td></tr><tr><td>set_holdoff(trigger_holdoff: int)</td><td>Set trigger holdoff (in computation steps).<br>Return: None</td></tr><tr><td>set_level(trigger_level: float)</td><td>trigger_level (float): reference value used for the trigger.<br>Return: None</td></tr><tr><td>set_offset(offset_sec: float)</td><td>Set offset (in seconds), useful when working on OPREC files.<br>offset_sec defines starting point from which to take the trigger into account.<br>Return: None</td></tr><tr><td>set_signal(signal_name: str)</td><td>Set trigger signal, signal_name is the name of the signal used for the trigger.<br>Return: None</td></tr><tr><td>set_type(trigger_type: enum)</td><td>Set trigger type, trigger_type defines the type of trigger (edge rising/falling or level high/low).<br>Return: None</td></tr></tbody></table>


---

# 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/hypersim/automation-api-and-scripting/datalogger-api/python-datalogger-api-reference/class-triggerconfig.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.
