Post by grayft on Jul 20, 2021 21:45:18 GMT
insert code here
Hello,
Here is what I am trying to accomplish:
I am running a prospective memory experiment where I want the Rating task to be the ongoing/cover task, and the true tasks of interest will be measuring a time-based response (pressing a key every 3 minutes), an event-based response (seeing an animal word in the word list), or both. Those are my 3 conditions: time cue, event cue, both
The ongoing task is a pleasantness rating task where the participant will have to rate how pleasant they find a word.
I would like each trial to be time locked at 10 total seconds, so that regardless if the participant rates the word in a shorter amount of time, the next trial cannot begin until the 10 seconds has elapsed.
I am very close to having this correct but need help because I can get the stimulus to clear after 10 seconds, but it chooses a response (1-5) instead of no response/timeout. This is causing the expression I have that is 10000ms - RATE_RT to add ten seconds to a timeout response.
So, how do I ensure that a timeout response will not record a rating?
# enter code
options
mouse on
background color 15213B
bitmaps
eventinstruct1
timeinstruct1
pleasantinstruct1
ebtbinstruct1
abroad
acting
advice
affect
ages
alive
appeal
artist
aspect
author
award
baby
solo
beach
belief
belong
block
bond
branch
budget
busy
calm
camera
carbon
cell
choose
circle
coal
crew
curve
memo
decide
desk
dirt
double
dozen
dream
driven
ears
ease
eating
edges
ended
idle
enjoy
escape
estate
excess
exist
expert
extend
extra
faced
fallen
fellow
fifth
finish
flat
flight
foam
frank
fund
garden
gently
gift
glad
glance
goal
grace
grant
guess
guide
handle
happen
harbor
heaven
height
hole
honor
horn
humor
hurry
ideal
impact
inch
inner
iron
issues
item
jacket
jobs
join
jumped
abide
keys
kinds
knee
lake
latest
league
leaves
limit
liquid
load
loose
loved
lumber
magic
mantle
marine
mature
medium
metal
mine
minor
table
muscle
namely
narrow
native
navy
nearby
nights
nodded
noise
nose
notes
notice
notion
daily
object
obtain
occur
pivot
offers
onset
onto
opera
orders
ought
output
owner
page
palace
patent
path
pick
pilot
plain
porch
prince
proud
queen
quick
random
rapid
reply
rice
ring
rising
rough
rural
sacred
safety
salt
seat
senate
severe
shore
song
talent
tape
teach
thank
tissue
tragic
travel
worry
trust
twelve
uncle
unique
unlike
urban
urged
useful
vary
vast
vice
rustic
virtue
vision
visual
vital
voices
voting
wage
wagon
waited
warm
wave
wheel
wild
wire
certain
wooden
yellow
grass
calendar
leaf
cheese
pencil
otter
termite
anteater
rooster
hamster
lobster
butterfly
terrier
deer
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"
author "10 word cue"
award "11 word cue"
baby "12 word cue"
solo "13 word cue"
beach "14 word cue"
belief "15 word cue"
belong "16 word cue"
block "17 word cue"
bond "18 word cue"
branch "19 word cue"
budget "20 word cue"
busy "21 word cue"
calm "22 word cue"
camera "23 word cue"
carbon "24 word cue"
cell "25 word cue"
choose "26 word cue"
circle "27 word cue"
coal "28 word cue"
crew "29 word cue"
curve "30 word cue"
memo "31 word cue"
decide "32 word cue"
desk "33 word cue"
dirt "34 word cue"
double "35 word cue"
dozen "36 word cue"
dream "37 word cue"
driven "38 word cue"
ears "39 word cue"
ease "40 word cue"
eating "41 word cue"
edges "42 word cue"
ended "43 word cue"
idle "44 word cue"
enjoy "45 word cue"
escape "46 word cue"
estate "47 word cue"
excess "48 word cue"
exist "49 word cue"
expert "50 word cue"
extend "51 word cue"
extra "52 word cue"
faced "53 word cue"
fallen "54 word cue"
fellow "55 word cue"
fifth "56 word cue"
finish "57 word cue"
flat "58 word cue"
flight "59 word cue"
foam "60 word cue"
frank "61 word cue"
fund "62 word cue"
garden "63 word cue"
gently "64 word cue"
gift "65 word cue"
glad "66 word cue"
glance "67 word cue"
goal "68 word cue"
grace "69 word cue"
grant "70 word cue"
guess "71 word cue"
guide "72 word cue"
handle "73 word cue"
happen "74 word cue"
harbor "75 word cue"
heaven "76 word cue"
height "77 word cue"
hole "78 word cue"
honor "79 word cue"
horn "80 word cue"
humor "81 word cue"
hurry "82 word cue"
ideal "83 word cue"
impact "84 word cue"
inch "85 word cue"
inner "86 word cue"
iron "87 word cue"
issues "88 word cue"
item "89 word cue"
jacket "90 word cue"
jobs "91 word cue"
join "92 word cue"
jumped "93 word cue"
abide "94 word cue"
keys "95 word cue"
kinds "96 word cue"
knee "97 word cue"
lake "98 word cue"
latest "99 word cue"
league "100 word cue"
leaves "101 word cue"
limit "102 word cue"
liquid "103 word cue"
load "104 word cue"
loose "105 word cue"
loved "106 word cue"
lumber "107 word cue"
magic "108 word cue"
mantle "109 word cue"
marine "110 word cue"
mature "111 word cue"
medium "112 word cue"
metal "113 word cue"
mine "114 word cue"
minor "115 word cue"
table "116 word cue"
muscle "117 word cue"
namely "118 word cue"
narrow "119 word cue"
native "120 word cue"
navy "121 word cue"
nearby "122 word cue"
nights "123 word cue"
nodded "124 word cue"
noise "125 word cue"
nose "126 word cue"
notes "127 word cue"
notice "128 word cue"
notion "129 word cue"
daily "130 word cue"
object "131 word cue"
obtain "132 word cue"
occur "133 word cue"
pivot "134 word cue"
offers "135 word cue"
onset "136 word cue"
onto "137 word cue"
opera "138 word cue"
orders "139 word cue"
ought "140 word cue"
output "141 word cue"
owner "142 word cue"
page "143 word cue"
palace "144 word cue"
patent "145 word cue"
path "146 word cue"
pick "147 word cue"
pilot "148 word cue"
plain "149 word cue"
porch "150 word cue"
prince "151 word cue"
proud "152 word cue"
queen "153 word cue"
quick "154 word cue"
random "155 word cue"
rapid "156 word cue"
reply "157 word cue"
rice "158 word cue"
ring "159 word cue"
rising "160 word cue"
rough "161 word cue"
rural "162 word cue"
sacred "163 word cue"
safety "164 word cue"
salt "165 word cue"
seat "166 word cue"
senate "167 word cue"
severe "168 word cue"
shore "169 word cue"
song "170 word cue"
talent "171 word cue"
tape "172 word cue"
teach "173 word cue"
thank "174 word cue"
tissue "176 word cue"
tragic "177 word cue"
travel "178 word cue"
worry "179 word cue"
trust "180 word cue"
twelve "181 word cue"
uncle "182 word cue"
unique "183 word cue"
unlike "184 word cue"
urban "185 word cue"
urged "186 word cue"
useful "187 word cue"
vary "188 word cue"
vast "189 word cue"
vice "190 word cue"
rustic "191 word cue"
virtue "192 word cue"
vision "193 word cue"
visual "194 word cue"
vital "195 word cue"
voices "196 word cue"
voting "197 word cue"
wage "198 word cue"
wagon "199 word cue"
waited "200 word cue"
warm "201 word cue"
wave "202 word cue"
wheel "203 word cue"
wild "204 word cue"
wire "205 word cue"
certain "206 word cue"
wooden "207 word cue"
yellow "208 word cue"
grass "209 word cue"
calendar "210 word cue"
leaf "211 word cue"
cheese "212 word cue"
pencil "213 word cue"
otter "214 event cue"
termite "215 event cue"
anteater "216 event cue"
rooster "217 event cue"
hamster "218 event cue"
lobster "219 event cue"
butterfly "220 event cue"
terrier "221 event cue"
deer "222 event cue"
tiger "223 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_difference timestamp-diff tb1 tb2 tb3 tb4 tb5 tb6 tb7 tb8
save $my_difference
#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_difference timestamp-diff tb1 tb2 tb3 tb4 tb5 tb6 tb7 tb8
save $my_difference
task rating
table wordlist
show bitmap CUE_redtimex 0 -100 #1 fixpoint
delay 500
clear 1
draw off
show bitmap @1 0 -100 #2 words
show bitmap RATE_NOTPLEASANT -285 200 #3 not pleasant rating
show bitmap RATE_PLEASANT 285 200 #4 extremely pleasant rating
show bitmap RATE_empty -150 200 #5 empty stars that can be clicked
show bitmap RATE_empty -100 200 #6
show bitmap RATE_empty -50 200 #7
show bitmap RATE_empty 0 200 #8
show bitmap RATE_empty 50 200 #9
show bitmap RATE_empty 100 200 #10
show bitmap RATE_empty 150 200 #11
draw on
readmouse l 1 10000 range 5 11 # wait for left mouse click for 10sec
set $b under MOUSE_X MOUSE_Y # which bitmap was clicked?
set $score expression $b - 4 # determine scale score
## now draw filled stimulus on the selected bitmap
set $p expression ( $score - 1 ) * 50 - 150 # determine X position of clicked bitmap
show bitmap RATE_fill $p 200
delay 300
clear screen
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 $score RT STATUS @2
block test
message pleasantinstruct1 mouse
message ebtbinstruct1 mouse
tasklist
rating 223 all_before_repeat
time_based 8
event_based 9
end