Time-out

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16263
    Xueyi Xie
    Participant

    Hi,

    I’m quite new to this software so I have a question about coding. So we are doing drug IVSA. I would like to set a time-out period after each reward is delivered. In the time-out period, no house light and cue light is on, no reward will be given, while all the responses will be recorded. Can anyone help me with that? Very much appreciate.

    #16273
    Gary Bamberger
    Moderator

    It is a little hard to answer without seeing a copy of your program, but maybe this will help:

    S5,
      #R^Lever: ADD R; ON ^Reward ---> S6
    
    S6,
      0.05" OFF ^Reward, ^HouseLight, ^CueLight ---> S7
    
    S7,
      10": ON ^HouseLight, ^CueLight ---> S5  \ 10s Timeout
      #R^Lever: ADD R ---> SX                 \ Count all responses during Timeout

    That is a very rough answer. If you need more specific help, please email a copy of your program to support@med-associates.com.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.