Fixation with temporal aspect

Hi Chris,

I am trying to figure out how to have the trigger for a fixation point have a temporal aspect. For example, I would like to have the trigger == 1 only if the fixation has passed a certain time ( for picking answer e.g.). Do you have an idea of a simple way to implement this in XML?

Thanks!

Mahdi

Hi Mahdi,

You can’t change the behavior of a fixation point trigger. Instead, you’ll need to modify your experiment to include some transition logic that takes the temporal condition into account.

Typically, this is done by splitting the fixation portion of a trial into two states. The first state waits for fixation to begin, then transitions to the second state. The second state starts a timer. If fixation is broken before the timer expires, the experiment transitions to a failure state. Otherwise, it transitions to a success state. The following MWEL fragment demonstrates the basic structure:

state 'Wait for fixation' {
    goto (
        target = 'Fixation'
        when = eye_in_window and (not saccade)
        )
}

state 'Fixation' {
    start_timer (
        timer = fixation_timer
        duration = fixation_duration
        )

    goto (
        target = 'Fixation failure'
        when = (not eye_in_window) and (not saccade)
        )
    goto (
        target = 'Fixation success'
        when = timer_expired(fixation_timer)
        )
}

This technique is used several times in the RSVPDemo experiment that’s distributed with MWorks, so you may want to take a look at that, too.

Cheers,
Chris

Ok thank you!