Skip to content

Commit

Permalink
Merge pull request #2 from CognitiveNeuroLab/version2
Browse files Browse the repository at this point in the history
Adding a second version where people have to click for the opposite color.
  • Loading branch information
DouweHorsthuis authored Nov 29, 2021
2 parents e5ab124 + 87821b9 commit 5a8566d
Show file tree
Hide file tree
Showing 11 changed files with 399 additions and 39 deletions.
Empty file.
61 changes: 30 additions & 31 deletions src/Presentation/swat_cys.exp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ver>20.1</ver>
<efn>C:\Users\Presentation\Desktop\Active Projects\swat_cystinosis\Presentation\swat_cys.exp</efn>
<efn>E:\Finished paradigms\swat_cystinosis\Presentation\swat_cys.exp</efn>
<author>cystinosis update: Douwe</author>
<con>
<pause>P</pause>
Expand Down Expand Up @@ -40,11 +40,12 @@
<lfn></lfn>
</docs>
<dp_list></dp_list>
<dsd>C:\Users\Presentation\Desktop\Active Projects\swat_cystinosis\Stimuli</dsd>
<dsd>E:\Finished paradigms\swat_cystinosis\Stimuli</dsd>
<dxv>8</dxv>
<efs>
<filename>C:\Users\Presentation\Desktop\Active Projects\swat_cystinosis\Presentation\swat_cys.sce</filename>
<filename>C:\Users\Presentation\Desktop\Active Projects\swat_cystinosis\Presentation\swat_cys.pcl</filename>
<filename>E:\Finished paradigms\swat_cystinosis\Presentation\swat_cys_1.sce</filename>
<filename>E:\Finished paradigms\swat_cystinosis\Presentation\swat_cys_2.sce</filename>
<filename>E:\Finished paradigms\swat_cystinosis\Presentation\swat_cys_1.pcl</filename>
</efs>
<exclusive_mouse>1</exclusive_mouse>
<exp_version></exp_version>
Expand Down Expand Up @@ -82,7 +83,10 @@
<pass></pass>
<ssa>
<asn>
<sid>-1</sid>
<sid>-2</sid>
</asn>
<asn>
<sid>-2</sid>
</asn>
</ssa>
</man>
Expand All @@ -98,6 +102,7 @@
<ccc>0</ccc>
<do_upload>
<sce>1</sce>
<sce>1</sce>
</do_upload>
<host></host>
<id>{8E5BD0A3-FFFD-4687-A98A-C5464FAE8562}</id>
Expand All @@ -124,7 +129,7 @@
<pindex>4294967295</pindex>
</chan>
</ip_chans>
<lfd>C:\Users\Presentation\Desktop\Active Projects\swat_cystinosis\Logfiles</lfd>
<lfd>E:\Finished paradigms\swat_cystinosis\Logfiles</lfd>
<lnb>1</lnb>
<lno>3</lno>
<log>
Expand Down Expand Up @@ -167,9 +172,9 @@
<il>0</il>
<ivm>0</ivm>
<mtype>dig</mtype>
<piai>LPT3</piai>
<piai>LPT1</piai>
<pian>Parallel Port</pian>
<pihpn>LPT3</pihpn>
<pihpn>LPT1</pihpn>
<pindex>1</pindex>
<rs>1</rs>
<rt>0</rt>
Expand Down Expand Up @@ -297,25 +302,6 @@
<dead_zone>0</dead_zone>
<max>1000</max>
<min>-1000</min>
<name>X Axis</name>
<saturation>1</saturation>
</axis>
<axis>
<dead_zone>0</dead_zone>
<max>1000</max>
<min>-1000</min>
<name>Y Axis</name>
<saturation>1</saturation>
</axis>
<device_type>1</device_type>
<dx_device_type>20</dx_device_type>
<name>WingMan Precision USB</name>
</device>
<device>
<axis>
<dead_zone>0</dead_zone>
<max>1000</max>
<min>-1000</min>
<name>X-axis</name>
<saturation>1</saturation>
</axis>
Expand Down Expand Up @@ -482,7 +468,20 @@
<offset>12</offset>
</idv>
<overrides></overrides>
<sfn>C:\Users\Presentation\Desktop\Active Projects\swat_cystinosis\Presentation\swat_cys.sce</sfn>
<sfn>E:\Finished paradigms\swat_cystinosis\Presentation\swat_cys_1.sce</sfn>
</sce>
<sce>
<idv>
<device_type>2</device_type>
<dx_device_type>18</dx_device_type>
<ibn>Button 0</ibn>
<idn>Mouse</idn>
<index>0</index>
<label></label>
<offset>12</offset>
</idv>
<overrides></overrides>
<sfn>E:\Finished paradigms\swat_cystinosis\Presentation\swat_cys_2.sce</sfn>
</sce>
<sct>
<capture_device>
Expand All @@ -501,7 +500,7 @@
<combine>0</combine>
<ignore>1000</ignore>
<isr>0</isr>
<max_rec_dur>10</max_rec_dur>
<max_rec_dur>60</max_rec_dur>
<md></md>
<mio></mio>
<off_inter>200</off_inter>
Expand All @@ -515,7 +514,7 @@
<sde>
<buffer_length>1000</buffer_length>
<custom_buf>primary</custom_buf>
<default>0</default>
<default>1</default>
<dup_channels>0</dup_channels>
<ex_period>10</ex_period>
<halt_on_underrun>1</halt_on_underrun>
Expand All @@ -527,7 +526,7 @@
<side_speakers>1</side_speakers>
<use_rewind_distance>0</use_rewind_distance>
</sde>
<sdv>Speakers (2- Sound Blaster Audigy 5/Rx)</sdv>
<sdv>Primary Sound Driver</sdv>
<show_dis>1</show_dis>
<show_parm>1</show_parm>
<show_term>1</show_term>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ begin
wait_tr = wait_tr +1;
end;
wait_trial.present();

type_trial.present();
loop
start = 1
until
Expand Down Expand Up @@ -365,8 +365,8 @@ begin

change.add_part(my_cross, 0, 0);

vis_se.set_event_code(the_code_str);
vis_se.set_port_code(the_code);
trigger_event.set_event_code(the_code_str);
trigger_event.set_port_code(the_code);
##ET stuff
# this is also added to the eyelink file and will make it possible for you to afterwards see when a new trail started using the EDF file. You will need this to be able to tell which trial happened.
EyeLink.send_command("record_status_message 'trial " + string(start) + "/" + string(total_trials) + "'"); #in this case i = the int that counts the trials, you should both change the 'visual trial and the "/start'"
Expand Down Expand Up @@ -398,8 +398,8 @@ begin

change.add_part(my_cross, 0, 0);

vis_se.set_event_code(the_code_str);
vis_se.set_port_code(the_code);
trigger_event.set_event_code(the_code_str);
trigger_event.set_port_code(the_code);
##ET stuff
# this is also added to the eyelink file and will make it possible for you to afterwards see when a new trail started using the EDF file. You will need this to be able to tell which trial happened.
EyeLink.send_command("record_status_message 'trial " + string(start) + "/" + string(total_trials) + "'"); #in this case i = the int that counts the trials, you should both change the 'visual trial and the "/start'"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#instructions are click when Red=Vowel Click when green = Even

#Declaring parameters
active_buttons = 1; # Number of Buttons Used
button_codes = 1; # Button Code (Tag Number)

#refering the PCL file associated with this scenario file
pcl_file = "swat_cys.pcl";
pcl_file = "swat_cys_1.pcl";

#Duration of Port Code (Tag Number) in milliseconds
pulse_width = 5;
Expand Down Expand Up @@ -92,6 +94,17 @@ trial{ # the first stim is too quick if there is no delay. This trial puts 2sec
}code_event;
}wait_trial;

#douwe edit
trial{ # This is to indentify what participants are responding to
trial_duration = 250; #2 sec before the first stim
stimulus_event {
picture default;
time=100;
code = "Red=Vowel Green=Even";
port_code = 251;
}type_event;
}type_trial;
#douwe edit

#Visual Trial
trial
Expand Down
150 changes: 150 additions & 0 deletions src/Presentation/swat_cys_2.sce
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
#instructions are click when Green=Vowel Click when Red = Even

#Declaring parameters
active_buttons = 1; # Number of Buttons Used
button_codes = 1; # Button Code (Tag Number)

#refering the PCL file associated with this scenario file
pcl_file = "swat_cys_1.pcl";

#Duration of Port Code (Tag Number) in milliseconds
pulse_width = 5;

#Send and Register Codes
write_codes = true;

#Type of Trials Used
response_matching = simple_matching;
scenario_type = trials;

#writing a log file
no_logfile = false;

#Setting Background Color to White
default_background_color = 25, 25, 25;

#Starting Scenario
begin;

text { caption = "+"; font_size = 20; font_color = 255,255,255; } my_cross;

#bitmap {filename = "box.bmp"; } my_box;

#Douwe edit#
#because this is v2 we are flipping what is green and what is red. So I switched all the font colors
#0,255,0=green 255,0,0=Red.
text { caption = "G"; font_size = 65; font_color = 255,0,0; } g_green;
text { caption = "G"; font_size = 65; font_color = 0,255,0; } g_red;
text { caption = "K"; font_size = 65; font_color = 255,0,0; } k_green;
text { caption = "K"; font_size = 65; font_color = 0,255,0; } k_red;
text { caption = "M"; font_size = 65; font_color = 255,0,0; } m_green;
text { caption = "M"; font_size = 65; font_color = 0,255,0; } m_red;
text { caption = "R"; font_size = 65; font_color = 255,0,0; } r_green;
text { caption = "R"; font_size = 65; font_color = 0,255,0; } r_red;

text { caption = "A"; font_size = 65; font_color = 255,0,0; } a_green;
text { caption = "A"; font_size = 65; font_color = 0,255,0; } a_red;
text { caption = "E"; font_size = 65; font_color = 255,0,0; } e_green;
text { caption = "E"; font_size = 65; font_color = 0,255,0; } e_red;
text { caption = "I"; font_size = 65; font_color = 255,0,0; } i_green;
text { caption = "I"; font_size = 65; font_color = 0,255,0; } i_red;
text { caption = "U"; font_size = 65; font_color = 255,0,0; } u_green;
text { caption = "U"; font_size = 65; font_color = 0,255,0; } u_red;


text { caption = "2"; font_size = 65; font_color = 255,0,0; } two_green;
text { caption = "2"; font_size = 65; font_color = 0,255,0; } two_red;
text { caption = "4"; font_size = 65; font_color = 255,0,0; } four_green;
text { caption = "4"; font_size = 65; font_color = 0,255,0; } four_red;
text { caption = "6"; font_size = 65; font_color = 255,0,0; } six_green;
text { caption = "6"; font_size = 65; font_color = 0,255,0; } six_red;
text { caption = "8"; font_size = 65; font_color = 255,0,0; } eight_green;
text { caption = "8"; font_size = 65; font_color = 0,255,0; } eight_red;

text { caption = "3"; font_size = 65; font_color = 255,0,0; } three_green;
text { caption = "3"; font_size = 65; font_color = 0,255,0; } three_red;
text { caption = "5"; font_size = 65; font_color = 255,0,0; } five_green;
text { caption = "5"; font_size = 65; font_color = 0,255,0; } five_red;
text { caption = "7"; font_size = 65; font_color = 255,0,0; } seven_green;
text { caption = "7"; font_size = 65; font_color = 0,255,0; } seven_red;
text { caption = "9"; font_size = 65; font_color = 255,0,0; } nine_green;
text { caption = "9"; font_size = 65; font_color = 0,255,0; } nine_red;
#Douwe edit#

#Creating Picture and Sound Objects That Will be Used for loading the stimuli
picture{ text g_red ; x = -100; y = 0; text g_green; x = 100; y = 0;
text my_cross; x = 0; y = 0; }change;

picture{ text my_cross; x = 0; y = 0; }default;
bitmap { filename = "standard_et.jpg"; preload = true; } et_bit;# for the eyetracker

trial{ #this is the first screen to prepare people
trial_duration = forever; # trial lasts until target
trial_type = specific_response; # button is pressed
terminator_button = 1; # left-Ctrl
picture {
text {caption ="Please double click to start"; font_size = 65;};
x=0;y=0;};
}start_trial;

trial{ # the first stim is too quick if there is no delay.
trial_duration = 250; #250ms before the first stim
stimulus_event {
picture default;
time=100;
code = "201 start recording";
port_code = 201;
}code_event;
}wait_trial;

#douwe edit
trial{ # This is to indentify what participants are responding to
trial_duration = 250; #2 sec before the first stim
stimulus_event {
picture default;
time=100;
code = "Green=Vowel Red = Even";
port_code = 252;
}type_event;
}type_trial;
#douwe edit

#Douwe edit#
#Visual Trial
trial
{ stimulus_event
{
picture change; #Picture Object Associated with trial
time = 0; #After Calling Trial How much time to wait to present stimuli
#duration is 200ms on the occiloscpe (190+10ms after trigger)
} vis_se;
stimulus_event
{
nothing{};
deltat=9;
code = "picture"; #Code sent to logfile
port_code = 255; #Code sent to parallel port
}trigger_event;
stimulus_event
{
picture default;
deltat = 176;
duration = 1796; #is 1.841s on the ossiloscope
code = "isi";
#port_code = 255; #if this is on we can measure the length of stim duration and the length of ISI
} isi_event;
}vis;
#Douwe edit#
#Douwe edit#
trial {
trial_duration = 200;
stimulus_event {
picture {
text {font_size = 25; caption ="Block finished, saving eye tracking data, please wait a moment";};
x=0;y=0;};
code = "end";
port_code = 200;
time = 0;
} event_end;
} end_trial;
#Douwe edit#
6 changes: 5 additions & 1 deletion src/Settings and setup/Setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ The chinrest is positioned so that the participants eyelevel is at 3quarters (no
The chair is positioned so that the participant is most confortable with the chinrest (the chinrest should be moved as few as possible)
If participant cannot reach the floor make sure to put steps between floor and feet (makes kids move less)

Participant always uses mouse to respond
Participant always uses mouse to respond

There are 2 files
Swat_cys_1 #instructions are click when Red=Vowel Click when green = Even
Swat_cys_2 #instructions are click when Green=Vowel Click when Red = Even
Binary file added src/Stimuli/standard_et.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5a8566d

Please sign in to comment.