use a variable list/array for trigger_flag

beshoy.agayby's Avatar

beshoy.agayby

09 Aug, 2017 01:10 PM

Hello Chris,
I am trying to use a variable list in the trigger flags of multiple fixation dots (in the same stimuli group), but it doesn't work. What I did is create list variable and put the list elements in the fixation dots' trigger flag; so the trigger_flage will be set to target_fix[n]. The code is accepted in the client, so no syntax errors, but the variable list doesn't change when the monkey is looking at any fixation dot.
Alseo,I have read that the index of the list starts with 0, does this mean than x[0] has the first element of the list?
Cheers,
Beshoy

  1. Support Staff 1 Posted by Christopher Sta... on 09 Aug, 2017 01:47 PM

    Christopher Stawarz's Avatar

    Hi Beshoy,

    What I did is create list variable and put the list elements in the fixation dots' trigger flag; so the trigger_flag will be set to target_fix[n].

    That doesn't work. You need a different variable for each trigger_flag.

    I have read that the index of the list starts with 0, does this mean than x[0] has the first element of the list?

    Correct.

    Chris

  2. 2 Posted by beshoy.agayby on 09 Aug, 2017 03:22 PM

    beshoy.agayby's Avatar

    Hello Chris,

    Thanks for the reply; that's the information I was looking for.

    Cheers,
    Beshoy

  3. beshoy.agayby closed this discussion on 09 Aug, 2017 03:22 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac