> For the complete documentation index, see [llms.txt](https://docs.influxtechnology.com/support_guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.influxtechnology.com/support_guides/rexdesk-configuration-software-s/rexdesk-rexgen-series-configuration-software/rexdesk-manual/quick-start-guide/advanced-configuration/trigger-based-logging.md).

# Trigger-Based Logging

![](/files/oGVFSkKSCAk8weTBO9LW)Clicking the trigger icon displays the trigger window.

Click on the 'New trigger' to add a new trigger action.

<div align="left"><figure><img src="/files/mVonvzIuz6ac5XVSEAZU" alt=""><figcaption></figcaption></figure></div>

**'Start logging'** and '**Stop logging'** can be added as trigger actions.

‘**Log Time (sec)**’ enables the logger to log for the given time after a trigger occurs.

‘**Pre–Trigger Time (sec)**’ specifies the duration for which pre-trigger data must be saved.

‘**Debounce (msec)**’ time is when the switch does not register another click, relevant when you use Digital I/P.

<div align="left"><figure><img src="/files/9OscTBQIkatt4pfftXku" alt=""><figcaption></figcaption></figure></div>

Click ‘Next’ to select the trigger type.

Select bus and trigger type and click ‘Next’.

## Defining Trigger Conditions

1. **Trigger by CAN identifier (Ident)–** This option will enable the user to specify the CAN/CAN FD ID on which the trigger should be active.

![](/files/j2WHRj6bmnjLGtdFx7uO)

ReXdesk allows the user to specify the CAN manually/CAN FD ID or import a DBC file.

2. **Trigger by parameter–** This option will enable the user to specify the parameter/signal value on which the trigger should be active.

![](/files/agyF9T5i5b76NzAd1ZPK)

ReXdesk allows the user to import signals from a DBC file.

3. **Trigger by DM1 J1939 counter–** This option will enable the user to set up a trigger based on the increase, decrease or change in the DM1 counter.

![](/files/c8QK4tBwE80nNWq0IPyy)

ReXdesk allows the user to specify the source address of the DM1 message, which the logger should be monitoring.

4. **Trigger by digital channel–** A digital trigger will be enabled only when the digital input is present in the configuration. Refer to[ <mark style="color:blue;">Appendix</mark>](/support_guides/rexdesk-configuration-software-s/rexdesk-rexgen-series-configuration-software/rexdesk-manual/appendix-6-setting-up-a-digital-trigger-in-rexgen.md) for setting up digital triggers in ReXgen.

<figure><img src="/files/puFyN0aw3ODanRQ3d8Tv" alt=""><figcaption></figcaption></figure>

Drag and drop the ‘Dig In’ tool to the channels in the configuration window.

Select the digital channel and sampling rate, and then click add.

Now, you can proceed with creating triggers based on the digital input.

This option will enable users to set up triggers based on the rising or falling edge or digital input changes. The digital bus's default state is high.

![](/files/K22YAAa9iMOkqrKAxN27)

When a trigger is present in the configuration, the Storage icon will change to indicate it.

![](/files/udZavrGUrWSaxhIaQCAD)

{% hint style="info" %}

#### Notes:

* The digital bus's default state is high; if you want to use the active trigger state as high, please GND the Digital PINs initially.
  {% endhint %}

[<mark style="color:blue;">Video Tutorial</mark>](https://youtu.be/kJyehT5sz3E?si=_pkDZck_UAtEVMkJ)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.influxtechnology.com/support_guides/rexdesk-configuration-software-s/rexdesk-rexgen-series-configuration-software/rexdesk-manual/quick-start-guide/advanced-configuration/trigger-based-logging.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
