Help:LimeSurvey/Demo Psychopy

From TSG Doc
< Help:LimeSurvey
Revision as of 17:25, 30 April 2015 by E.vandenberge (talk | contribs) (E.vandenberge moved page Demo Psychopy to Help:LimeSurvey/Demo Psychopy without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Demo entering a survey after a Psychopy experiment

Make sure your survey has a token table which contains the participant ID's:

Token.png

Then, after your experiment has finished, start a web browser showing the survey.

participantID = 2
url = "https://survey.socsci.ru.nl/index.php/survey/index/sid/459278/newtest/Y/lang/en?token={:d}".format(participantID)
import os

if sys.platform == 'win32':
    # open url with default browser
    os.system("start "+url)
else:
    # this selects the default browser in most Unices
    os.system("xdg-open "+url)

will start a browser with the following survey:

Token2.png