You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

classification-1-testing.lua 677B

123456789101112131415161718192021222324252627282930
  1. sent = false
  2. function initialize(box)
  3. dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua")
  4. sent = false;
  5. end
  6. function uninitialize(box)
  7. end
  8. function process(box)
  9. while box:keep_processing() and sent == false do
  10. current_time = box:get_current_time() + 1
  11. box:send_stimulation(1, OVTK_StimulationId_Label_01, current_time, 0)
  12. box:send_stimulation(1, OVTK_StimulationId_Label_02, current_time+10, 0)
  13. box:send_stimulation(1, OVTK_StimulationId_Label_03, current_time+20, 0)
  14. box:send_stimulation(1, OVTK_StimulationId_ExperimentStop, current_time+30, 0)
  15. sent = true
  16. box:sleep()
  17. end
  18. end