How to calibrate with an oscilloscope?

Similar documents
PicoScope 6407 Digitizer

Lab experience 1: Introduction to LabView

Stimulus System of Shielded Room (DC)

Lab 1 Introduction to the Software Development Environment and Signal Sampling

PicoScope 6407 Digitizer

Features of the 745T-20C: Applications of the 745T-20C: Model 745T-20C 20 Channel Digital Delay Generator

TV Synchronism Generation with PIC Microcontroller

MIE 402: WORKSHOP ON DATA ACQUISITION AND SIGNAL PROCESSING Spring 2003

Revision History. SDG2000X Firmware Revision History and Update Instructions

SigPlay User s Guide

VLSI Design: 3) Explain the various MOSFET Capacitances & their significance. 4) Draw a CMOS Inverter. Explain its transfer characteristics

Application Note AN-708 Vibration Measurements with the Vibration Synchronization Module

Design Issues Smart Camera to Measure Coil Diameter

The high-end network analyzers from Rohde & Schwarz now include an option for pulse profile measurements plus, the new R&S ZVA 40 covers the

GFT Channel Digital Delay Generator

DPD80 Visible Datasheet

Burlington County College INSTRUCTION GUIDE. for the. Hewlett Packard. FUNCTION GENERATOR Model #33120A. and. Tektronix

DPD80 Infrared Datasheet

Experiments on tone adjustments

MSO-28 Oscilloscope, Logic Analyzer, Spectrum Analyzer

What to look for when choosing an oscilloscope

Working with a Tektronix TDS 3012B Oscilloscope EE 310: ELECTRONIC CIRCUIT DESIGN I

Broadcast Television Measurements

Oculomatic Pro. Setup and User Guide. 4/19/ rev

E X P E R I M E N T 1

What is the history and background of the auto cal feature?

Pre-Processing of ERP Data. Peter J. Molfese, Ph.D. Yale University

Boosting Performance Oscilloscope Versatility, Scalability

Spectrum Analyser Basics

2 MHz Lock-In Amplifier

Stimulus presentation using Matlab and Visage

Multiband Noise Reduction Component for PurePath Studio Portable Audio Devices

ISCEV SINGLE CHANNEL ERG PROTOCOL DESIGN

EAN-Performance and Latency

DT9834 Series High-Performance Multifunction USB Data Acquisition Modules

ERP recording with stimulus delivery and experimental control (SDEC) software

Experiment P32: Sound Waves (Sound Sensor)

Brain-Computer Interface (BCI)

PRELIMINARY INFORMATION. Professional Signal Generation and Monitoring Options for RIFEforLIFE Research Equipment

BTV Tuesday 21 November 2006

MP212 Principles of Audio Technology II

OSCILLOSCOPE AND DIGITAL MULTIMETER

Manual Supplement. This supplement contains information necessary to ensure the accuracy of the above manual.

Electrical and Electronic Laboratory Faculty of Engineering Chulalongkorn University. Cathode-Ray Oscilloscope (CRO)

Solid State Logic S O U N D V I S I O N

Agilent DSO5014A Oscilloscope Tutorial

PRODUCT SHEET

What is sync? Why is sync important? How can sync signals be compromised within an A/V system?... 3

MTL Software. Overview

Semi-automated extraction of expressive performance information from acoustic recordings of piano music. Andrew Earis

S I N E V I B E S ROBOTIZER RHYTHMIC AUDIO GRANULATOR

ADS1000C, CAL / CML Series

Meeting Embedded Design Challenges with Mixed Signal Oscilloscopes

Agilent E5500 Series Phase Noise Measurement Solutions Product Overview

Oscilloscope Guide Tektronix TDS3034B & TDS3052B

Analog Arts SA985 SA975 SA935 SA915 Product Specifications [1]

Digital Lock-In Amplifiers SR850 DSP lock-in amplifier with graphical display

CHAPTER 3 OSCILLOSCOPES AND SIGNAL GENERATOR

USING MATLAB CODE FOR RADAR SIGNAL PROCESSING. EEC 134B Winter 2016 Amanda Williams Team Hertz

Troubleshooting EMI in Embedded Designs White Paper

ECE 5765 Modern Communication Fall 2005, UMD Experiment 10: PRBS Messages, Eye Patterns & Noise Simulation using PRBS

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science SOLUTIONS

NOTICE. The information contained in this document is subject to change without notice.

BPA Laboratory manual Neil Cronin

Application Note #63 Field Analyzers in EMC Radiated Immunity Testing

Torsional vibration analysis in ArtemiS SUITE 1

Time-stamping computer events to report.1-msec accuracy of events in the Micro Experimental Laboratory

Supplemental Material for Gamma-band Synchronization in the Macaque Hippocampus and Memory Formation

Using the new psychoacoustic tonality analyses Tonality (Hearing Model) 1

ECE 2274 Pre-Lab for Experiment Timer Chip

User Guide. PlexBright LD-1 Single Channel LED Driver. Part of the PlexBright Optogenetic Stimulation System

HBI Database. Version 2 (User Manual)

CARLETON UNIVERSITY. Facts without theory is trivia. Theory without facts is bull 2607-LRB

Wideband Downconverters With Signatec 14-Bit Digitizers

Temporal summation of loudness as a function of frequency and temporal pattern

STIMULUS CONTROLLER, Type CS-55 INSTRUCTIONS

Choosing an Oscilloscope

LaserPXIe Series. Tunable Laser Source PRELIMINARY SPEC SHEET

Research-Grade Research-Grade. Capture

Gordian. Multifunctional Power Distributor / Conditioner. v1.3

Fluke 190-Series II Firmware Upgrade V11.44

Building Video and Audio Test Systems. NI Technical Symposium 2008

Advanced Test Equipment Rentals ATEC (2832)

INSTRUCTION GUIDE. for the. Keysight (formally Agilent; Hewlett-Packard) Model #33509B. and. Tektronix. Fall 2017

specification hyperion colorimeter

4 MHz Lock-In Amplifier

specification hyperion colorimeter

Experiment # 4 Counters and Logic Analyzer

Dual Slope ADC Design from Power, Speed and Area Perspectives

Benefits of the R&S RTO Oscilloscope's Digital Trigger. <Application Note> Products: R&S RTO Digital Oscilloscope

456 SOLID STATE ANALOGUE TAPE + A80 RECORDER MODELS

PicoScope 4000 Automotive PC Oscilloscopes

SV1C Personalized SerDes Tester

NAPIER. University School of Engineering. Advanced Communication Systems Module: SE Television Broadcast Signal.

The Measurement Tools and What They Do

Dish Diversity Switch

843-R 843-R LASER POWER METER USER MANUAL. NEWPORT CORPORATION

THE BERGEN EEG-fMRI TOOLBOX. Gradient fmri Artifatcs Remover Plugin for EEGLAB 1- INTRODUCTION

Using the HDCV Data Acquisition Program

ATS MS/s 8-Bit PCI Digitizer

Transcription:

How to calibrate with an oscilloscope? 1. connect the one channel of the oscilloscope to the aux output of the computer (of course the one you will use for the experiment) 2. connect and plug the photodiode to another channel. Place the photodiode (a little white device on the screen where the visual stimulus will appear. Hold it in position (you can stick it or just press it). Make sure the receptor (a little glass hole) is centered on the target. 3. calibrate the oscilloscope: a. set the optimal noise-to-signal threshold so that only the target stimulus will trigger the recording b. select which channel is the trigger. For example, if you set the audio channel as trigger the recording will start only if the audio stimulus breaks the audio threshold, no matter what happens in the video channel. 4. start the recording (single sequence for one event only, continuous run for many events) 5. run the stimuli How to read the results The oscilloscope will record the event or events starting from the trigger, displayed as two colored waveforms on screen. You can now choose the time resolution at which the waves are displayed, and you can move horizontally along the recording. You can also move separately the different waves on screen (up-down). You will have a clear, graphic representation of the time order of the events: onset and offset of each one, together with their intensity. If you want to enhance a weak signal you can amplify it from its channel control panel.

Time precision in Psychopy By its default setting Psychopy has highly precise visual output and terrible audio output. This is well known and people discuss it on forums. "Terrible" means that audio latency wanders between 150-250 ms and duration of stimulation can vary up to more/less 100 ms than what you wrote on the script. Here some tips to achieve a reasonable precision in audio output. Choose the right library By now (version 1.82.01) Psychopy has two audio libraries: Pygame and Pyo. By no means Pyo is more accurate, but Pygame is set as default. To set Pyo as default go on Settings>audio library and invert the order of the libraries, from: [u'pygame', u'pyo'] to: [u'pyo', u'pygame'] This will solve half of your problems, bringing the differential audio/video latency to a consistent (more/less 10ms) 40 ms. Same for duration accuracy. The other half comes from the fact that Pyo is still a bugged library which gives a lot of compatibility problems. For what I've seen so far, when running an experiment with Pyo the "Esc" command to stop the experiment may not work. Instead, the program would get stuck and you will have to shut it down from the Task Manager (Ctrl+Alt+Canc). Otherwise, it may close and send you an error message. There might be a solution to this bug and I'm looking for it in the forums. Choose the right audio driver Again, the default setting is PrimarySounds. You'd better change it to ASIO, which is supposed to be more precise. The ASIO4all driver, if compatible with our audio card, is supposed to be the best and we might consider installing it. As compared to the other possible drivers (PrimarySounds and Audigy), ASIO combined with Pyo is not more precise but more reliable, which is very important cause it gives you a known latency that you can correct.

Set times in frames Frames are more accurate than seconds, which are always a rounding. So go over your script and GUI and set times, where possible, in frames (mind frame rate!!). So, for example, at 144Hz refresh you re your times will be: 1s = 144 frames -40 ms = -5 frames (audio latency) 200 ms = 29 frames 700 ms = 101 frames Although the best strategy would be to ask Psychopy to calculate the equivalent time in frames from time in seconds by taking a sample of frame rate every routine (frame rate is slightly oscillating) this may overload the system and generate an even bigger latency! So it's better to set the times directly in frames. You will see that in the GUI (builder view) the audio duration cannot be set in frames, so you have to keep it in seconds: you can only set onset time in frames. Also, temporal properties of visual stimuli, as measured with the oscilloscope, are highly accurate both in frames and in seconds so all this is crucial for audio only. Play audio files, don t produce them! Another useful trick is to produce (matlab, python, ) a.wav file with the audio you want to play and the duration it must be, rather than defining it in psychopy: producing and stopping it is more energy (and time!) consuming than simply playing a recorded file from beginning to end. Our test session showed perfect duration accuracy for.wav files, as opposed to the +- 15 ms of produced waveforms. So what's the best performance Psychopy can give you? With the tricks I've discovered so far I achieved a consistent latency of 40ms (+- 15ms) with less than one frame variance (around 6 ms), which can be efficiently corrected on the code, and a perfect duration accuracy on.wav files, as measured both on my experiment which includes time variable and on a test experiment (much simpler with fixed numerical times). So, you will achieve an inaccuracy of maximu more/less 15 ms for the temporal properties of your audio stimuli.

Mind the machine! All the above is true for our machine (Display1). A test session at Ahissar's lab, for example, showed that Pyo there doesn't always run, or if it runs it is with Audigy driver only and with 500ms latency!!