Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
suri

Junior Member
Registered:
Posts: 12
Reply with quote  #1 
Dear Jaewon, 

I am training animals to look at the fixation time AND hold down one button for 400 msec. I have therefore built the scene as:

btn1 = SingleButton(button_);
btn1.Button=1;
fix1 = SingleTarget(eye_); 
fix1.Target = fixation_point; 
fix1.Threshold = fix_radius;
and1 = AndAdapter(btn1);
and1.add(fix1);
wth1 = WaitThenHold(and1); 
wth1.WaitTime = wait_for_fix; 
wth1.HoldTime = initial_fix; %this is 400msec
scene1 = create_scene(wth1,fixation_point);

I now want to add a second button that also must stay pressed together with the first one during the 400msec of fixation. Does singlebutton take two trackers? By reading the manual I was under the impression it wouldn't and if it does, how do you recommend the syntax?

Alternatively, can I concatenate three trackers with the Andadapter?

Thank you!

0
Jaewon

Administrator
Registered:
Posts: 873
Reply with quote  #2 
SingleButton is a single button. It doesn't take two button numbers. But you can declare another SingleButton and combine them all with AndAdapter, as you guessed.

btn1a = SingleButton(button_);
btn1a.Button = 1;
btn1b = SingleButton(button_);
btn1b.Button = 2;
fix1 = SingleTarget(eye_);
and1 = AndAdapter(btn1a);
and1.add(btn1b);
and1.add(fix1);

By the way, I call button_ & eye_ trackers. SingleButton and SingleTarget are just adapters.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.