|
Concurrent rewards of different durations September 10, 2026 06:19PM |
Registered: 5 years ago Posts: 14 |
%this is a single reward on juice line 1 (condtion "L") %ClickL and ClickB are AudioSound adapters that play a short sound before reward delivery RewardL = RewardScheduler(ClickL); RewardL.Schedule = [0, 1e9, 1e9, reward_durL, juice_mkL]; RewardL.JuiceLine = 1; %there are more versions of single reward: to juiceline 2 and 3 (conditions "R" and "W"), %I am not showing them here, they are coded identically to condition "L" %these are adapters to be used when both juicelines 1 & 2 are supposed to be activated at the same time (condition "B") RewardBL = RewardScheduler(Click; RewardBL.Schedule = [0, 1e9, 1e9, reward_durL, juice_mkL]; RewardBL.JuiceLine = 1; RewardBR = RewardScheduler(Click
; RewardBR.Schedule = [0, 1e9, 1e9, reward_durR, juice_mkR]; RewardBR.JuiceLine = 2; RewardTimerL = TimeCounter(ClickL); RewardTimerL.Duration = reward_durL + 100; GiveRewardL = Concurrent(RewardTimerL); GiveRewardL.add(RewardL); RewardTimerB = TimeCounter(Click
; RewardTimerB.Duration = max([reward_durL, reward_durR]) + 100; GiveRewardB = Concurrent(RewardTimer
; GiveRewardB.add(RewardBL); GiveRewardB.add(RewardBR);
|
Re: Concurrent rewards of different durations September 10, 2026 06:49PM |
Admin Registered: 7 years ago Posts: 1,019 |
|
Re: Concurrent rewards of different durations September 10, 2026 08:47PM |
Registered: 5 years ago Posts: 14 |
The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.