Note: This manual is a work in progress!
OverviewUseful macros for handling the timing and contingencies of basic behavioral paradigms, such as two-alternative forced choice and stimulus detection, are included in the '..\epsych.circuit_macros' subdirectory on your hard drive.
All EPsych behavioral macros are designed to work with one or multiple behavioral boxes at a time.
You can assign a macro to specific boxes, but double clicking the macro after placing it in the RPvds circuit and entering a number to be associated with it in the "Setup" tab.
This numerical ID will then be associated with a specific subject when using the ep_RunExpt
GUI.
ep_StimDetect.rcm
TTL
line goes from low to high), the macro will begin an internal clock.
A signal for the TTL
input can be any (for example, during a lever press which makes a digital input on a TDT hardware module change state from low to high).
The basic stimulus detection paradigm typically has four sequential phases:
TTL
input (ex, lever is pressed) and wait some delay period during which TTL
remains high (ex, lever remains depressed).
InTrial
logical output line goes from low to high.
InTrial
will go back to low if the subject responds (TTL
goes from high to low) or the response window ends.
The Clock
output begins counting from 0 as long as the InTrial
value remains high.
The Clock
value is expressed in milliseconds and its resolution is dependant up on the circuits sampling rate.
The Clock
value can be used to trigger other RPvds components that are unrelated to the response window by using the RPvds Compare component.DelayPeriod
logical output line goes high until the internal clock reaches the value specified in the RespWinDelay
input.RespWinDelay
value, DelayPeriod
will go low and RespWindow
will go high.
It is often useful to use the rising edge detector RPvds component to detect this this transition between trial phases to trigger a stimulus.RespWinDelay
accepts a floating point value which controls the onset of the response window. Value is in milliseconds.RespWinDur
accepts a floating point value which controls the duration of the response window.InhibitTrial
line is high, a new trial can not be triggered.
ep_2AFC.rcm
ep_2AFC
macro has been used for sound localization, multisensory integration, and many other experiments over the years.
ep_TrialTrigger.rcm
ep_OperationalTrigger.rcm