Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
jvs:cigal:showplay:manual:chapter1:ppf [2011/07/18 22:00] – voyvodic | jvs:cigal:showplay:manual:chapter1:ppf [2013/08/12 14:53] – voyvodic |
---|
| |
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' |
fix 2 0 4000 0 -1 -1 ; central '+' | fix 2 0 4000 0 -1 -1 ; central '+' |
tones1.wav 3 0 6000 0 ; play auditory tone | tones1.wav 3 0 6000 0 ; play auditory tone |
face1.jpg 14 1 8000 0 -1 -1 ; show pictures (1/s) | face1.jpg 14 1 8000 1000 -1 -1 ; show pictures (1/s) |
face2.pcx 14 1 9000 0 -1 -1 | face2.pcx 14 1 -1 1000 -1 -1 ; Onset value -1 means |
scene1.jpg 15 1 10000 0 -1 -1 | scene1.jpg 15 1 -1 1000 -1 -1 ; onset is end of prev. stim. |
face5.jpg 14 1 11000 0 -1 -1 | face5.jpg 14 1 -1 1000 -1 -1 |
face6.jpg 14 1 12000 0 -1 -1 | face6.jpg 14 1 -1 1000 -1 -1 |
movie1.avi 16 1 13000 2000 -1 -1 ; play for 2 secs | movie1.avi 16 1 -1 2000 -1 -1 ; play for 2 secs |
fix 2 0 15000 0 -1 -1 | fix 2 0 -1 3000 -1 -1 |
erase 0 0 18000 | erase 0 0 -1 0 |
tones2.wav 3 0 18000 | tones2.wav 3 0 -1 0 ; play sound |
"End of task" 1 0 18000 2000 -1 -1 ; show text | "End of task" 1 0 -1 2000 -1 -1 ; text and tone simultaneous |
quit 0 0 20000 | quit 0 0 -1 |
| |
**Essential components**\\ | **Essential components**\\ |
* 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]]). Alternatively, you 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]] directory. By default, SHOWDIR 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**\\ |