The Inquisit scripting language consists of elements and attributes,
which enable you to declare and configure the experiment scripts.
Elements are the basic building blocks of a script, attributes allow you to change elements properties.
Just like in a real world, we have elements and each element has some attributes, eg. element 'tree' has the following attributes: colour, height, shape etc.
To learn more about elements and attributes press F1 --> Introduction -->The Inquisit Scripting Language
<text hello>
/items = ("Hello")
/txcolor = (0, 100, 255)
/fontstyle = ("Arial", 50pt, true)
</text>
What you can see above - 'text hello' is one of the elements, press green arrow on toolbar to see how 'text hello' works,
press Ctr+Q to quit.
If you type "<" somewhere in this window you can see a list of all possible elements.
In order to define an element, first you need to choose what type of element you'd prefer (e.g. text) and then create unique name of the element (e.g. hello)
To start with element, you have to use opening tags <element name>, where "element" means element's type and "name" means unique name you can choose,
after this you have to close element using closing tags </element>
Between opening tags <element name> and closing tags </element> you can place attributes by typing "/"
Try to type "/" somewhere between "text hello" opening and closing tags to see all posible attributes that apply to text element
Click between "text hello" opening nad closing tags and press F1 to see description of all attributes,
click on particular attribute in help page to see detailed description and examples of how to use it.
For "text hello" element we have defined: item, txcolor and fontstyle attributes.
In help page you can find out that the item's attribute defines the item's content in the stimulus set.
Now it is your turn, try to figure out:
What does txcolor attribute do? How does fontstyle atribute work?
Inquisit offers you a lot of elements and you can use them to build yor own experiment.
No matter how complicated is your experiment, the basic idea is always the same:
you create elements and specified them by changing its attributes, in this way you can shape element as you want,
then you bind elements to create script.
So far so good ;)
Now you are ready to check episode 2 basic_script. Let's bind some elements in a real script.
Brak komentarzy:
Prześlij komentarz
Uwaga: tylko uczestnik tego bloga może przesyłać komentarze.