Experiment definition

QML, a JavaScript dialect used by Qt5, is the native format to describe plstim experiments. An experiment must first import the adequate package, and then define a single root Experiment element:

import PlStim 1.0

Experiment {
}

Each experiment can define an arbitrary number of properties, in addition to the standard ones. A minimal experiement must define the number of trials it contains, the size of the visual display, and the name of the experiment:

Experiment {
    name:       "First experiment"
    trialCount: 128  // 128 trials
    size:       9    // 9×9 degrees
}

Finally, the states an experiment can be in are described by pages, which must be added as child to the experiment:

Experiment {
    // […]
    Page {
        name: "fixation"
    }
    Page {
        name: "animation"
        duration: 400     // ms
    }
    // […]
}