Vizard 8 » Tutorials & Examples » Designing an experimental study » Tutorial: Learning phase of experiment
8.1

Tutorial: Learning Phase of Experiment

In the learning phase the participant has 30 seconds to walk around and learn the spheres' colors. They are given instructions and notified when the time is up. The viztask.waitTime command is used to keep track of timing. Replace the learnPhase() function with the following code:

def learnPhase():

    #provide instructions for the participant
    info.setText("You'll have 30 seconds to walk around and learn the true color of each sphere")
    info.visible(viz.ON)

    #hide instructions after 5 seconds
    yield viztask.waitTime(5)
    info.visible(viz.OFF)

    #let participant know learning phase has ended
    yield viztask.waitTime(30)
    info.setText("Please return to the center of the room to begin the testing phase") 
    info.visible(viz.ON)

    #Start testing phase after 5 seconds
    yield viztask.waitTime(5)

There are different ways you can instruct the participant. Here written instructions are given on the screen for the participant to read. It would be just as easy to give audio instructions by playing pre-recorded sound files at the appropriate times or give both written and audio instructions at the same time. Take a look at the Sound Basics page to learn how to play audio files.

Loading the virtual environment

Creating the experiment framework

Entering participant data

Learning phase of experiment

Testing phase of experiment