Changes
Jump to navigation
Jump to search
← Older edit
Help:LimeSurvey/Demo Psychopy
(view source)
Revision as of 17:25, 30 April 2015
133 bytes added
,
17:25, 30 April 2015
m
E.vandenberge moved page
Demo Psychopy
to
Help:LimeSurvey/Demo Psychopy
without leaving a redirect
Line 1:
Line 1:
== Demo entering a survey after a Psychopy experiment ==
== Demo entering a survey after a Psychopy experiment ==
+
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]]
−
<nowiki>
+
Then, after your experiment has finished, start a web browser showing the survey.
+
<nowiki>
participantID = 2
participantID = 2
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
+
if sys.platform == 'win32':
if sys.platform == 'win32':
−
`chrome
.
exe https://survey.socsci.ru.nl/index.php/survey/index/sid/459278/newtest/Y/lang/en?token=2
+
# open url with default browser
+
os
.
system("start "+url)
else:
else:
−
https://survey
.
socsci.ru.nl/index.php/survey/index/sid/459278/newtest/Y/lang/en?token=2
+
# this selects the default browser in most Unices
+
os
.
system("xdg-open "+url)
</nowiki>
</nowiki>
+
+
will start a browser with the following survey:
+
+
[[File:token2.png]]
E.vandenberge
Bureaucrats
,
Administrators
1,344
edits
Navigation menu
Personal tools
Log in
Namespaces
Help page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Help
About
About the TSG
About this Wiki
FAQ
Disclaimer
Survey
Customer Survey
Tools
Special pages
Printable version