FR3 programming

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13115
    Med_Support
    Moderator
    Med

    Hi,

    I have been using the FR3 notation in my programs for quite a while now thinking that wherever it was specified, the rat would only receive a reward if it pressed on the active lever 3 consecutive times. It turns out that this is not the case. The rat can press the active lever twice, go press the inactive lever a few times and then come back and press the active lever only once to then receive a reward.

    Does anyone know how I can write the program so the rat has to perform 3 consecutive presses to get a reward? I have basically been using this:

    s2,
    3#R^tonelever--->s3
    

     

    Thanks in advance for you help.

    #13116
    Med_Support
    Moderator
    Gary Bamberger

    Hello,

    You could try this:

    S2,
    #R^ToneLever: ADD R; IF R >= 3 [@FRMet, @Cont]
    @FRMet: ---> S3
    @Cont:  ---> S2
    #R^InactiveLever: SET R = 0 ---> S2
    

    Best Regards,
    Gary

    #13119
    Med_Support
    Moderator
    Med

    Thanks Gary, I’ll try it out and let you know if it works.

    This works great, thanks!

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