Post by arynvaughan on May 4, 2022 18:07:46 GMT
Hello,
I am trying to use the maxtime function to set the max time to be a variable that I define. However, I am finding that my code does not compile, although there are no descriptions of what the error is. I have pasted my code below, and would appreciate any feedback as to what the issue may be.
options # optional and not compatiable with safari, but would be good to limit distractions.
fullscreen
set &MyVariable 1000ms
bitmaps
peg
pegdown
pegleft
pegright
pegup
##Instructions1
##PTTaskInstruction2
table PegTurning
"peg1up" pegup peg peg peg peg peg peg peg 1
"peg1R" pegright peg peg peg peg peg peg peg 1
"peg1D" pegdown peg peg peg peg peg peg peg 1
"peg1L" pegleft peg peg peg peg peg peg peg 1
"peg2up" peg pegup peg peg peg peg peg peg 1
"peg2R" peg pegright peg peg peg peg peg peg 1
"peg2D" peg pegdown peg peg peg peg peg peg 1
"peg2L" peg pegleft peg peg peg peg peg peg 1
"peg3up" peg peg pegup peg peg peg peg peg 1
"peg3R" peg peg pegright peg peg peg peg peg 1
"peg3D" peg peg pegdown peg peg peg peg peg 1
"peg3L" peg peg pegleft peg peg peg peg peg 1
"peg4up" peg peg peg pegup peg peg peg peg 1
"peg4R" peg peg peg pegright peg peg peg peg 1
"peg4D" peg peg peg pegdown peg peg peg peg 1
"peg4L" peg peg peg pegleft peg peg peg peg 1
"peg5up" peg peg peg peg pegup peg peg peg 1
"peg5R" peg peg peg peg pegright peg peg peg 1
"peg5D" peg peg peg peg pegdown peg peg peg 1
"peg5L" peg peg peg peg pegleft peg peg peg 1
"peg6up" peg peg peg peg peg pegup peg peg 1
"peg6R" peg peg peg peg peg pegright peg peg 1
"peg6D" peg peg peg peg peg pegdown peg peg 1
"peg6L" peg peg peg peg peg pegleft peg peg 1
"peg7up" peg peg peg peg peg peg pegup peg 1
"peg7R" peg peg peg peg peg peg pegright peg 1
"peg7D" peg peg peg peg peg peg pegdown peg 1
"peg7L" peg peg peg peg peg peg pegleft peg 1
"peg8up" peg peg peg peg peg peg peg pegup 1
"peg8R" peg peg peg peg peg peg peg pegright 1
"peg8D" peg peg peg peg peg peg peg pegdown 1
"peg8L" peg peg peg peg peg peg peg pegleft 1
task PegTurningTask
table PegTurning
keys space
show background 148 148 148
#Task
draw off
show bitmap @2 -225 -75
show bitmap @3 -75 -75
show bitmap @4 75 -75
show bitmap @5 225 -75
show bitmap @6 -225 75
show bitmap @7 -75 75
show bitmap @8 75 75
show bitmap @9 225 75
draw on
readkey @10 300000
delay 1000
save @1 BLOCKNAME RT # save data
block 1
##pager TaskInstructions1 PTTaskInstruction2
maxtime &MyVariable
tasklist
PegTurningTask 320 fixed
end
Ultimately, we'd like the task to run for a random duration of time. Is this possible to do using the Psytoolkit software? Thank you all in advance for your time.
Aryn
I am trying to use the maxtime function to set the max time to be a variable that I define. However, I am finding that my code does not compile, although there are no descriptions of what the error is. I have pasted my code below, and would appreciate any feedback as to what the issue may be.
options # optional and not compatiable with safari, but would be good to limit distractions.
fullscreen
set &MyVariable 1000ms
bitmaps
peg
pegdown
pegleft
pegright
pegup
##Instructions1
##PTTaskInstruction2
table PegTurning
"peg1up" pegup peg peg peg peg peg peg peg 1
"peg1R" pegright peg peg peg peg peg peg peg 1
"peg1D" pegdown peg peg peg peg peg peg peg 1
"peg1L" pegleft peg peg peg peg peg peg peg 1
"peg2up" peg pegup peg peg peg peg peg peg 1
"peg2R" peg pegright peg peg peg peg peg peg 1
"peg2D" peg pegdown peg peg peg peg peg peg 1
"peg2L" peg pegleft peg peg peg peg peg peg 1
"peg3up" peg peg pegup peg peg peg peg peg 1
"peg3R" peg peg pegright peg peg peg peg peg 1
"peg3D" peg peg pegdown peg peg peg peg peg 1
"peg3L" peg peg pegleft peg peg peg peg peg 1
"peg4up" peg peg peg pegup peg peg peg peg 1
"peg4R" peg peg peg pegright peg peg peg peg 1
"peg4D" peg peg peg pegdown peg peg peg peg 1
"peg4L" peg peg peg pegleft peg peg peg peg 1
"peg5up" peg peg peg peg pegup peg peg peg 1
"peg5R" peg peg peg peg pegright peg peg peg 1
"peg5D" peg peg peg peg pegdown peg peg peg 1
"peg5L" peg peg peg peg pegleft peg peg peg 1
"peg6up" peg peg peg peg peg pegup peg peg 1
"peg6R" peg peg peg peg peg pegright peg peg 1
"peg6D" peg peg peg peg peg pegdown peg peg 1
"peg6L" peg peg peg peg peg pegleft peg peg 1
"peg7up" peg peg peg peg peg peg pegup peg 1
"peg7R" peg peg peg peg peg peg pegright peg 1
"peg7D" peg peg peg peg peg peg pegdown peg 1
"peg7L" peg peg peg peg peg peg pegleft peg 1
"peg8up" peg peg peg peg peg peg peg pegup 1
"peg8R" peg peg peg peg peg peg peg pegright 1
"peg8D" peg peg peg peg peg peg peg pegdown 1
"peg8L" peg peg peg peg peg peg peg pegleft 1
task PegTurningTask
table PegTurning
keys space
show background 148 148 148
#Task
draw off
show bitmap @2 -225 -75
show bitmap @3 -75 -75
show bitmap @4 75 -75
show bitmap @5 225 -75
show bitmap @6 -225 75
show bitmap @7 -75 75
show bitmap @8 75 75
show bitmap @9 225 75
draw on
readkey @10 300000
delay 1000
save @1 BLOCKNAME RT # save data
block 1
##pager TaskInstructions1 PTTaskInstruction2
maxtime &MyVariable
tasklist
PegTurningTask 320 fixed
end
Ultimately, we'd like the task to run for a random duration of time. Is this possible to do using the Psytoolkit software? Thank you all in advance for your time.
Aryn