Presentation 使用说明.ppt_第1页
Presentation 使用说明.ppt_第2页
Presentation 使用说明.ppt_第3页
Presentation 使用说明.ppt_第4页
Presentation 使用说明.ppt_第5页
已阅读5页,还剩39页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Presentation http nbs neuro Outline Presentation简介Presentation窗口Scenario文件举例如何写Scenario文件Scenario中的概念PresentationtimingPCL文件 一 presentation简介 Presentation是用于行为和生理实验中 进行刺激呈现和实验控制的高精度程序 它有如下特征 Windows95 98 ME 2000 XP均可兼容提供毫秒级以下的时间精确度以及对于所有刺激和反应事件的完整的时间信息使用标准的PC硬件处理多重任务 包括同时的视觉和听觉刺激的传送 反应以及中断登记 引发输入 输出适应性强且容易操作使利用fMRI ERP MEG和单神经元记录的神经和生理实验最优化 一 Presentation硬件要求 常规 奔腾或兼容的PC机16MB系统内存Win95 98 me XPMicrosoftDirectXVersion8Presentation对于硬件没有固定要求 主要有二点基本考虑 即硬件是否能以想要的方式呈现刺激 和硬件是否可以达到需要的计时准确率 二 Presentation主要文件 EXP experiment SCE scenario definitionPCL presentationcontrollanguage 二 Presentation窗口 Exp文件图标 Scenario文件图标 如何建立一个实验 创建一个目录 最好把实验文件和其中要使用的刺激文件放在同一个目录下 每个presentation文件由一系列部分组成 称为scenario 三 Scenario文件举例 scenario Showmypicture scenario type trials no logfile true begin picture default trial picture bitmap filename my bitmap bmp x 0 y 0 time 0 duration 2000 code mybitmap scenario Showmypicture scenario type trials no logfile true begin picture default trial picture bitmap filename my bitmap bmp x 0 y 0 time 0 duration 2000 code mybitmap picture background color 255 0 0 bitmap filename my bitmap bmp x 0 y 0 text font size 36 caption Hi x 0 y 0 time 3000 duration 2000 code mybitmap scenario Showmypicture scenario type trials no logfile true active buttons 2 button codes 1 2 begin picture text caption default x 0 y 0 default trial trial duration 5000 trial type first response picture bitmap filename my bitmap bmp x 0 y 0 time 0 duration 2000 code mybitmap active buttons 2 表示用二个输入按钮button codes 1 2 这二个按钮的反应在presentaion的输出文件中分别用1和2来代表的 在inputdevicestab中来选择二个按钮来设置 trial duration forever表明如果没有反应就会一直持续下去trial duration 5000表明如果没有反应 trial会持续五秒trial type first response表明任何反应都会终止trialtrial type nth response只有当参数max response给出的反应数发生才会终止当前的trial 四 如何写Scenario文件 HeaderBodystimulusArraytrials Scenariofileheaders Scenario文件的开始部分 即begin 之前的那部分 Begin 标志着文件头的结束以及scenario文件中body的开始 Header中的所有陈述都是definition 给某些参数指定值 如果参数没有被定义 那么会被指定为缺省值 需要注意headerparameter的名字是区分大小写的 都要用小写 且不包含有空格 scenario eeg pcl file eeg pcl no logfile false scenario type trials active buttons 2 button codes 1 2 Bodybegin stimulipicture text caption 1 x 0 y 0 pictext1 Arrayarray text caption 1 text1 text caption 2 text2 number trialstrial stimulus event picturepictext1 duration 1000 event1 trial1 五 Scenario中的概念 Comment 以 开头如果长度为几行 那么在每一行开始都要加上 如果 被包含在一个字符串 中 那么就不代表Comment Statement scenario文件中的信息以非常小的部分呈现 叫做statement Statement以分号结尾 不要落下 Scenario中的statement有二种类型 definition和declaration definition parameter value declaration type description type description name typename Statement中的书写规范 Parameternames中不包含空格 如果由几个单词组成 中间可以用下划线相连 小写字母 区分大小写 一列数字间用逗号分开 字符包含在双引号之内 字符串内有三个字符有特殊含义 表示结束该字符 表示一个变量名的开始 用于字符串中包含特殊字符 如果在字符串中想使用这三个字符 一定要在前面都加上 n代表新的一行 t代表一个tab 这几种符号一定要注意不要落写 Definecolor Exampledefault background color 255 255 255 whitedefault text color 0 0 0 black background color 255 0 0 pure red text color 0 255 0 pure green background color 0 0 255 pure blue text color 59 234 189 somecolor Stimuli picture sound andnothingNames 在declaration的描述部分中 在 之后可以给该trial stimulus picture一个名字 这样可以在后面的语句中使用 Scenariotypes trials fMRI fMRI emulationTrials 刺激系列 Exampletrial picture bitmap filename my map2 pcx map2 x 0 y 0 pic1 time 1000 duration 500 picture bitmapmap2 reusemap2describedabovex 200 y 200 deltat 500 duration 500 picturepic1 reusepic1describedabovedeltat 500 duration 500 ScenarioAutomationFeatures VariableTemplateLoopIfStatementMathematicalExpresssionsVariablesinStrings Variable Variable与template一起使用的时候是很有用的 在它的前面有一个 符号 与名字间没有空格 可以在scenario文件任意位置定义变量 变量名以字母开头 区分大小写 由一系列字母 数字 以及下划线的组合构成 注意不要让变量名与presentation中的一些预定的名字 如变量名 类型名等 相同 Variable可以是任何被指定给参数的值 但是不能是一列数 如 var1 helloeveryone var2 6 5 var3 first response black 0 0 0 white 255 255 255 错误 一旦变量被指定了值 那么在它出现的位置就会被该变量的值所代替 TEMPLATE 大写 如果有很多个trial 除了调用的文件名不一样之外其余的结构都一样 就要使用模板文件 TEMPLATE filename var name1var name2 前面不加 若在前面被定义 加 value 1avalue 2a value 1bvalue 2b 步骤 建一个 tem的模板文件 在scenario文件中使用TEMPLATE tem 一个template文件不仅可以使用templatedeclaration中的变量 还可使用先前定义的任何变量 LOOP 大写 一般结构 LOOP variableloops loop后面的变量初值为0 每执行一次加1 pieceofscenariofile ENDLOOP IFStatements 一般结构 IFvalue pieceofscenariofile ENDIF 六 Presentationtiming 二种主要的时间不确定性来源 Interruptionsfromtheoperatingsystemordevicedrivers thisaffectsalleventsPresentationisbusypreparingstimuli thisaffectsresponseeventsandexternaltriggerpulsemonitoring Reportwindow Trial scenario中的trial依次有一个顺序EventType 事件是图片 声音或反应 Code 对于反应可以用button codes和target button codes头参数 对于刺激 可以定义event code Time Presentation的绝对时间 即相对于scenario开始的事件发生时间 Ttime trialtime 除了在相对于事件所在的trial开始的测量外 它与Time相同 Uncertainty Time t dtDuration 图形刺激的持续时间 不监控声音的 Uncertainty Duration 对于图形刺激持续时间的不确性ReqTime 在scenario文件中presentation要求的的呈现时间ReqDur 在scenario文件中Presentation要求的的持续时间 文件中几个时间参数 Time 1000msDeltat time 1000ms在一个给定的trialtime呈现刺激 忽略先前的刺激 可以保证不受复合显视器扫描的影响 Deltat 1000ms指先前的刺激发生的实际时间后的1000ms出现 即使刺激分别呈现 也会出现复合刺激的延迟 对于保持某些图形的正确持续时间很有必要 七 PCL文件 PCL是一种编译的程序设计语言 用来编程和发展Presentation实验 对一个scenario文件做基于反应的详细控制 常使用PCL文件 PCL是一个在单独文件中写出的程序 但它可以利用scenario文件 对于non PCL的scenario 当执行时按照其中trial的顺序依次执行 在一个基于PCL的scenario中 通过设置头参数 pcl file 来定义 如何写PCL文件 ArrayStatements IfStatementsLoopStatements Array 形式 array name integer literal examplearraymy pictures 5 arraymy ints 10 3

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论