> 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/other-tools/how-to-combine-imotions-with-presentation-neurobehavioral-systems.md).

# How to combine iMotions with Presentation (Neurobehavioral Systems)

Record the Presentation (Neurobehavioral Systems) screen in iMotions Lab with a frame grabber and receive its stimulus events as markers via LSL.

## 1. Introduction

iMotions can be combined with Presentation ([Neurobehavioral Systems Inc.](https://www.neurobs.com/)), where iMotions can be used to record the stimulation screen from Presentation and further receives incoming events (markers/triggers).

The setup can be done on a single computer with two video outputs (dual graphics card). However, if accurate timing in Presentation is required, it is recommended to run Presentation and iMotions on two separate computers which are connected via the network.

Note that the recommended setup requires the iMotions API as well as a frame grabber.

While the visual stimulation and the recording of the respondent's responses (button presses) is done on the Presentation PC, the biosensor data (here, emotion detection via webcam capture) is collected and synchronized with the screen capture on the iMotions PC. Also, iMotions can receive incoming events, allowing you to analyze the data time-locked to any events that were specified in Presentation.

## 2. Send Event Markers from Presentation to iMotions

First, Presentation has to be configured in order to allow sending event triggers via TCP-IP:

1. Download the LSL (Lab Streaming Layer) Data Port Extension, `LSL_Data_Port_Extension.zip`. Sign in to the [partner files on my.imotions.com](https://my.imotions.com/#downloads/partners) with your iMotions account; the file is under **Neurobehavioral Systems**. It is also available from the Neurobs website if you sign in with your Neurobs account.
2. Install the data port extension above: <https://www.neurobs.com/pres_docs/html/03_presentation/11_extensions/01_extension_manager.htm>
3. Configure the extension (click to enlarge):

   ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-a4be0a1cdd9a59b7cf34686afc7af02837bc98d3%2F2b7529abf6_iyh17k5qsuqpckbntjaamg.webp?alt=media)
4. Modify the experiment to send picture markers (using the Lab Streaming Layer data port):

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

After this, please configure the iMotions PC:

1. Launch the Lab streaming application (that forwards events to iMotions).
2. Download "LabStreamingBeta.zip" - available as an attachment at the bottom of this article.
3. Then extract into a folder and run from a command line window `C:\LabStreaming>Labstreaming 192.168.1.116`

   Where the IP address is set to the computer running iMotions. This application must be running in order for iMotions to receive any marker events.
4. Configure iMotions to handle the marker reception (only needs to be done once): Click Preferences > Global Settings > tab "API", and select "Enable event reception". Click "OK" to close the dialog:

   ![The API tab of Global Settings with Enable event reception selected and its port](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-22b774c63facbb2059b600b4e832977622e78d41%2Flab_global-settings_api_event-reception.png?alt=media)
5. Set up a study in iMotions - Remember to check "Enable External Events API":

   ![The Select sensors page of the study wizard with External Events API selected](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-94f171208b5a1a3ae2f31846a8a1342e1182eb62%2Flab_study-wizard_sensors_mobile-external-events-api.png?alt=media)
6. After data collection you should have a study containing marker events. Markers are named “Presentation\_Picture” and annotation is the corresponding name of the stimuli:

   StudyName ExportDate Name Age Gender StimulusName SlideType EventSource Timestamp MediaTime PostMarker Annotation LiveMarker KeyStroke MarkerText Presentation 20150910 Ulmert 5 MALE Presentation TestImage UI 44395 44395 **Presentation\_Picture** ExternalMarker UebungA1 Presentation 20150910 Ulmert 5 MALE Presentation TestImage UI 50388 50388 **Presentation\_Picture** ExternalMarker Uebungarousal Presentation 20150910 Ulmert 5 MALE Presentation TestImage UI 52068 52068 **Presentation\_Picture** ExternalMarker Uebungvalence Presentation 20150910 Ulmert 5 MALE Presentation TestImage UI 54162 54162 **Presentation\_Picture** ExternalMarker UebungM1 Presentation 20150910 Ulmert 5 MALE Presentation TestImage UI 63659 63659 **Presentation\_Picture** ExternalMarker UebungA2 Presentation 20150910 Ulmert 5 MALE Presentation TestImage UI 69631 69631 **Presentation\_Picture** ExternalMarker Uebungarousal
7. Presentation event markers are visualized as red arrows in the timeline of the iMotions Replay:

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

## 3. Video Capture Setup

Since Presentation renders stimuli in a DirectX layer, you cannot use a "screen recording" in iMotions (other screen recording software doesn't work, either). Therefore, the screen capture has to be achieved using a frame grabber, e.g., the [epiphan DVI2USB 3.0.](http://www.epiphan.com/products/dvi2usb-3-0/?gclid=CK20k7vwo8cCFaXNcgodJRQGGQ)

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

**On the Presentation PC:**

1. Connect the monitor to the first video output via DVI / HDMI.
2. Connect the Epiphan DVI2USB 3.0 device to the second video output via DVI.
3. Right-click the Windows Desktop and select "Screen Resolution". In the dialog, select "Duplicate these displays". Click "OK" to close the window. Now the same screen is sent to the monitor and the DVI2USB 3.0 device.

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

**On the iMotions PC:**

1. Connect the Epiphan DVI2USB 3.0 device to a free USB 3.0 port. Windows might have to install drivers. The device will then be listed as USB camera.
2. Open iMotions and click **Preferences > Global Settings** and open the tab **Audio & Video**.
3. Under **Camera Setup**, select **Scene**, select **Enable VideoCam Capture** and select the frame grabber device in the list next to it. Adjust options. Then click **OK** to close the dialog.

   ![The Audio & Video tab of Global Settings with Scene selected and Enable VideoCam Capture on](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-75be75b7ad671cadf92ff51fe3477f2080344138%2Flab_global-settings_audio-video_camera-setup.png?alt=media)
4. In the iMotions sensor bar, along the bottom of the screen, the screen of the Presentation PC is now displayed as scene camera.
5. Create a new study with the following steps: Set up a **mobile device study**, and then select **Environment camera** when selecting the sensors.

   ![The study wizard with Mobile device selected as the study type](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-f3528f32dc2da108d065e5b4e6606cf769a1ebc6%2Flab_study-wizard_study-type_mobile-device.png?alt=media) ![The Select sensors page of the study wizard with Environment camera and Respondent camera with AFFDEX selected](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-2b9097e9f4b166dcb6395042faf730f17f1de001%2Flab_study-wizard_sensors_mobile-camera-affdex.png?alt=media)
6. Click next, then name your study, and then click on create study.
7. Start the recording in iMotions.
8. Start the paradigm in Presentation.
9. Video stream and biosensor data are now recorded synchronized on the iMotions PC (below shown as eye tracking and FACET facial expression analysis) while the stimuli are shown on the Presentation PC.

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

## 4. Eye Tracking and Presentation

If the setup also includes a screen-based eye tracker, please follow these steps:

1. Connect the iMotions computer with the screen of the Presentation PC. The screen now has 2 inputs: the "Presentation input" (from the Presentation PC) and the "iMotions input" (from the iMotions PC). Change the input of the screen to the "iMotions input".
2. Mount the eye tracker on the screen of the Presentation PC.
3. Connect the eye tracker with the iMotions PC.
4. Start iMotions and click "Preferences" >"Global Settings" > tab "Eye tracking". Select the check-box "Use standard calibration for scene recording" and click "OK". Make sure that the calibration is displayed on the screen.

   ![The Eye tracking tab of Global Settings with Use standard calibration for scene recording selected](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-2dc88a50a6c0820296b289fbf3f61ff10e220b74%2Flab_global-settings_eye-tracking_standard-calibration-for-scene-recording.png?alt=media)
5. Run the study. The screen input is set to the iMotions PC so that the eye tracker calibration is displayed on the screen. Once the calibration has been finished, switch the input of the screen back to the Presentation PC. Now execute the paradigm in Presentation.

## Attachments

{% file src="/files/Na6pu0Xzg10N1mBLgDS0" %}
LabStreamingBeta.zip
{% endfile %}


---

# 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/other-tools/how-to-combine-imotions-with-presentation-neurobehavioral-systems.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.
