Trial details

Top  Previous  Next

Trial format

 

Think of the task as existing in a number of states, because that's how the program implements it. Incidentally, this is an exercise in mental discipline: if you can't specify a state table like this, having thought about what should happen in response to all possible events in any state, then you can't program the task properly.

 

Blue text shows the states that a successful subject cycles through, once it's completed the first trial progression of PRESTIM_PLEASEPUSH INITIAL_PAUSE.

 

 

State name

Description

State of the box

Consequence of nosepoking at the front panel (one of the five holes)

Consequence of nosepoking at the rear (food) panel

Consequence of time passing

NOTSTARTED

Not started yet. Awaiting experimenter to start task.

Darkness.

-

-

-

PRESTIM_PLEASEPUSH

Task begins here. (For the first trial, a free pellet is given and the trial number is initially set to 0.)

Rat must respond to rear panel to initiate the trial.

Houselight on.

Traylight on (if used).

Score premature response. Perhaps punish by going to PRESTIM_TIMEOUT, which will eventually start a new trial. (2)

Go to INITIAL_PAUSE.

-

POSTSTIM_PLEASEPUSH

Post-stimulus punishment timeout over. Rat must respond to rear panel to initiate new trial.

Houselight on.

Traylight on (if used).

Score perseverative response. Perhaps punish by going to POSTSTIM_TIMEOUT, which will eventually start a new trial. (2)

Go to INITIAL_PAUSE.

-

INITIAL_PAUSE

Trials begin here. Trial number incremented.

Variable time before stimulus is presented (sometimes called the "ITI").

Houselight on.

Score premature response and enter PRESTIM_TIMEOUT, which will eventually start a new trial.

Score perseverative panel-push. No other consequence.

Go to STIM_ON.

STIM_ON

Stimulus presented briefly. Opportunity to respond.

Houselight on.

One target hole lit.

Either a correct or an incorrect response. If correct, reward and go to AWAITING_COLLECT. If incorrect, go to POSTSTIM_TIMEOUT, which will eventually start a new trial.

Score perseverative panel-push. No other consequence.

Go to STIM_OFF.

STIM_OFF

Stimulus has gone off, but opportunity to respond remains.

Houselight on.

Exactly as for STIM_ON.

Score perseverative panel-push. No other consequence.

Score an omission and go to POSTSTIM_TIMEOUT, which will eventually start a new trial.

AWAITING_COLLECT

Successful response; subject has been rewarded. Awaiting food collection (which will also initiate the next trial).

Houselight on.

Traylight on (if used).

Score perseverative response. Either no other consequence, or punish by going to POSTSTIM_TIMEOUT. (3)

Successful reward collection. Begin a new trial by entering INITIAL_PAUSE state.

-

PRESTIM_TIMEOUT

Rat is being punished for a premature nosepoke to the front panel.

Darkness.

Perhaps score premature response (4), and perhaps restart PRESTIM_TIMEOUT (1).

Recorded. No other consequence.

Go to PRESTIM_PLEASEPUSH.

POSTSTIM_TIMEOUT

Rat is being punished for an incorrect response, or a perseverative response.

Darkness.

Perhaps score perseverative response (5), and perhaps restart POSTSTIM_TIMEOUT (1).

Recorded. No other consequence.

Go to POSTSTIM_PLEASEPUSH.

FINISHED

Rat finished the task

Darkness.

-

-

-

ABORTED

User aborted the task

Darkness.

-

-

-

 

(1) Option: front panel responses during timeouts can prolong the timeout by restarting it (default) or not. On the Parameters dialogue, this is the option labelled "Front panel responding during timeouts prolongs (restarts) the timeout."

(2) Option: front panel responses while waiting to start a trial are punished with a timeout, or not (default). On the Parameters dialogue, this is the option labelled "Front panel responding while waiting to start trial is punished."

(3) Option: "Punish perseverative nosepokes following a correct response." See the Parameters dialogue.

(4) Option: "Front panel responding in a pre-stimulus timeout is scored as premature." See the Parameters dialogue.

(5) Option: "Front panel responding in a post-stimulus timeout is scored as perseverative." See the Parameters dialogue.

 

 

The duration of the STIM_ON and STIM_OFF times, together, constitute a "limited hold" period for the rat to respond.

 

The task records every response with its location and the state (phase) the box was in when the response was made.

 

Additionally,

there can be an overall time limit for the session;
there can be a trial limit for the session;
a noise (e.g. tone or white noise, depending on your device) can be presented as a distractor at various times (measured relative to stimulus onset and specified in the task parameters).