-
Notifications
You must be signed in to change notification settings - Fork 0
/
leg_on_pause_simple_series.sce
62 lines (47 loc) · 1.55 KB
/
leg_on_pause_simple_series.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
default_font_size = 48;
response_matching = simple_matching;
active_buttons = 5;
button_codes = 1, 2, 0, 11, 22;
begin;
TEMPLATE "words.tem";
TEMPLATE "semantic_block.tem";
trial {
trial_duration = forever;
trial_type = specific_response;
terminator_button = 3;
picture {
text {
caption = "Ready";
};
x = 0; y = 0;
};
} start_trial;
begin_pcl;
sub semantic_block(string caption_1, string caption_2, string caption_3, string caption_4)
begin
caption_1_text.set_caption(caption_1);
caption_1_text.redraw();
show_caption_1.set_event_code(caption_1);
caption_2_text.set_caption(caption_2);
caption_2_text.redraw();
show_caption_2.set_event_code(caption_2);
caption_3_text.set_caption(caption_3);
caption_3_text.redraw();
show_caption_3.set_event_code(caption_3);
caption_4_text.set_caption(caption_4);
caption_4_text.redraw();
show_caption_4.set_event_code(caption_4);
sound_response_recording_event.set_base_filename("C:/Documents and Settings/Admin/Рабочий стол/Experiments/Nastia PhD/recorded_responces/"+
logfile.subject()+"/response");
start_trial.present();
current_semantic_block.present();
end;
intro_text.set_caption("Серия с нажатиями кнопок ногами\nПростая\nНажимать во время паузы");
intro_text.redraw();
show_intro_title_trial.present();
int i = 1;
loop until i >= word_array.count()
begin
semantic_block(word_array[i].caption(), word_array[i+1].caption(), word_array[i+2].caption(), word_array[i+3].caption());
i = i + 4;
end;