Difference between revisions of "Help:LimeSurvey/Demo Psychopy"
Jump to navigation
Jump to search
m (E.vandenberge moved page Demo Psychopy to Help:LimeSurvey/Demo Psychopy without leaving a redirect) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
Make sure your survey has a token table which contains the participant ID's: | Make sure your survey has a token table which contains the participant ID's: | ||
− | [[File:token.png | + | [[File:token.png]] |
Then, after your experiment has finished, start a web browser showing the survey. | Then, after your experiment has finished, start a web browser showing the survey. | ||
Line 9: | Line 9: | ||
url = "https://survey.socsci.ru.nl/index.php/survey/index/sid/459278/newtest/Y/lang/en?token={:d}".format(participantID) | url = "https://survey.socsci.ru.nl/index.php/survey/index/sid/459278/newtest/Y/lang/en?token={:d}".format(participantID) | ||
import os | import os | ||
+ | |||
if sys.platform == 'win32': | if sys.platform == 'win32': | ||
− | # | + | # open url with default browser |
− | os.system(" | + | os.system("start "+url) |
else: | else: | ||
# this selects the default browser in most Unices | # this selects the default browser in most Unices | ||
Line 19: | Line 20: | ||
will start a browser with the following survey: | will start a browser with the following survey: | ||
− | [[File:token2.png | + | [[File:token2.png]] |
Latest revision as of 16:25, 30 April 2015
Demo entering a survey after a Psychopy experiment
Make sure your survey has a token table which contains the participant ID's:
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: