Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
ErikEmeric

Junior Member
Registered:
Posts: 25
Reply with quote  #1 

hi all,
i'm new to NIMH MonkeyLogic 2 and i'm working on a binary choice task using CircleGraphic and the MultiTarget adapter. the scene runs without fatal errors, the user screen displays the fixation windows and registers the response correctly, but the stimuli are not presented. i've pasted the code used to create the scene below. Any ideas as to why this is happening?

thanks,
erik

% scene 2: present targets and wait for saccade
crc1 = CircleGraphic(eye_);
crc1.EdgeColor = LUT(TrialRecord.User.color1,:  );
crc1.FaceColor = LUT(TrialRecord.User.color1,:  );
crc1.Size = 2;
crc1.Position = TrialRecord.User.nxtXYs(1,:  );

crc2 = CircleGraphic(eye_);
crc2.EdgeColor = LUT(TrialRecord.User.color2,:  );
crc2.FaceColor = LUT(TrialRecord.User.color2,:  );
crc2.Size = 2;
crc2.Position = TrialRecord.User.nxtXYs(2,:  );

mul = MultiTarget(eye_);
mul.Target = TrialRecord.User.nxtXYs; % (x,y) positions of 2 targets
mul.Threshold = 3;
mul.WaitTime = 5000;
mul.HoldTime = 500;
scene_Ts = create_scene(mul);

 

0
Jaewon

Administrator
Registered:
Posts: 873
Reply with quote  #2 
The adapters are not linked.

crc1 = CircleGraphic(eye_);
crc2 = CircleGraphic(crc1);
mul = Multitarget(crc2);
scene = create_scene(mul);

ftp://helix.nih.gov/lsn/monkeylogic/ML2_doc/runtimefunctions.html#HowToCreateAdapterChains
0
ErikEmeric

Junior Member
Registered:
Posts: 25
Reply with quote  #3 
that fixed it!
thanks jaewon!

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.