Bastiaan

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Delay reward with nose-poking #14793
    Bastiaan
    Participant

    I have not received the program in my email.
    However notifications about replies are received normally.

    Bas

    in reply to: Delay reward with nose-poking #14791
    Bastiaan
    Participant

    Hi Gary,

    This would be extremely helpfull, do you need my email adress?

    Many thanks indeed,

    Bastiaan van der Veen

    in reply to: Delay reward with nose-poking #14786
    Bastiaan
    Participant

    Hi Nathalie,

    I would like to enquire if you have been able to get the Delayed reward program to work.
    If so, would you be able to share this code?

    Many thanks!

    Bastiaan

    in reply to: Food magazine exit for ITI start #13901
    Bastiaan
    Participant

    Hi Gary,

    After some consideration I remembered this would not be an option afterall. Since the reward latency is a read out we do not want to lose.

    I have tried to implement the beambreak code (which you suggested to someone else) into the Start of New ITI (see code). For we have decided that switching to Level might in the end be the better option, also for our other protocols, as this lets us track the amount of time spend in the magazine.

    \**********************
    \*  START OF NEW ITI  *
    \**********************
    S.S.3,
    S1,
    #z9: SET J=0; IF ((A(0)+A(1)+A(2))>=S(4)) [@MaxTrials, @NotMaxTrials]
    @MaxTrials: OFF ^Fan, ^HouseLight; SET U(V) = -987.987; SET E(V) = -987.987; SET F(D) = -987.987 ---> STOPABORTFLUSH
    @NotMax Trials: z11; ADD A(9); SHOW 8,Trials,A(9) ---> s2
    
    	
    S2,       #R1: ADD I; IF I >= 2 [@BeamBreak, @NoBeamBreak]
                     @Break: Z14; SET Y = 0 ---> S3
                     @NoBreak: ---> SX
      0.02": SET I = 0 ---> S2
    
    S3,    
      0.02": Z15 ---> S2
      #R1: ---> S3 
    
    S4,
    #Z14: SET L = 0 ---> S5
    
    S5,
    0.01": SET L = L + 0.01 ---> S5
    #Z15: SET A(16) = A(16) + L ---> S4
    
    s6,
    #Z15: ADD J; IF(J>=S(2)) [@EndOfITI, @ContinueITI]
    @EndOfITI: RANDD C = N; IF(C=1) [@OneCorrect, @OneNotCorrect]
    @OneCorrect: ON ^LightOne; z1 ---> s1
    @OneNotCorrect: IF(C=2) [@TwoCorrect, @TwoNotCorrect]
    @TwoCorrect: ON ^LightTwo; z1 ---> s1
    @TwoNotCorrect: IF(C=3) [@ThreeCorrect, @ThreeNotCorrect]
    @ThreeCorrect: ON ^LightThree; z1 ---> s1
    @ThreeNotCorrect: IF(C=4) [@FourCorrect, @FiveCorrect]
    @FourCorrect: ON ^LightFour; z1 ---> s1
    @FiveCorrect: ON ^LightFive; z1 ---> s1
    @ContinueITI: ---> sx
    #z6: ---> s1

    I have however left all other #R1 commands unchanged. As triggering the receptacle should automatically send the program to a new state.
    Would this work, or would I have to change all #R1 commands into an IF clausule?

    Bas

    in reply to: Food magazine exit for ITI start #13899
    Bastiaan
    Participant

    Hi Gary,

    Many thanks.
    I have been thinking, would it also be possible just to invert the polarity, without splitting the signal?
    For most of our tests it does not matter, or would even be better, if the input is registered when the animal releases the head entry beam. For the few other tests the head entry triggers a counter for the magazine light, this would simply have to be re-written.

    Best,

    Bas

Viewing 5 posts - 1 through 5 (of 5 total)