Inquiry - Creating Batches


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 107K
dillonk - 9/19/2020
Thanks so much for your help! I have another question. In our study, we don't have an experiment per say in terms of millisecond tasks; our different experimental groups complete the same tasks at each study visit. So, I need the script to stop running after each session. I have it written so that each visit is its own session, however, when I try it out, the next batch starts when I complete the first one. Is there a way to do this in web? I understand that in web, it keeps track of ID, so we don't have to enter session number. I'm wondering if this is something that I'd specify in the batch script or the test script itself. 

Thanks again for your continued help!


I need you to be more specific: Which scripts do you want to run for which participants?
dillonk
dillonk
Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)
Group: Forum Members
Posts: 17, Visits: 68
Hi Dave, 
No problem. I need the following scripts in the visits outlined below. The participants will all complete the same tasks except for at the second visit. Let me know if I can provide any other info!
-visit 1: stroop, emotion dot probe (all participants)
-visit 2: stroop, emotion dot probe, stop signal (group 1)
-visit 2: stroop, emotion dot probe, stop signal, MID (group 2)
-visit 3: stroop, emotion dot probe, stop signal (all participants)
-visit 4: stroop, emotion dot probe, stop signal (all participants)

This is how I have the batch script written:
<batch>
/ sessions = (1 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"

</batch>

<batch>
/ sessions = (2 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask.iqx"
/ file = "monetaryincentivedelaytask.iqx"
/ groups = (1 of 2)

</batch>

<batch>
/ sessions = (2 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask.iqx"
/ groups = (2 of 2)
</batch>

<batch>
/ sessions = (3 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask2019.iqx"
</batch>

<batch>
/ sessions = (4 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask.iqx"
</batch>



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 107K
dillonk - 9/22/2020
Hi Dave, 
No problem. I need the following scripts in the visits outlined below. The participants will all complete the same tasks except for at the second visit. Let me know if I can provide any other info!
-visit 1: stroop, emotion dot probe (all participants)
-visit 2: stroop, emotion dot probe, stop signal (group 1)
-visit 2: stroop, emotion dot probe, stop signal, MID (group 2)
-visit 3: stroop, emotion dot probe, stop signal (all participants)
-visit 4: stroop, emotion dot probe, stop signal (all participants)

This is how I have the batch script written:
<batch>
/ sessions = (1 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"

</batch>

<batch>
/ sessions = (2 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask.iqx"
/ file = "monetaryincentivedelaytask.iqx"
/ groups = (1 of 2)

</batch>

<batch>
/ sessions = (2 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask.iqx"
/ groups = (2 of 2)
</batch>

<batch>
/ sessions = (3 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask2019.iqx"
</batch>

<batch>
/ sessions = (4 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask.iqx"
</batch>



I see, thank you for the clarification. The problem here is the combination of both /sessions and /groups at the same level. That won't work: The respective <batch> will run when *either* attribute applies, i.e. enter session number 1 and group number 1, and those two batches apply and will be executed:

<batch>
/ sessions = (1 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"

</batch>

<batch>
/ sessions = (2 of 4)
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask.iqx"
/ file = "monetaryincentivedelaytask.iqx"
/ groups = (1 of 2)

</batch>

The only way around that is to get rid of either /groups (or /sessions) at that level and perform the split into different groups for session #2 in another way , e.g.

//session 1
<batch>
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ sessions = (1 of 4)
</batch>

//session 2 groups 1 & 2
<batch>
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask.iqx"
/ file = "group1_vs_group2_shim.iqx"

/ sessions = (2 of 4)
</batch>

// session 3
<batch>
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask.iqx"
/ sessions = (3 of 4)
</batch>

// session 4
<batch>
/ file = "stroopwithcontrolkeyboard.iqx"
/ file = "emotiondotprobe.iqx"
/ file = "stopsignaltask.iqx"
/ sessions = (4 of 4)
</batch>

where "group1_vs_group2_shim.iqx" is set up to adminster the MID to one group, but not the other:

<include>
/ precondition = [
    mod(script.groupid, 2) == 1;
]
/ file = "monetaryincentivedelaytask.iqx"
</include>



Attachments
penguin_mod.iqx (242 views, 669 bytes)
group1_vs_group2_shim.iqx (230 views, 117 bytes)
dillonk
dillonk
Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)Associate Member (249 reputation)
Group: Forum Members
Posts: 17, Visits: 68
Hi Dave, 

Thanks again for your help. I used your attachments and tried to run the script, but didn't have any luck. It opened and started with the stop signal task instead of the stroop. Do you have any suggestions here? I really appreciate your support- this is all very new to me. 
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 107K
dillonk - 9/23/2020
Hi Dave, 

Thanks again for your help. I used your attachments and tried to run the script, but didn't have any luck. It opened and started with the stop signal task instead of the stroop. Do you have any suggestions here? I really appreciate your support- this is all very new to me. 

You need to set the batch script as your online experiment's start script.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search