|
How to Fixate Gabor for 100 ms but Keep Eye Tracking Active for Longer Duration? September 03, 2023 03:51PM | Registered: 2 years ago Posts: 2 |
% scene 2: gabor % define variables wait_for_fix_gabor = 2000; sample_time = 500; hold_radius = 2; gabor = 2; % tracker = eye_; fix2_gabor = SingleTarget(null_); % SingleTarget with no tracker, so only serves for timing fix2_gabor.Target = gabor; tc = TimeCounter(fix2_gabor); % Will count time for 100 ms tc.Duration = 100; fix2_fix = SingleTarget(tracker); % SingleTarget with eye tracker for actual tracking fix2_fix.Target = gabor; fix2_fix.Threshold = hold_radius; wth2 = WaitThenHold(fix2_fix); wth2.WaitTime = wait_for_fix_gabor; % Wait time to make fixation wth2.HoldTime = sample_time; % The time the subject has to hold the fixation all_gab = AllContinue(tc); all_gab.add(wth2); scene2 = create_scene(all_gab, gabor); % Gabor specified here as TaskObject
|
Re: How to Fixate Gabor for 100 ms but Keep Eye Tracking Active for Longer Duration? September 03, 2023 08:22PM | Admin Registered: 6 years ago Posts: 999 |
fix2_gabor = ImageGraphic(null_);
fix2_gabor.List = { 'gabor.bmp', [0 0] };
tc2 = TimeCounter(fix2_gabor);
tc2.Duration = 100;
seq = Sequential(tc2); % This adapter runs multiple chains in a scene. Since there is no 2nd scene added, it does nothing after the 1st chain ends..
fix = SingleTarget(eye_);
fix.Target = [0 0];
fix.Threshold = 2;
wth = WaitThenHold(fix);
wth.WaitTime = 2000;
wth.HoldTime = 500;
con = Concurrent(wth);
con.add(seq);
scene = create_scene(con);
run_scene(scene);|
Re: How to Fixate Gabor for 100 ms but Keep Eye Tracking Active for Longer Duration? September 04, 2023 03:26PM | Registered: 2 years ago Posts: 2 |
% scene 2: gabor fix2_gabor = SingleTarget(null_); fix2_gabor.Target = gabor; % target is gabor tc = TimeCounter(fix2_gabor); tc.Duration = 100; seq = Sequential(tc); fix2_fix = SingleTarget(tracker); fix2_fix.Target = gabor; fix2_fix.Threshold = hold_radius; wth2 = WaitThenHold(fix2_fix); wth2.WaitTime = wait_for_fix_gabor; % wait until fix is made wth2.HoldTime = sample_time; con = Concurrent(wth2); con.add(seq); scene2 = create_scene(con, [gabor, fixation_point]);
btn1 = SingleButton(button_); btn1.Button = 1; % 1 btn2 = SingleButton(button_); btn2.Button = 2; % 1
|
Re: How to Fixate Gabor for 100 ms but Keep Eye Tracking Active for Longer Duration? September 04, 2023 08:32PM | Admin Registered: 6 years ago Posts: 999 |
The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.