Forum
Register Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Dilara

Junior Member
Registered:
Posts: 4
Reply with quote  #1 
Hi all,

I want to use both acquirefix and aquiretarget in a single eyejoytrack function. Is this possible? In the manual, I see an example where holdfix is used with acquiretarget, so I assume it is possible to use two 'acquire' statements as well. However, I couldn't make it work correctly - it tracks only one of the functions and not the other. Is it not possible to use two hold statements in a single function using the same target object or am I doing something wrong? 

This is what I tried:
ontarget = eyejoytrack('acquirefix', target, fix_radius, 'acquiretarget', target, fix_radius, T);
if isempty(find(ontarget==0))
...

Thanks!
0
Jaewon

Administrator
Registered:
Posts: 380
Reply with quote  #2 
What is the ML version you use? NIMH ML2 works fine with two 'acquire'. I think NIMH ML1 should be fine too, since eyejoytrack() has not changed much. The following code works in ML2 only, because of dashboard().

---- Beginning of the test code -----
toggleobject(1);

tic;
while toc < 10
    ontarget = eyejoytrack('acquirefix',1,2,'acquiretarget',1,3,10);
    if ontarget(1)
        dashboard(1,'Eye fixation is acquired');
    else
        dashboard(1,'');
    end
    if ontarget(2)
        dashboard(2,'Joystick cursor is on the target.');
    else
        dashboard(2,'');
    end
end
----- End of the code -----
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.