> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/study-setup-and-design/stimuli/advanced-stimulus-markers/api-setting-receiving-marker-events-from-cedrus-stimtracker-duo-quad.md).

# API Setting: Receiving marker events from Cedrus StimTracker Duo/Quad

Receive photodiode marker events from a Cedrus StimTracker Duo or Quad over USB in iMotions Lab and find them in the sensor data export.

The second generation Cedrus StimTrackers (Duo/Quad) support sending events over a mini USB cable. This is tested using **iMotions 10.1.16** or newer.

## Setup

No special setup should be required; device drivers should be installed automatically when the powered StimTracker is connected to the PC’s USB port using the **mini USB** cable (as shown in the image below) connected on the back of the StimTrackers Duo/Quad.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-8f5e63c5a06c314d1084192d912b96cf7ed9091a%2Fae1ec14342_image-1752056911218.webp?alt=media)

## Configure iMotions

In the global settings dialog

* Select the StimTracker overlay option in the Slide Show tab if you want iMotions to automatically paint a black/white square in one of the corners during the slideshow.
* In the API tab, activate the “StimTracker Markers” option. The event receiving API does not need to be activated for recording StimTracker events. Neither does it need to be activated for the study, in the Study-Sensors tab.

![The API tab of Global Settings with StimTracker Markers selected](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-0e3a1cb5cd71fd0e5de468cf5d53c5779a934a14%2Flab_global-settings_api_stimtracker-markers.png?alt=media)

**NOTE:** Ensure the StimTracker is switched on before you activate the option in global settings. If you forget to do this, you will need to restart iMotions after the StimTracker is turned on.

## Verify Setup

Place the light diode on a light area of the screen

* The light on the front of the StimTracker should light up to indicate the change of state
* A marker should be generated within the iMotions software, which should be visible for a few seconds on the Event API component.

When the diode is moved to a dark area of the screen, the light on the StimTracker should go out, and another marker should be triggered in iMotions.

After data collection, the sensor data export should contain markers for each change in photodiode state as shown in the images below.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-78f81c5b49b4d0125e6bafa711cb6a0a588d8628%2Fbc762e78a4_image-1752057104340.webp?alt=media) ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-5441b584301d1fb0165bcd3f720708f019cc1c63%2Ff32e0fed9e_image-1752057158974.webp?alt=media)

When you export the SensorData file, you will find one column called "**MarkerName**" (see image below) showing when the photodiode from the StimTracker changed state.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-5678f743feca2388ba9b0f84e544341161485021%2F5261871470_image-1752057412486.png?alt=media)


---

# 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://help.imotions.com/lab/study-setup-and-design/stimuli/advanced-stimulus-markers/api-setting-receiving-marker-events-from-cedrus-stimtracker-duo-quad.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.
