|
Post by MG on Jun 4, 2020 16:48:38 GMT
Hello everyone!
I'm a beginner with PsyTool Kit, so I would like to ask you for advice. I'm coding a quite complex experiment, so I need to upload three categories of images (bitmaps), such as emotionally positive, negative, and neutral ones. Particularly, I need to set a "if" only whether the randomly selected image belongs to the latter category. Could I upload them in different folders, or should I associate them with different variables? Thank you in advance
|
|
|
Post by alexandra (AEC) on Jun 5, 2020 11:37:07 GMT
Hi there,
uploading your pictures into different subfolders will not make a difference to the script as you will have to load all images under the point bitmaps in your script anyway. If you, for example, name first all your positive images, then all your neutral images, and then all your negative images, you can refer to the image numbers. Let's say you have 10 pictures each and you started with your images under the point bitmaps, then the first 10 images would be of positive valence, the 11th to 20th of neutral valence and the next 10 images of negative valence. Using a table for a task is, depending on the type of task, most times the easieast. Create a table under the point table in your script with the numbers refering to your images under bitmaps and any other relevant information you might need for your task (e.g., "negative", correct number of key to press ...). In your task you can now refer to the table content. For example, if @(insert column number) == 11 set $valence 0. If you only need to know which image was shown each time you would not even need to set a variable as long as you have defined each valence in your table. In that case you could just refer to the columns containing the information, e.g. first column contains image number and second column the valence saving the data would look like this: save BLOCKNAME @1 @2 If you need more specific help it certainly helps to describe your task(s) in more detail and even load up some code when you are stuck.
|
|