Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Var of subject

HI all,
I want to make my experiment in 3 meetings. how can i define to the program that it will make different var for the number of meetings?
thank you all

Comments

  • Hi cogexp,

    your title is somewhat confusing. Would be better 'Var of session_nr" ?
    There is a fixed subject_nr within the experiment which is always logged.
    If you want the session_nr to be logged you may use this inline_script i wrote for one of my own experiments:

    #Session number
    session=canvas()
    path = pool['session_nr.tif']
    session.image(path)
    session.show()
    nb=keyboard(keylist=[1,2,3,4,5,6])
    key, time=nb.get_key()
    var.session_nr=key
    
    sessionRP=canvas()
    path = pool['session_nrRP.tif']
    sessionRP.image(path)
    sessionRP.show()
    RP=keyboard(keylist=['x','n'])
    key, time=RP.get_key()
    if key =='x':  # MP left
        session.show()
        key, time=nb.get_key()
        var.session_nr=key
    
    log.write_vars()
    

    As you can see i had 6 sessions. I also asked participants if they pressed the correct number, just in case.
    My pictures are in German, but you may easily write some own text in PPT and save it as .tif
    [Anyway the forum does not allow me to attached .tif files.]

Sign In or Register to comment.