Event markers for ECG (Biolab)

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2022.2.4
What are you trying to achieve?:
We are currently using Biolab/ECG to collect physiological measures during two different tasks. One during EEG and one during fNIRS. I have the EEG and fNIRS event markers programmed in psychopy but I’m struggling with sending event markers from psychopy to Biolab.

We are attempting to do this over a network as that is how data collection currently happens.

What did you try to make it work?:
I’ve been sent several links on creating a socket (TCP or UDP) that connects with the network and sends the signal but because I’m limited in my programming abilities, I’m at a loss.

This one seemed to be the most clear/helpful but when trying to use the first linked guide I am getting python syntax errors. I also am not sure where to start when trying to edit the code. Goal is to get start and end markers for the routines

Any help would be absolutely wonderful!!

I can probably help you implement this, but would need a pointer to what protocol your Biolab equipment is expecting (e.g. TCP vs UDP, and the content of the messages). Can you provide some of the relevant documentation?

Hi Michael, thank you for your response. I am uploading the task file.

The goal is to have a start marker of 1 for the beginning of the block 1 routine/trial and 2 for the end of the block 1 routine/trial.

I currently have it programmed to communicate with our eeg system and are placed as follows:

  • marker of 1 at the end of block_1 rest to show start of block_1 + ISI routine loop
  • marker of 2 at the start of block_2 rest to show end of block_1 + ISI routine loop

image of experiment attached below for convenience

would like to mirror those eeg markers as much as possible for our ecg recordings.

Thank you for your help! Would be able to provide more information if needed!

flanker-eeg_task.psyexp (243.9 KB)