|
|
@@ -49,23 +49,21 @@ function initialize(box) |
|
|
|
dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua")
|
|
|
|
|
|
|
|
--load box settings
|
|
|
|
row_base = _G[box:get_setting(2)]
|
|
|
|
col_base = _G[box:get_setting(3)]
|
|
|
|
n_tactilos = box:get_setting(4)
|
|
|
|
n_repetitions = box:get_setting(5)
|
|
|
|
flash_duration = box:get_setting(7)
|
|
|
|
noflash_duration = box:get_setting(8)
|
|
|
|
inter_repetition_delay = box:get_setting(9)
|
|
|
|
inter_trial_delay = box:get_setting(10)
|
|
|
|
send_toggle = _G[box:get_setting(11)]
|
|
|
|
time_to_send = box:get_setting(13)
|
|
|
|
row_base = _G[box:get_setting(2)]
|
|
|
|
n_tactilos = box:get_setting(3)
|
|
|
|
n_repetitions = box:get_setting(4)
|
|
|
|
n_trials = box:get_setting(5)
|
|
|
|
flash_duration = box:get_setting(6)
|
|
|
|
noflash_duration = box:get_setting(7)
|
|
|
|
inter_repetition_delay = box:get_setting(8)
|
|
|
|
inter_trial_delay = box:get_setting(9)
|
|
|
|
send_toggle = _G[box:get_setting(10)]
|
|
|
|
free_spelling = box:get_setting(11)
|
|
|
|
time_to_send = box:get_setting(12)
|
|
|
|
|
|
|
|
if box:get_setting(12) == 'true' then
|
|
|
|
free_spelling = true
|
|
|
|
--Set number of trials to 1 in free spelling mode
|
|
|
|
if free_spelling == 'true' then
|
|
|
|
n_trials = 1
|
|
|
|
else
|
|
|
|
free_spelling = false
|
|
|
|
n_trials = box:get_setting(6)
|
|
|
|
end
|
|
|
|
|
|
|
|
--Lua variables
|
|
|
@@ -116,7 +114,7 @@ function process(box) |
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
if not free_spelling then
|
|
|
|
if free_spelling == 'false' then
|
|
|
|
-- end experiment if set to copy spelling
|
|
|
|
box:send_stimulation(1, OVTK_StimulationId_ExperimentStop ,box:get_current_time() , 0)
|
|
|
|
send = false
|