Psychtoolbox with function running continuously in background

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 ? 

Please any suggestions are highly appreciated. 

Thank you 

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