Post by cogscinerd on Apr 5, 2022 14:38:13 GMT
First
Thanks for creating PsyToolkit.
1. However, I wanted to show an image (a flower) in feedback, and turns out it is not possible inside "feedback".
2. Then I tried showing a bitmap above feedback in the block; turned out the location of the image is always at center, and it does not change even when changing coordinates.
3. I tried to change the background color of inter-block window (that is interblock feedback window; my experiment window color is black that I already defined in options) from black to green. That is also not available inside a block.
4. I want to show two different feedback depending on magnitude of percentage error. Turns out if/fi statement is not available in 'block' and 'feedback' syntax.
5. finally the command like "text 0 -150 &LostPointsNogo ; prefix "Total points lost on Nogo trials = " ;" are so useful as they have prefix and suffix option. But they do not work inside 'task' or 'block'; they work only inside 'feedback'
6. Total block count is not available. BLOCKNUMBER is there that gives the current block number. Of course, I can count by making a global variable but that does not serve the purpose as the count is needed at the beginning of the experiment.
Here is a short snippet. Any help/update on these issues is really appreciated.
block runblock2
part runblock #it contains task list and task
#background green #alas! not working
bitmap TaskCompleted -960 -540 # want to show this image at top left corner but it always comes at center 0,0
#----------------experiments ends here-------------------------
feedback # feedback from all blocks, allows set, text, save, lineplot, xyplot keywords
#bitmap TaskCompleted #does not work here
set &LostPointsTotal expression &TotalNoGoErrTrl*3 + &TotalGoErrTrl
set &MoneyEarned expression (1440 - &LostPointsTotal)/10
text color yellow
text align center #center, left, or right
#if &LostPointsNogo == 0 #if/fi does not work inside feedback and block
# text 0 -350 "Hurray! You have done like experts.:"
#fi
text 0 -350 "Hurray! All blocks completed. Here is your overall performance:"
text 0 0 &MoneyEarned ; prefix "Total reward earned = (Total Possible Points - Total points lost)/10 = " ; postfix " ruppes
end
Thanks for creating PsyToolkit.
1. However, I wanted to show an image (a flower) in feedback, and turns out it is not possible inside "feedback".
2. Then I tried showing a bitmap above feedback in the block; turned out the location of the image is always at center, and it does not change even when changing coordinates.
3. I tried to change the background color of inter-block window (that is interblock feedback window; my experiment window color is black that I already defined in options) from black to green. That is also not available inside a block.
4. I want to show two different feedback depending on magnitude of percentage error. Turns out if/fi statement is not available in 'block' and 'feedback' syntax.
5. finally the command like "text 0 -150 &LostPointsNogo ; prefix "Total points lost on Nogo trials = " ;" are so useful as they have prefix and suffix option. But they do not work inside 'task' or 'block'; they work only inside 'feedback'
6. Total block count is not available. BLOCKNUMBER is there that gives the current block number. Of course, I can count by making a global variable but that does not serve the purpose as the count is needed at the beginning of the experiment.
Here is a short snippet. Any help/update on these issues is really appreciated.
block runblock2
part runblock #it contains task list and task
#background green #alas! not working
bitmap TaskCompleted -960 -540 # want to show this image at top left corner but it always comes at center 0,0
#----------------experiments ends here-------------------------
feedback # feedback from all blocks, allows set, text, save, lineplot, xyplot keywords
#bitmap TaskCompleted #does not work here
set &LostPointsTotal expression &TotalNoGoErrTrl*3 + &TotalGoErrTrl
set &MoneyEarned expression (1440 - &LostPointsTotal)/10
text color yellow
text align center #center, left, or right
#if &LostPointsNogo == 0 #if/fi does not work inside feedback and block
# text 0 -350 "Hurray! You have done like experts.:"
#fi
text 0 -350 "Hurray! All blocks completed. Here is your overall performance:"
text 0 0 &MoneyEarned ; prefix "Total reward earned = (Total Possible Points - Total points lost)/10 = " ; postfix " ruppes
end