# Psychtoolbox with function running continuously in background

**URL:** <https://psychtoolbox.discourse.group/t/psychtoolbox-with-function-running-continuously-in-background/39>\
**Category:** Uncategorized\
**Created:** [February 5, 2019, 2:24am UTC](https://psychtoolbox.discourse.group/t/psychtoolbox-with-function-running-continuously-in-background/39 "2019-02-05T02:24:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhattarairasa](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@bhattarairasa](https://psychtoolbox.discourse.group/u/bhattarairasa)\
**Post date:** [February 5, 2019, 2:24am UTC](https://psychtoolbox.discourse.group/t/psychtoolbox-with-function-running-continuously-in-background/39/1 "2019-02-05T02:24:13Z")

</div>

Hello all,

I am new to Psychtoolbox. I have my research on EEG and visual stimulus. I want to show some visual stimulus while recording EEG. I have already prepared a visual stimulus using Psychtoolbox. How can I run the EEG script (The one which records the EEG data) in the background while the visual stimulus script is running in foreground ?&nbsp;

Please any suggestions are highly appreciated.&nbsp;

Thank you&nbsp;

---

<div class="post-metadata">

**Author:** ![xrli2002](https://avatars.discourse-cdn.com/v4/letter/x/48db29/32.png) [@xrli2002](https://psychtoolbox.discourse.group/u/xrli2002)\
**Post date:** [February 5, 2019, 10:17pm UTC](https://psychtoolbox.discourse.group/t/psychtoolbox-with-function-running-continuously-in-background/39/2 "2019-02-05T22:17:34Z")

</div>

I won't say this is impossible, but for many practical reasons, most people use two computers for stimulus and EEG recording.
-Xiangrui
