scripts used for experiment control
- Create subject folder in top level data directory (e.g.
F:/Experiments/raw/
) - Create subfolders, “data” and “stims”
- Place desired .wav files (at 40kHz) in “stims” folder
- Copy the contents of
probe-the-broab\protocolfiles\
into{subject folder}\stims\
- Open Spike2 version 8
- Run the script
probe-the-broab\ChronicScript.s2s
- Follow the prompts
- if window “warning all pre trigger data might not be saved” pops up, hit “ok” (It would be better to track down why this is happening, but for now there doesn’t seem to be any data loss, so I’m ignoring it…)
- Set subject folder. Browse until you highlight the subject folder you created in step 1, and hit ‘ok’
- Specify Behavioral Protocol - this only appears the first time running the script for a given bird - unless the bird was explicitly trained on GNG pick “2AC”, since it’s slightly less likely things will break
- click on ‘start epoch’ in the toolbar
- Use Protocol File? “yep”
- Pick Protocol File to Use
- Select “NO_Search_AskStimFile_prot.txt” to loop through the stimuli in order
- Select “NO_Block_AskStimFile_prot.txt” to run a block
- New Penetration/Use Current Penetration? set the value of the current penetration (electrode, hemisphere, AP distance, ML distance)
- Use Current Recording Site? set the value of the current site (depth)
- Use stim File? NO - click the LEFT button (it will now think for a little while)
- Which Channels to Record? Ch36 is the stim channel
- Epoch Comments any comments you want recorded
It should now be recording!
- Select Block Stims - if you selected the Block protocol file, set up the block
- Buttons present during recording (right to left):
- Finish Experiment - finishes whole experiment - probably want to use ‘stop recording epoch’ instead
- Pause Block <DOESN’T WORK - IGNORE>
- Loop this Search Stim - loops current stimulus indefinitely - click again when called ‘all search stims’ to go back to everything
- Stop Recording Epoch - stops the current recording setup, without exiting setup for current bird/experiment
- Adjust Gains <DOESN’T WORK - IGNORE>
- Start Epoch
- SelectActiveStims - lets you select a subset of stimuli to present
- Close Behavior Checks <DOESN’T WORK - IGNORE>
- Behavior Summary <DOESN’T WORK - IGNORE>
- Cancel all CARs - deletes virtual channels set up by ‘Setup CAR’
- Setup CAR
- Highlight all channels you want to use as references, then click the button
- select the channel you want to subtract the selected channels from
- Setup Software Referencing <DOESN’T WORK - IGNORE>
- Load Last View - if you had a previously recorded Epoch in the current script instance, you can apply it to the current recording by clicking this button
- Press Stop Recording Epoch or Finish Experiment to finish the current recording.
- Data is saved into
{subject folder}/data/Pen()/Site()/Epc()
- "protocolmode" (required)
- "neuronly": only neural recording (no behavior)
- "behavonly": only behavior (no neural recording)
- "neurbehav": neural recording and behavior
- "protocolstimselectionstyle" (required)
- "search": loops through stimuli. displays toggle during stimulus presentation to loop a stimulus.
- "block": shuffles a stimulus set. terminates when block is complete.
- "random": randomly samples from stimulus set.
- "micport"
- "peckstopon"
- "correctiontrialson"
- "dofeedcorrectiontrials"
- "trialsavailablecycleonminutes"
- "trialsavailablecycleoffminutes"
- "despctpres"
- "despctreinf"
- "despctto"
- "variableratiomax"
- "respwin"
- "feed"
- "timeout"
- "iti"
- "itino"
- "maxitino"
- "minitino"
- "stimfilename"
- "dosavemicchannel"
- "beginhours"
- "beginmins"
- "endhours"
- "endmins"
- "dontusetodstartstop"
<
(60): start of stimulus>
(62): end of stimulus#
(35): premature end of stimulus (whenpeckstopon=1
)
R
(82): right key peckC
(67): center key peckL
(76): left key peck
F
(70): Correct. Feed startf
(102): Correct. No feed}
(125): End of feed periodT
(84): Incorrect. Start timeoutt
(116): Incorrect. No timeout]
(93): End of timeout periodN
(78): No Response
(
(40): Start of intertrial interval)
(41): End of intertrial intervalS
: ready stimP
: sequencer paused
I
: center key light invertN
: turn off everythingR
: turn off everything except house lightH
: toggle hopper up or down