<ep>1<fd 1>2<d 59>3 <s 9>4<cr>5<t 1500>6<id keyboard>7 <dbc 210210210>8<dfs 36>9

<vm 1024,768,768,16,60>10<nfb>11<rcot>12<zil>13<zor>14<vzk +1>15<vzk +2> <vzk +3><eop>1

$16

! 17 Counting Stroop task;

! Includes 1 counting block;

! 9 trials per block, scrambled within block;

! Item number ABC;

! A=condition (1=congruent, 2=neutral, 3=incongruent);

! B= item number in condition;

! last edited on 11-08-05;

 

018 <d 10>"Press SPACEBAR to start"; 19

0 <d 10><ln -1>20 "Press key to indicate the number of objects", <ln 1> "Ignore the actual object" <ms% 700021>/22c23;

0 <d 10><% 59> /c;

$

+1124 *25 <umnr>26<umpr>27<mpr +1>28<mnr +2>29<mnr +3> "1" <% 30> /<% 60>/;

+12 * <umnr><umpr><mpr +2><mnr +1><mnr +3> "2           2" <% 30> /<% 60>/;

+13 * <umnr><umpr><mpr +3><mnr +1><mnr +2> "3           3          3" <% 30> /<% 60>/;

+21 * <umnr><umpr><mpr +1><mnr +2><mnr +3> "X" <% 30> /<% 60>/;

+22 * <umnr><umpr><mpr +2><mnr +1><mnr +3> "X           X" <% 30> /<% 60>/;

+23 * <umnr><umpr><mpr +3><mnr +1><mnr +2> "X           X         X" <% 60> /<% 60>/;

+31 * <umnr><umpr><mpr +1><mnr +2><mnr +3> "3" <% 30> /<% 60>/;

+32 * <umnr><umpr><mpr +2><mnr +1><mnr +3> "1           1" <% 30> /<% 60>/;

+33 * <umnr><umpr><mpr +3><mnr +1><mnr +2> "2           2          2" <% 30> /<% 60>/;

\

$

0 <d 10><ln -1> "Experiment Complete!", <ln 1> "Thank you for participating.";
$

 

 

Notes:

1: EP/Extended Parameters & EOP/End of Parameters should be used at the start and end of the header parameters if these parameters extend beyond one line.

2: FD/Frame Duration is used to specify the default frame duration.  However, this is rarely used b/c we tend to override this in all frames by specifying the frame duration in the item.  That said, its good practice to set a default FD in the parameter line anyway

3: D/Delay is the default delay between items during which the subsequent item is assembled.  If this value is too low for complex items (i.e., large bmp files are presented), you will see an error message in the output file indicating that a display for a particular frame was delayed.

4: S/Scramble defines the scramble block size, the number of groups that the scramble routines will move as a unit. If no grouping parameter is present the group size is 1 item.  See the Verbal Stroop enumerated script for more details on scrambling.

5:CR/Continuous Run is used to override the DMDX’s default mode in which the user must press the space bar to request each item.  If CR is set, the script will only pause on message items (items numbers of 0).

6: T/Time out is the total time that DMDX will wait for a subject’s response before proceeding to the next item.  To avoid unexpected delay errors, the time out value must be shorter than the total elapsed time from the clockon(*) to the end of the item (excluding the delay).

7: ID/Identify Device is used to indicate which devices DMDX should check for input.  The keyboard is included by default if no other devices are specified. However, if you specify any other device, the keyboard must then be specified to use it.

8: DBC/Default Background Color is the color of the background in RGB format.  The first three digit number is the intensity of red (0-255), the next three is the intensity of green (0-255), the final three digits are the intensity of blue (0-255).  000 is black.  255255255 is white.  210210210 is a pleasing gray.  Links to websites with RGB calculators are available on the utility page.

9:  DFS/Default Font Size sets the default font size of displayed text.

10: VM/Video Mode sets basic parameters about the video mode.  First value is the horizontal resolution. Second is vertical resolution.  Third allows you to reduce the useable vertical resolution to decrease refresh interval if you will only use part of the screen (not typically used).  Fourth value is color depth. Final value is refresh rate.  If refresh rate is set to 0, DMDX will chose optimal refresh rate which tends to be 60Hz

11:  NFB/No Feedback overrides DMDX default option to provide feedback after each trial.  We almost always use this. 

12: RCOT/Record Clockon Times.  This will add a column to the output file that includes the time that each clockon was encountered.  Very useful for verifying timing.  We almost always use this for testing purposes.

13: ZIL/ZR/Zillion/Zillion Responses specifies zillion input mode so that all key presses are recorded.  A zillion responses are possible, and because DMDX is expecting up to a zillion cases, the program will not move on until timeout expires.

14: ZOR/Zillion One Response makes zillion responses only take a single response out of many possible.  Response will be recorded if one of validated buttons is pressed.   This overrides the default operate of ZIL and therefore will record response and move to next item on the detection of a valid response.

15: VZK/Validate Zillion Key validates the button as a Zillion mode response. If not used, all button names are recorded by the Zillion input mode, after this keyword's use only those names validated are stored.  This is a way of specifying acceptable responses. <vzk +3> indicates that pressing the three button would suffice as a response.  <vzk -2> indicates releasing the two button would suffice as a response.

16: Anything within the $s will not be scrambled/randomized.

17: ! is used to indicate a comment when used at the start of a line as a correct response indicator.  The line must still be terminated with a ;

18: Each item will start with an item number.  0 is a special item number to indicate a message trial.  Even in CR mode, the script will pause on 0 items and wait for the user to press the space bar to initiate the next item.

19: By default “Text” that appears between quotes will be displayed on the screen as text. 

20: LN/Line specifies which line the “Text” should be displayed on.  The default row for text display is considered row 0 in the middle of the screen, the rows above are negative and the rows below positive.

21: <% N> sets the frame duration in ticks.  This indicates the time that the next frame will be scheduled to begin and is essentially the same as the duration of the current frame (assuming there is a next frame).  There can be no frame duration for the last frame of an item (as there is no next frame). The last frame will always take one tick to execute.  By adding ms <ms% N>, you can set the frame duration in milliseconds instead of ticks.  However, the duration will still be in ticks (always rounded up to the next whole number above the ms duration requested). 

22:  / is the frame delimiter.  It separates frames.  By default, when a new frame starts, the previous frame is erased.  This default erasure can be overridden by placing a <ne> in the frame.

23: By default, when an item line begins with 0, the spacebar must be pressed to continue.  This c overrides that default setting and the program will continue instead of waiting for the spacebar/request button to be pressed.

24: This is a non-zero item number.  If a response is collected, this item number will appear in the output file along with the RT.  In continuousrun mode, it will not pause for a request.

25: * stand for clockon and indicates that DMDX should start timing for a response.

26: UMNR/UnMap Negative Response unmaps all button mappings to the negative response input.  DMDX by default considers the left shift key to be the negative response. 

27: UMPP/UnMap Positive Response unmaps all button mappings to the positive response input.  DMDX by default considers the right shift key the positive response. 

28: MPR/Map Positive Response indicates which button represents a positive response input.

29: MNR/Map Negative Response indicates which button represents a negative response input.

 

Created by Lindsay Sharp

Last edited on 11-19-2005