本篇是基于安装了 1.11.5 版本 Development Kit 的用户,如果您安装的是 2.1.1 版本的 Development Kit ,请点击 »>传送门«<。您可以在 “开始菜单 - SR Research - SR Version” 中查看 eyelink_core.dll 的版本来确定您的 Development Kit 版本。

1. 讲解

这个脚本里面的内容其实很简单,实际的代码只有一行。

'执行相机校准
doCameraSetup 

实例文件中,这行代码的前面还有许多注释内容,翻译如下:

重要!

E-Prime中的显示器分辨率应当和实验的分辨率设置一致。如果您需要呈现图片文件,请将图片重新调整大小,与显示器分辨率尺寸一致。

在您的 E-Prime 程序中,您可以在下面的地方更改显示器分辨率:

“Edit -> Experiment->Devices->Display->Edit->Width and Height”

您可以通过下面的方法获取您显示器的实际分辨率:

“桌面 -> 右键 -> 显示设置 -> 分辨率”


2. 全部源代码

'Important! 

'The Windows screen resolution should be Set To the same As your actual experiment resolution. 
'If you need To present image files, please resize the images To match the experiment resolution.

'1. In your E-Prime project, the experiment resolution can be configured through 
'"Edit -> Experiment->Devices->Display->Edit->Width and Height" Of the display device.

'2. The screen resolution Of the monitor can be configured through 
'"Start -> Control Panel -> Display -> Settings" On Windows XP, 
'Or "Start -> Control Panel -> Appearance and Personalization -> Display -> Adjust screen resolution" 
'On Vista And Windows 7".

doCameraSetup ' perform camera setup

以上。