„scenarios/scripts/p300-tactile-stimulator.lua“ ändern
This commit is contained in:
parent
f198fd7a69
commit
d1b78e738e
@ -29,7 +29,6 @@ function is_element(matrix, value)
|
|||||||
end
|
end
|
||||||
--this function creates a sequence of stimulations by shuffeling the values of the given stim_matrix
|
--this function creates a sequence of stimulations by shuffeling the values of the given stim_matrix
|
||||||
function create_sequence(matrix)
|
function create_sequence(matrix)
|
||||||
math.randomseed(os.time())
|
|
||||||
local stim_matrix = {}
|
local stim_matrix = {}
|
||||||
local stim_code = 0
|
local stim_code = 0
|
||||||
local i = 1
|
local i = 1
|
||||||
@ -45,6 +44,9 @@ end
|
|||||||
|
|
||||||
-- this function is called when the box is initialized
|
-- this function is called when the box is initialized
|
||||||
function initialize(box)
|
function initialize(box)
|
||||||
|
--randomseed
|
||||||
|
math.randomseed(os.time())
|
||||||
|
|
||||||
--load stimulation codes
|
--load stimulation codes
|
||||||
dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua")
|
dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user