Post by grayft on Jul 22, 2021 13:31:24 GMT
Hello,
I currently have a rating task as an ongoing task, but the two tasks that I would like to embed involve two separate key presses.
I'd like a participant to press "A" when an animal word occurs, and "L" every 3 minutes. Do I have the tasks embedded properly, or what do you recommend?
I currently have a rating task as an ongoing task, but the two tasks that I would like to embed involve two separate key presses.
I'd like a participant to press "A" when an animal word occurs, and "L" every 3 minutes. Do I have the tasks embedded properly, or what do you recommend?
options
mouse on
background color 15213B
bitmaps
eventinstruct1
timeinstruct1
pleasantinstruct1
ebtbinstruct1
abroad
acting
advice
affect
ages
alive
appeal
artist
aspect
author
tiger
CUE_redtimex
RATE_empty
RATE_fill
RATE_HOWPLEASANT2
RATE_NOTPLEASANT
RATE_PLEASANT
table wordlist
abroad "1 word cue"
acting "2 word cue"
advice "3 word cue"
affect "4 word cue"
ages "5 word cue"
alive "6 word cue"
appeal "7 word cue"
artist "8 word cue"
aspect "9 word cue"
tiger "10 event cue"
#This is to record event-based cue PM performance by recording timestamp of keystrokes
task time_based
keys l
timestamp tb1
timestamp tb2
timestamp tb3
timestamp tb4
timestamp tb5
timestamp tb6
timestamp tb7
timestamp tb8
set $my_differenceTB timestamp-diff tb1 tb2 tb3 tb4 tb5 tb6 tb7 tb8
save $my_differenceTB
#This is to record event-based cue PM performance by recording timestamp of keystrokes
task event_based
keys a
timestamp eb1
timestamp eb2
timestamp eb3
timestamp eb4
timestamp eb5
timestamp eb6
timestamp eb7
timestamp eb8
timestamp eb9
set $my_differenceEB timestamp-diff tb1 tb2 tb3 tb4 tb5 tb6 tb7 tb8
save $my_differenceEB
task rate_word
show bitmap @1 0 -100
rate option pos 0 200
rate option labels RATE_NOTPLEASANT RATE_PLEASANT
rate option items RATE_empty
rate 10000 5
set $time_to_wait 0
if RATE_RT < 10000 && RATE_STATUS != 3
show text "Please Wait" 0 100
set $time_to_wait expression 10000 - RATE_RT
delay $time_to_wait
fi
save $time_to_wait RATE RATE_RT RATE_STATUS
save @1 RATE RATE_RT RATE_STATUS
block test
message pleasantinstruct1 mouse
message ebtbinstruct1 mouse
tasklist
rate_word 10 all_before_repeat
event_based 9 fixed
time_based 8 fixed
end