Pre-workshop session Poitiers, july 1 st 2015 Pre-workshop session Poitiers, july 1 st 2015.

Slides:



Advertisements
Similar presentations
Getting Started with PowerPoint
Advertisements

Create a Simple Game in Scratch
Prof. Yitzchak Rosenthal
Eye and Pen currently support: EyelinkII, Eyelink 1000 (S.R. research, Ltd.) i-ViewX HED (SensoMotoric Instruments GmbH, S.M.I.) ASL 504 (Applied Science.
More script commands (3) [Eye and Pen v2] 10. Looping 11. List LoopIfLabelIsBelow LoadList RandomizeList RandomizeListRange ResetList 12. keywords %L%
3. Playing a stimulus 4. Waiting for an event2. Start / stop recording DisplayPic / HidePicture PlaySound / StopSound DisplayMsg / HideMessage WaitForKeyPress.
Create a Simple Game in Scratch
Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
Congratulations! You have just installed the Presentation Game Add-In.
A script: what’s that thing ? A sort of language to tell Eye and Pen what he has to do, like a recipe: now do this, then do that, etc.  It allows to use.
Script commands (2) SetPencolor SaveScreenToBmp [ V2 ] 6. Eyetracker control TestDrift 7. Jump Label JumpTo JumpToIfLabelIs 9. keywords %I% %S% [ V2 ]
Automate tasks: EPKeys April 2012, Mshs, University of Poitiers, France EPKeys is a keyboard key presses simulator designed to have Eye and Pen repeat.
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
EXCEL Spreadsheet Basics
Microsoft Word 2003 Tutorial 2 – Editing and Formatting a Document.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
How to Debug VB .NET Code.
XP New Perspectives on Microsoft Office Word 2003 Tutorial 1 1 Microsoft Office Word 2003 Tutorial 1 – Creating a Document.
1 Using Editors Editors let you create and edit ASCII files UNIX normally includes two editors: vi and Emacs Vi and Emacs are screen editors: they display.
XP 1 Microsoft Office Word 2003 Tutorial 1 – Creating a Document.
1 Computing for Todays Lecture 4 Yumei Huo Fall 2006.
Pre-workshop session Poitiers, july 1 st 2015 Pre-workshop session Poitiers, july 1 st 2015.
1. Menu File | Acquisition | Simple 2. Type in a name for the participant 3. Click on the ”Go” button to start recording Ticking this box will prevent.
Pre-workshop session Poitiers, july 1 st 2015 Pre-workshop session Poitiers, july 1 st 2015.
Frame origin: coordinates 0, 0 How a tablet works April 2012, Mshs, University of Poitiers, France.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
NetSync: script-based acquistion managed in a network environment NetSync was devised to solve a simple problem: how to manage an experiment with two or.
Microsoft Office Illustrated Fundamentals Unit B: Understanding File Management.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Microsoft Office Word 2003 Tutorial 1 Creating a Document.
CIS—100 Chapter 9—PowerPoint 1. The PowerPoint User Interface 2 There is a tall band across the screen that contains many, very visual commands arranged.
Key Applications Module Lesson 16 — Excel Essentials Computer Literacy BASICS.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
XP New Perspectives on Microsoft Word 2002 Tutorial 21 Microsoft Word 2002 Tutorial 2 – Editing and Formatting a Document.
Word Processing Understanding Microsoft Word 10. Benefits of a Word Processor Word Processing Is the use of a computer and software to produce written.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
Productivity Programs Common Features and Commands.
1. Chapter 4 Customizing Paragraphs 3 More Paragraph Changes Highlight a paragraph in Word by applying borders and shading. Sort paragraphs to control.
© 2010 South-Western / Cengage Learning Century 21 Keyboarding  Cycle 1  Office Features 1.
Get up to speed Get to know the Ribbon When you first open Word 2007, you may be surprised by its new look. Most of the changes are in the Ribbon, the.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
Basic Computer and Word Functions, part 1 Read the information and use to answer the questions in the Basic Computer and Word Functions Study Guide.
A skills approach © 2012 The McGraw-Hill Companies, Inc. All rights reserved. powerpoint 2010 Chapter 4 Managing and Delivering Presentations.
Chapter Three The UNIX Editors.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
PowerPoint Practice Exercise 1.Save this file on your computer. 2.Open this file in PowerPoint 3.Edit each slide according to the instructions provided.
 Given live by a presenter  Played without a presenter on a computer screen or on the Web  Slides provide a way to use text and graphics to introduce.
Learning PowerPoint Presenting your ideas as a slide show… …on the computer!
Foundation year Practical Lec.5: Practical Lec.5: Presentation Software Using Microsoft Office 2007 Practical Lec.5: Practical Lec.5: Presentation Software.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Computer Programming Modeling a Passive Solar Home.
Subtractive Manufacturing Exercise #1 Step #2 Key Fob Project Using Velocity CNC Software for the CNC Milling Machine Note: In order to use this set of.
In a number of script commands, you will have to mention filenames (pictures, etc.). For a picture, Eye and Pen will search in the “stimuli” folder. This.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
To gain an overview of the session, the session log file (.LOG) contains the time when each event occurs. The session has its own timer, where “hour zero"
1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College.
Script commands by category 1. Files and directories Start and stop data recording, set script default directories for pictures and data. A quick preview…
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
Key Applications Module Lesson 12 — Word Essentials Computer Literacy BASICS.
MS-EXCEL PART 2.
Create a Halloween Computer Game in Scratch
Scratch for Interactivity
PowerPoint Activity 5: To Be Determined…
Learning the Basics of Microsoft Word 2010 for Microsoft Windows
Microsoft Office Illustrated Fundamentals
Creating a Simple Game in Scratch
Presentation transcript:

Pre-workshop session Poitiers, july 1 st 2015 Pre-workshop session Poitiers, july 1 st 2015

2 July 1 st 2015 Mshs, University of Poitiers, France

3 A script uses a “language” to tell Eye and Pen what it has to do ImageList.txt contains Use Simple recording, with pictures taken from the randomized list If there is still an item to play with then “start” again July 1 st 2015 Mshs, University of Poitiers, France

The script interpretor isn’t “case sensitive”: upper- and lower-case letters are the same to it. When an acquisition is started, Eye and Pen’s script interpretor reads the script, line by line, and does what the command he reads tells him to do. During an acquisition:  Pressing the F12 key of the keyboard ends the script.  Pressing the ESC key of the keyboard ends the current task in script 4 A script: how does it work ? July 1 st 2015 Mshs, University of Poitiers, France

Script editor is an enhanced text editor performing syntax highlighting 5 Script Editor July 1 st 2015 Mshs, University of Poitiers, France

Classic edition menu: cut, paste, etc. 6 First view of the menus July 1 st 2015 Mshs, University of Poitiers, France

Script commands (sorted by category). For each command name, a dialog box helps to set options and insert the resulting command line into the script. 7 July 1 st 2015 Mshs, University of Poitiers, France

8 Dialog box for the selected command July 1 st 2015 Mshs, University of Poitiers, France

Script checking tools: - “Check syntax” performs an automatic syntax verification. - “Execution test” checks that all the elements involved in the script (syntax, stimuli files, etc.) are ready. Script checking tools: - “Check syntax” performs an automatic syntax verification. - “Execution test” checks that all the elements involved in the script (syntax, stimuli files, etc.) are ready. 9 July 1 st 2015 Mshs, University of Poitiers, France

Script help 10 July 1 st 2015 Mshs, University of Poitiers, France

In dark blue: a command In blue between brackets: a command’s options In green: a comment (ignored by script interpretor). Always begins with a semi-colon. In dark cyan: a label (a “flag” in script). Begins with “:” followed by a single word 11 A script is colored July 1 st 2015 Mshs, University of Poitiers, France

Openning an acquisition while another is already in progress will close the current one before opening the new one. Once recording is started, it is performed in parallel with script execution OpenRec (AddToParticipantName) Starts tablet (and optionally eye tracker) data recording. Recording will go on until a command explicitly stop it or script is over. Data will be recorded into files named from the participant’s Id. Replace optional parameters AddToParticipantName with something you want to add to the participant’s Id to name data files. 12 Start / stop recording July 1 st 2015 Mshs, University of Poitiers, France

The recording timer starts immediately when the command OpenRec is activated or when the “Simple” acquisition (RecStandard, etc.) is executed. Time Data files (Acquisition starts) “Go” “OpenRec” 0 0 “CloseRec” 7814 “CloseRec” 4898 Each new data file (i.e. recording) starts at time zero. 13 OpenRec / CloseRec and timing July 1 st 2015 Mshs, University of Poitiers, France

3.1. DisplayPic (PictureFileName,Duration,X,Y) Displays the picture PictureFileName on screen at location X,Y for Duration milliseconds. Example: DisplayPic(MyPicture.bmp,5000,0,0) Translation: the picture MyPicture.bmp is displayed on screen in the upper left hand corner of the screen (coordinates 0,0) for 5 seconds. Magic values  Duration : “-1” means “forever”  Screen coordinates: “-1” means “auto-center in screen” Magic values  Duration : “-1” means “forever”  Screen coordinates: “-1” means “auto-center in screen” 3.2. HidePicture Removes pictures previously displayed with DisplayPic. Screen background is restored. Example : DisplayPic(MyPicture.bmp,-1,-1,-1) Translation: the picture MyPicture.bmp is displayed centered on screen. Script execution will go on, leaving the picture on screen. 14 Playing a stimulus July 1 st 2015 Mshs, University of Poitiers, France

These commands do not pause an acquisition / recording but only the script interpretor. Some commands tells the script interpretor to pause (stop reading script ) until a certain event happens. These commands are mainly grouped into the “Wait” category WaitForkeypress Stops script execution until a key of the keyboard is pressed WaitForTabZoneAt (x1,y1,x2,y2,CanDraw,MustLeave) Pauses script until the pentip is pressed into the area located at tablet coordinates x1,y1,x2,y2. If option CanDraw is set to “TRUE”, the participant's writing is displayed on screen. If MustLeave is set to “TRUE”, the pentip must be removed from the area before the script can resume. 15 Waiting for an event (participant action) July 1 st 2015 Mshs, University of Poitiers, France

Simple is better: complex scripts are prone to errors. Dirty-and-effective: sometimes, a good old cut-and-paste of blocs of script is more effective and secure than spending hours building complex loops. Do not wait until the whole script is written to test it. Probing for errors will be easier. Carefully check what data will be recorded. For example, should time spend to watch a picture be included in pre-writing pause or not (it may also depend whether eye movements are recorded or not). This will determine where OpenRec command will be inserted in script. Display writing on screen is not always desirable. This is resources and time consuming for the computer and it may disturb participant. 16 A few advices July 1 st 2015 Mshs, University of Poitiers, France

17 Let’s read a true experiment script WaitForKeyPress ;-----Exp List in lowercase ResetList LoadList(list_1_low.txt) RandomizeList :ExpBlockLowcase DisplayPic(graybackgnd.bmp,-1,0,0) WaitFor(2000) TestDrift PlaySound(beep-8.wav,FALSE) DisplayPic(%L%.bmp,-1,0,0) OpenRec(_%L%_low) WaitForTabZoneAt(6570,1960,7200,3480,TRUE,TRUE) CloseRec LoopIfLabelIsBelow(ExpBlockLowcase,%M%,FALSE) July 1 st 2015 Mshs, University of Poitiers, France

18 Hands on 1.Execute script for multiple copies of a word 2.Have a look at recorded data (set a background picture for analysis) 3.Read the script to understand what it does July 1 st 2015 Mshs, University of Poitiers, France SetFont(MS Sans Serif,18,#000000,#000000) DisplayMsg(Welcome !,2000,-1,-1,TRUE) DisplayMsg(Wait...,-1,-1,-1,TRUE) WaitForKeypress HideMessage ResetList LoadList(wordslist.txt) :Start ; displays a ”star” and waits for the pen to be pressed in the left side area of the tablet DisplayPic(croix.jpg,-1,-1,-1) WaitForTabZoneAt(3000,5500,5810,26600,FALSE,FALSE) WaitFor(500) openrec(_%L%) ; displays the item until writing starts in the “handwriting area” DisplayPic(%L%.jpg,-1,-1,-1) WaitForTabZoneAt(5500,0,47700,31800,FALSE,FALSE) HidePicture ; Waits for pen press in the “end” zone WaitForTabZoneAt(47700,5500,50500,26600,FALSE,TRUE) closerec JumpToIfNumberIs(Stop,%M%,TRUE) JumpTo(Start,TRUE) :Stop HidePicture DisplayMsg(Thanks to you !,1000,-1,-1,TRUE)