Recent Posts

Pages: [1] 2 3 ... 10
1
Coding Help / Re: Response counting during random interval
« Last post by tyrsu on August 11, 2017, 02:12:38 pm »
Thank you so much for all your help Gary - I have tidied it all up and it is a fully functional code now.


I'm just going to upload a .txt file of the code here in case anyone comes looking for a Go/No-Go task.


I really appreciate all your help!
Suszie  :D
2
Software / Re: MED PC 2 XL - not working
« Last post by Gary Bamberger on August 07, 2017, 01:11:25 pm »
I'm glad to hear that you figured it out.  You learned more by getting it wrong the first time and then fixing it, than if you had gotten it correct the first time.

Gary
3
Software / Re: MED PC 2 XL - not working
« Last post by tyrsu on August 07, 2017, 01:04:51 pm »
Nevermind! I figured it out!


For my D(J) and E(K) arrays I wasn't supposed to have the K+ and J+ in the brackets as well!


It's working fine now :)
4
Software / MED PC 2 XL - not working
« Last post by tyrsu on August 07, 2017, 12:48:09 pm »
Hi!


I am trying to convert my data into excel but it is just throwing out the error message "Operation Unavailable".


Details:
The program is a random interval reward protocol (20-80" waiting period plus a 10" reward period). I count:
session duration B(0) (up to 40 minutes),
total nosepokes B(1),
total trials in B(2) (up to 100).


Then I have two arrays:
D(J) - trial by trial data
D(J+0)=trial duration;
D(J+1)=#Nosepokes per trial;
D(J+2)=#Nosepokes in the reward period per trial.


E(K)=second-by-second data:
E(K+0)=time ;
E(K+1)=marks beginning of the waiting period (1) or the beginning of the reward period (2) ;
E(K+2)= nosepokes each second


I wrote a Table Profile using Header Rows for the basic stats and my B() data then used Data Table Rows for my D(J) and E(K) arrays (Image of the MPC2XL program attached and also the Random Interval protocol code) but it isn't working.


Can anyone tell from the image attached what I have done wrong in the MPC2XL program?


Thank you so much for your time!
Suszie
5
Program Request / Re: DRL-4s
« Last post by Gary Bamberger on August 03, 2017, 08:41:49 am »
It looks like my original code was very close.  I think this might do what you want:

S.S.2,
S1,
  #START: ---> S2

S2,
  #R^LeftLever: ---> S2  \ If we receive a responses before the timer runs out, restart the timer
  3.99":        ---> S3  \ If 3.99s passes, then reward the next lever press

S3,
  #R^LeftLever: ON ^Reward ---> S4  \ 3.99 + 0.01 = 4.00s  so any response will be at 4s or later

S4,
  4": OFF ^Reward ---> S2  \ After reward go back for the next 4s interval
6
Program Request / Re: DRL-4s
« Last post by mama6600 on August 03, 2017, 03:27:06 am »
S.S.2, \reset timer

S1,
   #R^Leftlever: SET T = 0; Z2 ---> S2

S2,
  0.01": SET T = T +0.1 ---> SX

S.S.3, \If lever press occur at or passes over 4s, it will gain reward. If lever press occur before 4s, the lever press will reset the time to zero

S1,
   #R^leftlever: IF T >= 4 (@True, @False)
                            @Ture: ON ^Reward ---> S2
                             @False: Z2 ---> SX

S2,
  4" : OFF ^Reward ---> SX



The problem is how to write a script which is describing: "If lever press occur at or passes over 4s, gain reward. If every single lever press occur before 4s (0s-3.9s), the certain lever press will reset the time to zero".
7
Program Request / Re: DRL-4s
« Last post by Gary Bamberger on August 02, 2017, 10:04:49 am »
Hello,

It is very hard to make a suggestion without seeing the code that you have written.  Here is a possibility that might work for you:

S.S.2,
S1,
  #START: ---> S2

S2,
  4#R1: ---> S2            \ If we receive 4 responses before the timer runs out, restart the timer
  4": ON ^Pellet ---> S3  \ If 4s passes with less than 4 responses, issue reinforcement

S3,
  0.05": OFF ^Pellet ---> S2

8
Program Request / DRL-4s
« Last post by mama6600 on August 02, 2017, 03:02:43 am »
I'm trying to write a DRL-4s program but i got stuck from the reset timer and reward. Would anyone have suggestion for that?
9
Coding Help / Re: Help modifying FR1 to a progressive ratio
« Last post by Gary Bamberger on July 26, 2017, 08:59:01 am »
Hi Paul,

Yes it is possible.  Just create a list and draw from it in order using the LIST command.  Every time a reward is issued draw the next value from the list.

Gary
10
Coding Help / Re: Help modifying FR1 to a progressive ratio
« Last post by Paul_K on July 25, 2017, 06:41:17 pm »
Hi Gary,

Since my knowledge of the coding is very limited, is it possible to amend just the FR1 ratio in the attached code to a progressive ratio list and keep everything else the same?

Regards, Paul.
Pages: [1] 2 3 ... 10