User Tools

Site Tools


jvs:cigal:showplay:manual:chapter1:ppf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
jvs:cigal:showplay:manual:chapter1:ppf [2011/07/18 22:00]
voyvodic
jvs:cigal:showplay:manual:chapter1:ppf [2023/02/23 18:43] (current)
Line 8: Line 8:
  
   showplay 0                      ; initialize new showplay task   showplay 0                      ; initialize new showplay task
-  showdir = getfile(param_file,4) ; set SHOWDIR to the folder containing this file 
   sbackcolor = "black"            ; screen background color   sbackcolor = "black"            ; screen background color
   stextcolor = 'white'   stextcolor = 'white'
Line 17: Line 16:
   fix                2       4000            -1  -1  ; central '+'   fix                2       4000            -1  -1  ; central '+'
   tones1.wav               6000                    ; play auditory tone   tones1.wav               6000                    ; play auditory tone
-  face1.jpg         14       8000         0    -1  -1  ; show pictures (1/s) +  face1.jpg         14       8000      1000    -1  -1  ; show pictures (1/s) 
-  face2.pcx         14       9000            -1  -1 +  face2.pcx         14         -1      1000    -1  -1  ; Onset value -1 means 
-  scene1.jpg        15      10000            -1  -1 +  scene1.jpg        15         -1      1000    -1  -1  ;  onset is end of prev. stim. 
-  face5.jpg         14      11000            -1  -1 +  face5.jpg         14         -1      1000    -1  -1 
-  face6.jpg         14      12000            -1  -1 +  face6.jpg         14         -1      1000    -1  -1 
-  movie1.avi        16      13000      2000    -1  -1  ; play for 2 secs +  movie1.avi        16         -1      2000    -1  -1  ; play for 2 secs 
-  fix                2      15000            -1  -1 +  fix                2         -1      3000    -1  -1 
-  erase              0      18000 +  erase              0         -1         0 
-  tones2.wav              18000 +  tones2.wav                 -1                    ; play sound 
-  "End of task"      1      18000      2000    -1  -1  ; show text +  "End of task"      1         -1      2000    -1  -1  ; text and tone simultaneous 
-  quit                    20000+  quit                       -1
  
 **Essential components**\\ **Essential components**\\
Line 34: Line 33:
   * The top part of the file should end with a line that says "return". This tells CIGAL not to attempt to process subsequent lines as standard commands. (Note: the "return" line can be omitted if the stimulus table is contained in a separate file -- see below).   * The top part of the file should end with a line that says "return". This tells CIGAL not to attempt to process subsequent lines as standard commands. (Note: the "return" line can be omitted if the stimulus table is contained in a separate file -- see below).
   * If the file contains the stimulus table, you **must** have one (or more) blank lines after the "return" line, to separate the parameter section from the stimulus table. **There must not be any other blank lines within the text sections of the file.** (See Note below for what constitutes a blank line).    * If the file contains the stimulus table, you **must** have one (or more) blank lines after the "return" line, to separate the parameter section from the stimulus table. **There must not be any other blank lines within the text sections of the file.** (See Note below for what constitutes a blank line). 
-  * The stimulus table (normally the bottom section) can be contained in the same file or it can be in a separate file.  If it's in the same file it will be found automatically. If it is in a separate file (e.g. STIMFILE) you need to include a line that says "imagefile1 = STIMFILE" somewhere after the "showplay 0" line.+  * The stimulus table (normally the bottom section) can be contained in the same file or it can be in a separate file.  If it's in the same file it will be found automatically. If it is in a separate file you need to include a line that says "imagefile1 = STIMFILE" somewhere after the "showplay 0" line (use your file name in place of STIMFILE).
  
 __Note:__ A line that starts with space characters is not considered a blank line even though it may look blank. Also, a semicolon (';') and all sebsequent characters on a line is ignored by CIGAL, so that a line that starts with a semicolon will be treated as a blank line even though it doesn't look it. (Put some blank space before the semicolon if you want to embed comments within your stimulus table.) __Note:__ A line that starts with space characters is not considered a blank line even though it may look blank. Also, a semicolon (';') and all sebsequent characters on a line is ignored by CIGAL, so that a line that starts with a semicolon will be treated as a blank line even though it doesn't look it. (Put some blank space before the semicolon if you want to embed comments within your stimulus table.)
  
 **Stimulus file names**\\ **Stimulus file names**\\
-File names for image, sound, and movie stimuli appear as the first argument in the [[jvs:cigal:showplay:manual:chapter1:stimulustable|stimulus table]]. By default, these file names are relative to the current working directory ([[jvs:cigal:manual:chapter4:curdir|Curdir]])Alternativelyyou can explicitly specify the folder containing your stimulus files by setting the [[jvs:cigal:showplay:manual:chapter3:showdir|Showdir]] string variable in the upper portion of the pardigm parameter file. The "showdir=getfile" line in the above example makes the starting directory for finding stimulus files the same directory containing the PPF ([[jvs:cigal:showplay:manual:chapter3:paramfile|Param_file]]) itself.+File names for image, sound, and movie stimuli appear as the first argument in the [[jvs:cigal:showplay:manual:chapter1:stimulustable|stimulus table]]. These file names are relative to the [[jvs:cigal:showplay:manual:chapter3:showdir|SHOWDIR]] directoryBy defaultSHOWDIR is the directory containing the PPF ([[jvs:cigal:showplay:manual:chapter3:paramfile|Param_file]]) itself. Alternatively, you can explicitly specify the folder containing your stimulus files by setting the SHOWDIR string variable in the upper portion of the pardigm parameter file. When set explicitly, the SHOWDIR path is relative to your current working directory ([[jvs:cigal:manual:chapter4:curdir|Curdir]]), not the directory containing the PPF
  
 **Paradigm parameter file names**\\ **Paradigm parameter file names**\\
jvs/cigal/showplay/manual/chapter1/ppf.1311026404.txt.gz · Last modified: 2014/08/04 16:03 (external edit)