Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Jack_23

Member
Registered:
Posts: 45
Reply with quote  #1 
Hello. I have 8 conditions in a block. And the block will be repeated 10 times. 

In each block, if a conditions is not doing right, this condition will be repeated show in this block randomly. How to do this?

I am confused by the "total of trials to run" and "total of blocks to run" in the main windows. For example, I set total of trials to run as 80, and 'on error' as repeat delayed. I want to repeat my 8 conditions 10 times, and the error conditons will be showed again. However, the program stopped when the number of good trials and bad trials is 80. Than you
0
Jaewon

Administrator
Registered:
Posts: 754
Reply with quote  #2 
Hi Jack_23,

Set the main menu like the following.

blocks.png

0
Jack_23

Member
Registered:
Posts: 45
Reply with quote  #3 
I replaced this file. However, an error happened when loading experiment condition file.
'''''''''''''''''
No appropriate method, property, or field 'set_editable' for class
'mltrialrecord'.
''''''''''''''''''''''''''''''''''''''''''''''''''
0
Jack_23

Member
Registered:
Posts: 45
Reply with quote  #4 
Quote:
Originally Posted by Jack_23
I replaced this file. However, an error happened when running experiment .
'''''''''''''''''
No appropriate method, property, or field 'set_editable' for class
'mltrialrecord'.
''''''''''''''''''''''''''''''''''''''''''''''''''


I use ML2, and matlab 2017a
0
Jaewon

Administrator
Registered:
Posts: 754
Reply with quote  #5 
I guess you are not using the most recent version. Do you have any reason to stick to the old version?

I didn't update the package yet, so you still need to replace mltrialrecord.m after upgrading.
0
Jack_23

Member
Registered:
Posts: 45
Reply with quote  #6 
I will try the new version. I just forget to update it. Thank you.
0
Jack_23

Member
Registered:
Posts: 45
Reply with quote  #7 
It doesn't work.
I download the newest version NIMH_MonkeyLogic_2_(Jan-7-2019).
replace the mltrialrecord.m file.
set the parameters like this [I use simulation mode, and only repeat twice]
When runing the first block, I do only one error trial. However, when the number of trials already running is 16, the programm crashed.



0
Jaewon

Administrator
Registered:
Posts: 754
Reply with quote  #8 
You should've not replace the file. I fixed the error already in the new package, as I wrote in the release note.

Try the attached task. It will stop after 80 correct trials, as you wished.

 
Attached Files
zip task.zip (66.69 KB, 0 views)

0
Jaewon

Administrator
Registered:
Posts: 754
Reply with quote  #9 
One more thing. Are you using the trialerror() function, to record the success status? Otherwise, none of the tricks will work. ML does not know which trial is success, unless you tell it to ML.
0
Jack_23

Member
Registered:
Posts: 45
Reply with quote  #10 
Yes, I use trialerror(). 
The matlab still crashed in some trials for my experiment. I will try again tomorrow.
0
Jaewon

Administrator
Registered:
Posts: 754
Reply with quote  #11 
Unless you tell me how it crashed or what the error message was, there is nothing I can do.
0
Jack_23

Member
Registered:
Posts: 45
Reply with quote  #12 
The matlab just crashed before all trials finished. Below is the crash window. The is no other error information in matlab or monkeylogic. 
While, using previous version(may-21-2018, I didn't test other versions) without replace the mltrialrecord.m file, there is no such error.
WechatIMG359.jpeg 

0
Jaewon

Administrator
Registered:
Posts: 754
Reply with quote  #13 
If you click the "Details >>" button, you can see the stack dump, which is useful for me to debug. Can you send me your task files so that I can test if the error is replicatable? Thanks.
0
Jack_23

Member
Registered:
Posts: 45
Reply with quote  #14 
The details of the error and the program can be downloaded using links below.

0
Jaewon

Administrator
Registered:
Posts: 754
Reply with quote  #15 
I got the files. Thanks. Please give me some time to figure out what is going on.
0
Jaewon

Administrator
Registered:
Posts: 754
Reply with quote  #16 
Hi Jack_23,

Would you try the attached version and let me know if you still get the error? Thanks!
0
Jack_23

Member
Registered:
Posts: 45
Reply with quote  #17 
It works now. Thank you.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.