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:
Make sure the user provided some key attributes - experimenter name, animal id, list of stimuli, stimulus port and sync port.
Start jrecord, set output file name based on the current date and time, create a single event port.
Start jclicker, connect to sync audio port.
If a pre-stim trigger is needed, a second jclicker instance should be started.
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.
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:
The script needs to kill jstim, jrecord, and jclicker when the user hits ctrl-c or or jstim ends.