Forum Replies Created
-
AuthorPosts
-
sintdc
Participantok thank you for your help, im having difficulties putting the questions in the specific place i need them. for example i need one question to go in slide number 13, another question in slide 15, another is 17 etc. below is what i have now but cant seem to figure it out.
thank youPennController.ResetPrefix(null) // Shorten command names (keep this line here) // Show the 'welcome' trial first, then all the 'experiment' trial // then send the results and finally show the trial labeled 'final' Sequence( "welcome", "SampleSlides", randomize("experiment"), "final" ) InitiateRecorder("https://plinglab.princeton.edu/IBEX/exptA/exptA-up.php").label("welcome") Header( // We will use this global Var element later to store the participant's name newVar("ParticipantName") .global() , // Delay of 250ms before every trial newTimer(250) .start() .wait() ) .log( "Name" , getVar("ParticipantName") ) // This log command adds a column reporting the participant's name to every line saved to the results Template("Instructions.csv", variable => newTrial( "welcome" , newImage(variable.ImageFile) .size(1080, 608) .print() .center() , newButton("Next") .css("font-size", "1.5em") .print() .wait() ) ) Template("SampleSlides.csv", variable => newTrial( "SampleSlides" , newImage(variable.ImageFile) .size(1368, 462) .print() .center() , newButton("Next") .css("font-size", "1.5em") .print() .wait() ) ) ///putting in the questions Sequence( randomize("questions") ) newTrial( "questions" , newText("What is the sentence in the yellow dialog box doing?").print() , newScale("Giving information", "Requesting information", "I can't tell") .labelsPosition("right") .print() .wait() ) newTrial( "questions" , newText("What did the speaker of the speaker of the yellow dialog box think in the previous panel?").print() , newScale("The opposite of what's in the yellow box", "What's in the yellow box", "I can't tell") .labelsPosition("right") .print() .wait() ) newTrial( "questions" , newText("Who has more information about what's in the yellow dialog box?").print() , newScale("The person saying it", "The person they're talking to", "They both know the same amount", "I can't tell") .labelsPosition("right") .print() .wait() ) ////// // This Template command generates as many trials as there are rows in myTable.csv Template( "myTable.csv" , // Row will iteratively point to every row in myTable.csv variable => newTrial( "experiment" , // The actual recording trials and comics start here newImage(variable.ImageFile) .size(1368, 462) .print() .center() .log() , newMediaRecorder("recording", "audio") .css("font-size", "1.5em") .print() .log() .wait() , newButton("Next") .css("font-size", "1.5em") .print() .wait() ) ) // Spaces and linebreaks don't matter to the script: we've only been using them for the sake of readability newTrial( "final" , newText("<p>Thank you for your participation!</p>") .css("font-size", "1.5em") .print() , newImage("Slide26.png") .size(1080, 608) .print() .center() , // Uploads the recordings UploadRecordings("sendAsync", "noblock") , newButton("Finish") .css("font-size", "1.5em") .print() .wait() )
sintdc
ParticipantHi!
Basically, I would need three sets of questions stores in the data base
eg.
1. “are you male or female?” options for multiple choice, male or female and they choose one.
2. “what is your favorite color?” options for multiple choice, blue or purple and they choose one.
3. “are you 20 or 25?” options for multiple choice, 20 or 25 and they choose one.then at certain points, have the program randomly pick one of them to display and answer, so each time a new participant goes through it, the order is random and different than the last
Please let me know if this helped, thank you!
-
AuthorPosts