Control of (some) External Devices using MatLab/Cogent Steffan Kennett,

Slides:



Advertisements
Similar presentations
ICN Matlab for Cognitive Neuroscience 2009 /10 – Matlab: Cogent & External devices Matlab: Cogent & External Devices Friederike Schüür 18th March 2010.
Advertisements

Combinational Circuits CS370 – Spring BCD to 7 Segment Display Controller Understanding the problem: input is a 4 bit bcd digit output is the control.
Lab7: Introduction to Arduino
HAI Lighting Control Options UPB Technology Presentation Advance Information January, 2004.
Tool removed during cycle Fault #2 Conditions for setting Tool cocked prox switch goes open during cycle AND force on load cell drops below limit in fault.
MEG Experiments Stimulation and Recording Setup Educational Seminar Institute for Biomagnetism and Biosignalanalysis February 8th, 2005.
HOW WELL DO YOU KNOW THE BASICS OF USING YOUR COMPUTER?
Electrical and Computer Engineering iLights Nick Wittemen, EE Chris Merola, EE José Figueroa, EE Matt Ryder, EE Midway Design Review.
GCSE Computing - The CPU
DataLogger Operation - 1 DataLogger ® Operation Procedures.
Computer Networks IGCSE ICT Section 4.
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
Copyright CCNA 1 Chapter 1 Introduction to Networking By Your Name.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 22 All About SCSI.
Lesson 3 — How a Computer Processes Data
There are different types of translator. An Interpreter Interpreters translate one instruction at a time from a high level language into machine code every.
Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall1.
LAB 1 MATLAB, dSPACE and Simulink
High Speed Data Converter University
Move Pictures From Your Mobile Phone to Your PC.  You never know when a photo opportunity is going to arise, which is why having a camera phone can be.
Eye Tracking and its Application in MRI and EEG Settings
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
O FFICE T ECHNOLOGY Friday, February 1, R EVIEW OF LAST WEEK Hardware v. Software Hardware names and functions Different kinds of computers Created.
Stuff By Zach and Turtle To designate a default printer, choose Start > Control Panel > Printers and Faxes. Right-click the printer, and then.
Effective Programming Tips for Cogent Session 10, Christian Kaul MATLAB for Cognitive Neuroscience.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Eye Tracking and its Application in MRI and EEG Settings
Digital Temperature Gauge Project Proposal ECE 4330 Patricia Kaminski System Overview Hardware Design Software Design Testing Extended Design.
Experimental control in COGENT/MATLAB Christian Ruff.
Computer Hardware. The Desk Top Computer A PC is a general-purpose information processing device. It can take data from a person (through the keyboard.
CMSC Machine Architecture and Number Systems Topics Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number.
GazeEEGLabImporter Date: 12/12/2013 Version: 1.0 Produced by: Anton Andreev, Gipsa-lab/CNRS Contact:
1 Chapter Overview Modems The Internet and Web Browsers.
Teaching Digital Logic courses with Altera Technology
ENG College of Engineering Engineering Education Innovation Center 1 Functions 1 in MATLAB Topics Covered: 1.Uses of Functions Organizational Tool.
The Online World DATA EXCHANGE 2. Introduction Devices on a network use a variety of methods to communicate with each other and to transmit data. This.
Multi Channel Music Recognition for an Electric Guitar.
Computers Are Your Future Tenth Edition Inside the System Unit 1.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
Computer Networks.  Which is the best definition of a circuit switched network?  An electric circuit where the connections get switched based on who.
PCs ENVIRONMENT and PERIPHERALS Lecture 1. Software The series of instructions that tells the hardware how to perform tasks Software The series of instructions.
Computer Basics Just How Does a Computer Work?
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
Experimenters University of Glasgow.  Importance  Contribution  Envisaged publication:
Best Practice T-Scan5 Version T-Scan 5 vs. TS50-A PropertiesTS50-AT-Scan 5 Range51 – 119mm (stand- off 80mm / total 68mm) 94 – 194mm (stand-off.
After Construction Name: Per #:.
Computer Basics.
Computer Architecture and Number Systems
GCSE Computing - The CPU
Chapter 15 Recording and Editing Sound
Lesson 4 Alternative Methods Of Input.
Computers Are Your Future Tenth Edition
DE2-115 Control Panel - Part I
GPRS Troubleshooting.
Instructor Materials Chapter 1 Ever Wonder How It Works?
Computing Basics Honolulu Community College
The next generation of collaboration
Introduction To Computers
ECE265 ECE 265 Final Exam Review 9/14/2018.
Lesson 4 Alternative Methods Of Input.
Computers: Hardware and Software
MATLAB – Basic For Loops
Machine Architecture and Number Systems
Chapter 1 Introduction to Networking
GCSE Computing - The CPU
1.2.1 Data transmission.
Presentation transcript:

Control of (some) External Devices using MatLab/Cogent Steffan Kennett,

Topics covered Vocal Reaction Time (see voiceRT.m): Acquiring data Calculating reaction time Calibration Parallel Ports (see Stimuluscheck.m): Set-up procedure Implementation in code Problems (addresses, timing) Eye-tracking (see Eyetracker_demo.m): Acquiring data. Meaning from data (calibration)

Parallel Ports Installation: Excellent documentation at point 3.12 of cogmanv125.pdf Extract UserPort.zip follow instructions. Use function “outportb(port_address,value)”. See Stimuluscheck.m Digital Signal Up to 8 lines independently controlled Use signal to switch on stimuli (lights, taps, TMS etc.) –This requires some form of switch box to transfer signal and power to the external stimuli (e.g., LEDs or tappers) Use signal to trigger EEG, fMRI, TMS. –Requires the parallel port cable is appropriately wired for your specific device

Parallel Ports Address: usually 888, could be 632, 956. Refers to specific parallel port. Value: any integer from 1 to 255 Value is actually the decimal version of an 8-bit binary number ( = 255). LineBinary valueDecimal value Lines 3 and 5 would be value = = 20

Eye-tracking Calibration tip: Once you’ve set-up the eye-tracker you will have to carry out the tracker- software’s own calibration procedure. Even having done this, start each experiment, or better, each block of trials with a mini-calibration of your own. Use jumping crosses of known visual angle (see. Choose these visual angles to be relevent to your experiment (e.g., close to fixation point if you do not want saccades in your experiment). See jumping_cross.m. Cogent only supports the ASL 5-series (e.g., ASL 5000), which is the eye-tracker currently installed in the MRI scanners at 12, Queen Square. Good documentation is in G2UsrManv124.pdf. See pages D10, E5, F21 and section I. See also sample m-file Tracker.m (Samples folder) and Eyetracker_demo.m (Matlab course download)

Vocal Reaction Time Uses built-in microphone or one plugged into the sound card of your PC. Employs “config_sound” prior to “start_cogent” Commands used (input/output variables in italics): – preparerecording(duration_in_ms) – recordsound – waitrecord – sound_vector = getrecording See voiceRT.m for a fully commented, working script – RT is calculated by measuring the first sample which exceeds a threshold level (user sets this) and working out the time since the stimulus was presented.