|
Post by Jane on Aug 9, 2020 5:59:41 GMT
I saw this lesson about selecting one among a number of bitmaps: www.psytoolkit.org/lessons/select_bitmap.htmlHowever, I couldn't apply it to my project because I don't know how to assign values to bitmaps. Basically, I also want the participants to choose among 4 bitmaps but I want it to be recorded not as 1/2/3/4 but as the values assigned to the bitmaps. This is because I will use that value for the feedback. (For example, if the participants click bitmap 1, the feedback will say that his score is 500) Another problem is, I want to use a global variable and report the score of the participants constantly throughout the experiment. Just like in the IOWA Gambling task. Is it possible to input a formula in excel and import that excel into psytoolkit? How? I already tried studying the sample experiment for the IOWA Gambling task but I'm such a noob, I really don't understand the text files.
|
|
|
Post by alexandra (AEC) on Aug 10, 2020 9:01:19 GMT
Hi there, as a starting point, numbers are assigned to images in accordance of the order you write them under bitmaps, e.g. bitmaps car cat couch The image car would have number 1, cat number 2 and couch number 3. This can be used, for example, when you want to show images on the screen and not write the image name but instead just the number. Another assignment of numbers occurs during a task, when you show images on a screen. For example, you show first the couch, then the cat and then the car on the screen and they all can be seen. Using readmouse for clicking on an image, a choice is available in the range of 1 to 3, with 1 referring to the first image (couch), 2 referring to the second image (cat), and 3 to the third image (car). You could use an "if"-statement for recording the assigned values. Depending on what image was clicked on you could then save the value in accordance with the choice, e.g. readmouse l 1 5000 set $number_of_bitmap bitmap-under-mouse MOUSE_X MOUSE_Y if $number_of_bitmap == 1 set $score 500 fi and so on ... For an example of reading the image number, see also here: www.psytoolkit.org/lessons/select_bitmap.htmlAs you can see, I used a local variable for the score in the task. Depending on what you want (showing the score of the trial or showing the overall score) you might want to use a global variable instead. If you want to show the total score at another stage, you can add the value of the local variable to your global variable by set &totalscore + $score for example. I am not aware of the possibility of importing an excel formula but you could try using set expression [insert formula] I hope this helped you a bit.
|
|
|
Post by PsyToolkit on Aug 11, 2020 9:33:11 GMT
To follow up on Alexandra's helpful comment:
You cannot use Excel. You probably think about the Excel files created by PsyToolkit analysis, they cannot be ready by PsyToolkit experiments, and I do not think there would ever be a need for it.
In essence, I think that Alexandra's comment helps you to make a start with it, hopefully it works.
|
|
jane
New Member
Posts: 5
|
Post by jane on Aug 12, 2020 7:33:18 GMT
Thank you so much Alexandra!! Because of your help, I'm now nearly done with my experiment
|
|
jane
New Member
Posts: 5
|
Post by jane on Aug 12, 2020 7:36:32 GMT
My remaining problem now is, there seems to be a time limit for each tasks and I can't get rid of it. It always shift to the next task after a few seconds even when a response (mouseclick) has not been made.
When I try to put delay, what happens is the response also gets delayed. When I do a mouseclick response, it does not automatically shift to the next task.
|
|
|
Post by alexandra (AEC) on Aug 12, 2020 10:38:33 GMT
The timer of readmouse is the number behind the 1 in my stated example above: Time limit 5000 ms. If you want to increase this, just change this number to a higher amount of ms, e.g. 60000 for one minute. Afer a mouseclick it should go directly to the next bit of code. Delay does mean in this case that the order is to wait for the stated time until the next bit of code is read.
|
|
jane
New Member
Posts: 5
|
Post by jane on Aug 12, 2020 13:50:52 GMT
I totally forgot about that readmouse line. Thank you so much!!! <3
|
|