# Introduction to experiments

**URL:** <https://mworks.discourse.group/t/introduction-to-experiments/1093>\
**Category:** Support\
**Created:** [May 12, 2025, 7:00pm UTC](https://mworks.discourse.group/t/introduction-to-experiments/1093 "2025-05-12T19:00:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vgs](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vgs](https://mworks.discourse.group/u/vgs)\
**Post date:** [May 12, 2025, 7:00pm UTC](https://mworks.discourse.group/t/introduction-to-experiments/1093/1 "2025-05-12T19:00:08Z")

</div>

Dear Chris,  
I hope you are doing well!

I am a beginner in coding and I have to perform a decision-making experiment and I need some help.  
I want my code to include:  
**1. Text to include some information about the experiment (AND if that is possible)**  
**2. Connect it to the eye trackers, keyboard and mouse**

iodevice/usbhid\_generic keyboard\_device {  
usage\_page = 1;  
usage = 6;  
}

iochannel/usbhid\_input\_channel keyboard\_input {  
device = keyboard\_device;  
usage\_page = 7;  
usage = 0;  
value = selected\_index;  
}

iodevice/eyelink\_tracker eye\_tracker {}

**3. Around 7-8 trials with blue circles, with randomized positions, of which 1 has also light blue inside. The correct choice is always the double-colored circle**

Example of code:

stimulus/ellipse circle\_4 {  
x\_size = 0.1;  
y\_size = 0.1;  
position = [-0.3, 0.0];  
color = [0, 0, 1];  
}

stimulus/ellipse circle\_5  
{  
x\_size = 0.1;  
y\_size = 0.1;  
position = [-0.1, 0.0];  
color = [0.5, 0.7, 1];  
}

stimulus\_group circles  
{  
stimuli = [circle\_1, circle\_2, circle\_3, circle\_4, circle\_5,  
circle\_6, circle\_7, circle\_8, circle\_9, circle\_10];  
}

**4. Sound when the player chooses the correct circle**

stimulus/sound correct\_sound  
{  
path = ‘sounds/correct.wav’;  
}

stimulus/sound incorrect\_sound  
{  
path = ‘sounds/incorrect.wav’;  
}

**5. How to perform the protocol**  
**6. A scoreboard on the top right corner.**

Thanks a lot beforehand,  
Cheers,  
Vag

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [May 13, 2025, 6:25pm UTC](https://mworks.discourse.group/t/introduction-to-experiments/1093/2 "2025-05-13T18:25:31Z")

</div>

Hi,

Can you please tell me what lab you are affiliated with?

Thanks,  
Chris Stawarz

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [August 5, 2025, 2:34pm UTC](https://mworks.discourse.group/t/introduction-to-experiments/1093/3 "2025-08-05T14:34:42Z")

</div>


