Contingent trial looping based on keyboard press


Author
Message
SCHAMP
SCHAMP
Partner Member (833 reputation)Partner Member (833 reputation)Partner Member (833 reputation)Partner Member (833 reputation)Partner Member (833 reputation)Partner Member (833 reputation)Partner Member (833 reputation)Partner Member (833 reputation)Partner Member (833 reputation)
Group: Forum Members
Posts: 13, Visits: 37
Hi, 

We are showing 16 blocks, with 8 images presented in each block (this is the same image shown 8 times).
The images are facial expressions shown by a child’s caregiver and a stranger, so that:
Block HC = Happy Caregiver. The same image is shown 8 times, before another block is shown in randomized order. For your reference:
HS = Happy Stranger
FC = Fearful Caregiver
FS = Fearful Stranger
AC = Anger Caregiver
AS = Anger Stranger
NS = Neutral Stranger
NC = Neutral Caregiver
The trial starts with a fixation cross (1000ms), followed by the image (3000ms), and an inter-trial interval (1000ms).
We would like each trial to commence with the press of the space bar.
However, we want to add in a “loop” where if the child is not looking at the screen, we can press 1 to initiate a video of a looming ball to engage the child back to the screen. When the child looks back at the screen, we want to press space to initiate the trial (as per above), but back to the start of the block that was being presented prior to the child looking away from the screen. So, if they don’t look at any time during the block, we want to initiate the looming ball and when they re-engage, we want to restart the block.
Can you please point us in the right direction as to how we could best do this?
We have attached our script.

Thank you!


Attachments
EMG_Ariana_2.1.iqx (346 views, 16.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
SCHAMP - 5 Years Ago
Dave - 5 Years Ago
SCHAMP - 5 Years Ago
                 + x [quote] [b] SCHAMP - 7/12/2019 [/b] + x...
Dave - 5 Years Ago
                     + x [quote] [b] Dave - 7/12/2019 [/b] + x...
SCHAMP - 5 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search