Skip to content

Commit

Permalink
add stims root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
FEIS-dataset committed Aug 15, 2019
0 parents commit 037b959
Show file tree
Hide file tree
Showing 892 changed files with 5,307 additions and 0 deletions.
Binary file added README.txt
Binary file not shown.
167 changes: 167 additions & 0 deletions experiment-timeline.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@

function initialize(box)

dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua")

-- each stimulation sent that gets rendered by Display Cue Image box
-- should probably have a little period of time before the next one or the box wont be happy

baseline_duration = 5
cue_duration = 5
prepare_articulators_duration = 1
thinking_duration = 5
speaking_duration = 5
rest_duration = 5
post_trial_duration = 1

sequence = {
OVTK_StimulationId_Number_04,
OVTK_StimulationId_Label_0D,
OVTK_StimulationId_Label_0E,
OVTK_StimulationId_Label_11,
OVTK_StimulationId_Label_18,
OVTK_StimulationId_Label_1F,
OVTK_StimulationId_Label_15,
OVTK_StimulationId_Label_0F,
OVTK_StimulationId_Label_0A,
OVTK_StimulationId_Label_05,
OVTK_StimulationId_Label_0C,
OVTK_StimulationId_Number_03,
OVTK_StimulationId_Label_19,
OVTK_StimulationId_Label_1D,
OVTK_StimulationId_Label_13,
OVTK_StimulationId_Label_12,
OVTK_StimulationId_Label_1D,
OVTK_StimulationId_Label_05,
OVTK_StimulationId_Label_1F,
OVTK_StimulationId_Label_19,
OVTK_StimulationId_Label_0C,
OVTK_StimulationId_Label_0E,
OVTK_StimulationId_Label_13,
OVTK_StimulationId_Label_0A,
OVTK_StimulationId_Label_11,
OVTK_StimulationId_Label_18,
OVTK_StimulationId_Label_15,
OVTK_StimulationId_Number_04,
OVTK_StimulationId_Label_12,
OVTK_StimulationId_Label_0F,
OVTK_StimulationId_Number_03,
OVTK_StimulationId_Label_0D,
OVTK_StimulationId_Number_03,
OVTK_StimulationId_Label_15,
OVTK_StimulationId_Label_13,
OVTK_StimulationId_Label_0C,
OVTK_StimulationId_Label_05,
OVTK_StimulationId_Label_0E,
OVTK_StimulationId_Number_04,
OVTK_StimulationId_Label_0F,
OVTK_StimulationId_Label_0A,
OVTK_StimulationId_Label_11,
OVTK_StimulationId_Label_1D,
OVTK_StimulationId_Label_19,
OVTK_StimulationId_Label_12,
OVTK_StimulationId_Label_18,
OVTK_StimulationId_Label_1F,
OVTK_StimulationId_Label_0D,
OVTK_StimulationId_Number_03,
OVTK_StimulationId_Label_1F,
OVTK_StimulationId_Label_05,
OVTK_StimulationId_Label_0F,
OVTK_StimulationId_Label_11,
OVTK_StimulationId_Label_13,
OVTK_StimulationId_Label_0E,
OVTK_StimulationId_Label_1D,
OVTK_StimulationId_Label_0C,
OVTK_StimulationId_Number_04,
OVTK_StimulationId_Label_18,
OVTK_StimulationId_Label_12,
OVTK_StimulationId_Label_0D,
OVTK_StimulationId_Label_0A,
OVTK_StimulationId_Label_19,
OVTK_StimulationId_Label_15,
OVTK_StimulationId_Label_0A,
OVTK_StimulationId_Label_13,
OVTK_StimulationId_Label_12,
OVTK_StimulationId_Label_1F,
OVTK_StimulationId_Label_1D,
OVTK_StimulationId_Label_18,
OVTK_StimulationId_Label_0D,
OVTK_StimulationId_Number_04,
OVTK_StimulationId_Label_0E,
OVTK_StimulationId_Label_15,
OVTK_StimulationId_Number_03,
OVTK_StimulationId_Label_0C,
OVTK_StimulationId_Label_19,
OVTK_StimulationId_Label_05,
OVTK_StimulationId_Label_11,
OVTK_StimulationId_Label_0F,
OVTK_StimulationId_Label_1D,
OVTK_StimulationId_Label_0C,
OVTK_StimulationId_Number_04,
OVTK_StimulationId_Label_11,
OVTK_StimulationId_Label_19,
OVTK_StimulationId_Label_0E,
OVTK_StimulationId_Label_18,
OVTK_StimulationId_Label_15,
OVTK_StimulationId_Label_0D,
OVTK_StimulationId_Label_13,
OVTK_StimulationId_Label_1F,
OVTK_StimulationId_Label_12,
OVTK_StimulationId_Label_0A,
OVTK_StimulationId_Label_0F,
OVTK_StimulationId_Number_03,
OVTK_StimulationId_Label_05,
}

end

function process(box)

local t = 0

-- Delays before the trial sequence starts

box:send_stimulation(1, OVTK_StimulationId_BaselineStart, t, 0)
t = t + baseline_duration

-- creates each trial
for i = 1, #sequence do

box:send_stimulation(1, OVTK_GDF_Start_Of_Trial, t, 0)

--phoneme
box:send_stimulation(1, OVTK_StimulationId_Label_00, t, 0)
box:send_stimulation(1, sequence[i], t, 0)
t = t + cue_duration

--prepare_articulators
box:send_stimulation(1, OVTK_GDF_Tongue_Movement, t, 0)
t = t + prepare_articulators_duration

--thinking
box:send_stimulation(1, OVTK_GDF_Feedback_Continuous, t, 0)
t = t + thinking_duration

--speaking
box:send_stimulation(1, OVTK_GDF_Tongue, t, 0)
t = t + speaking_duration

--rest
box:send_stimulation(1, OVTK_StimulationId_RestStart, t, 0)
t = t + rest_duration

-- end of thinking epoch and trial
box:send_stimulation(1, OVTK_StimulationId_VisualStimulationStop, t, 0)
box:send_stimulation(1, OVTK_StimulationId_RestStop, t, 0)
t = t + post_trial_duration
box:send_stimulation(1, OVTK_GDF_End_Of_Trial, t, 0)
end

-- send end for completeness
box:send_stimulation(1, OVTK_GDF_End_Of_Session, t, 0)
t = t + 5

-- used to cause the acquisition scenario to stop and denote final end of file
box:send_stimulation(1, OVTK_StimulationId_ExperimentStop, t, 0)

end
Loading

0 comments on commit 037b959

Please sign in to comment.