Session Definition

For the definition of a session ERTS offers a special group of commands. These session commands are described in a separate chapter.

 Example for a session definition


; This trial is used for displaying instructions
TRIAL  Prompt
SP  ?  MidPos          ; Show variable picture
WK  -          ; Wait for any key

; This trial definition is used to realize pauses between blocks
TRIAL  Pause
CS  20000          ; Clear screen and wait for 20 s

This trial definition displays a variable stimulus
TRIAL  Trl
CS  1000          ; Clear screen and wait for 1000 ms
RK  ResKeys  2000          ; Record Response, MaxRt = 2000 ms
SP  ?  MidPos  1  0  1          ; Show variable stimulus until response or MaxRt
FB  ?          ; Compare response with correct key

; Choice reaction task: Press left if you see a Square, press right if you see a Circle
BLOCK  Blk  2
1  Trl  Square  SHL
1  Trl  Circle  SHR

SESSION  Choice reaction task (square=left / circle=right)
RUNTRIAL  Prompt  Start          ; Show instruction
RUNBLOCK  Blk  40  4          ; Run 40 valid trials, 4 warm-up trials
RUNTRIAL  Pause          ; Pause for 20 s
RUNTRIAL  Prompt  Start          ; Show instruction
RUNBLOCK  Blk  40  4          ; Run 40 valid trials, 4 warm-up trials
RUNTRIAL  Prompt  Thanks          ; Show Thank You
 



Copyright 2023 - BeriSoft Inc.
All rights reserved