melizalab / jill

realtime electrophysiology, behavioral, and acoustic recording system
http://melizalab.github.io/jill
3 stars 5 forks source link

control script for running experiments #21

Closed dmeliza closed 9 months ago

dmeliza commented 9 months ago

Running an audio neurophysiology experiment with jill requires several modules to be started and connected properly. It's not reasonable to expect the user to do this on their own, so we need a master control script that will do the following:

  1. Make sure the user provided some key attributes - experimenter name, animal id, list of stimuli, stimulus port and sync port.
  2. Start jrecord, set output file name based on the current date and time, create a single event port.
  3. Start jclicker, connect to sync audio port.
  4. If a pre-stim trigger is needed, a second jclicker instance should be started.
  5. Start jstim with the arguments provided to the script, wiring event out to jrecord and jclicker and audio out to stim audio port.

The script needs to kill jstim, jrecord, and jclicker when the user hits ctrl-c or or jstim ends.