# Appendix 6 – Setting up a digital trigger in ReXgen

Create a new configuration as per your requirement

Add a Digital channel to the configuration.

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

Configure the trigger.

Click on Triggers >> New Trigger, Select Trigger Action as Start Logging, and click Next.

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

Enter the trigger action settings;

Log time (If required), Pre-trigger time and Debounce, then click Next

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

Choose Trigger Type as Digital Channel

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

By default, Digital Channels will be 1, and you need to wire the switch between Digital PIN and the GND and choose the condition as falls or changes.

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

Click Next, and save the trigger.

Send the configuration to the logger.

The logger will start buffering the data for the duration of the pre-log time given; when the trigger becomes true, it starts writing the data for the given log duration or continuously as per your settings.

### The Digital and Analog Port:

<figure><img src="/files/83MheWwDX9jdAix7EsMy" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions: 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:

```
GET https://docs.influxtechnology.com/support_guides/rexdesk-configuration-software-s/rexdesk-rexgen-series-configuration-software/rexdesk-manual/appendix-6-setting-up-a-digital-trigger-in-rexgen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
