Real-time data collection in Linux: A case study

被引:31
作者
Finney, SA [1 ]
机构
[1] Ohio State Univ, Dept Psychol, Columbus, OH 43210 USA
来源
BEHAVIOR RESEARCH METHODS INSTRUMENTS & COMPUTERS | 2001年 / 33卷 / 02期
关键词
D O I
10.3758/BF03195362
中图分类号
B841 [心理学研究方法];
学科分类号
040201 ;
摘要
Multiuser UNIX-like operating systems such as Linux are often considered unsuitable for real-time data collection because of the potential for indeterminate timing latencies resulting from preemptive scheduling. In this paper, Linux is shown to be fully adequate for precisely controlled programming with millisecond resolution or better. The Linux system calls that subserve such timing control are described and tested and then utilized in a MIDI-based program for tapping and music performance experiments. The timing of this program, including data input and output, is shown to be accurate at the millisecond level. This demonstrates that Linux, with proper programming, is suitable for real-time experiment software. In addition, the detailed description and test of both the operating system facilities and the application program itself may serve as a model for publicly documenting programming methods and software performance on other operating systems.
引用
收藏
页码:167 / 173
页数:7
相关论文
共 19 条
[1]   Delayed auditory feedback in synchronization [J].
Aschersleben, G ;
Prinz, W .
JOURNAL OF MOTOR BEHAVIOR, 1997, 29 (01) :35-46
[2]   DEVELOPMENT AND EXPERIMENTATION WITH SYNTHETIC VISIBLE SPEECH [J].
COHEN, MM ;
MASSARO, DW .
BEHAVIOR RESEARCH METHODS INSTRUMENTS & COMPUTERS, 1994, 26 (02) :260-265
[3]  
Finney SA, 1997, MUSIC PERCEPT, V15, P153
[4]   FTAP: A Linux-based program for tapping and music experiments [J].
Finney, SA .
BEHAVIOR RESEARCH METHODS INSTRUMENTS & COMPUTERS, 2001, 33 (01) :65-72
[5]  
FINNEY SA, 1999, THESIS BROWN U
[6]  
FINNEY SA, 2000, DELAYED AUDITORY FEE
[7]   AUDITORY PERCEPTION OF TEMPORAL ORDER [J].
HIRSH, IJ .
JOURNAL OF THE ACOUSTICAL SOCIETY OF AMERICA, 1959, 31 (06) :759-767
[8]   Millisecond timing on PCs and Macs [J].
MacInnes, WJ ;
Taylor, TL .
BEHAVIOR RESEARCH METHODS INSTRUMENTS & COMPUTERS, 2001, 33 (02) :174-178
[9]   A REAL-TIME SATELLITE SYSTEM BASED ON UNIX [J].
MURREL, S ;
KOWALSKI, T .
BEHAVIOR RESEARCH METHODS & INSTRUMENTATION, 1980, 12 (02) :126-131
[10]   Timing accuracy of PC programs running under DOS and Windows [J].
Myors, B .
BEHAVIOR RESEARCH METHODS INSTRUMENTS & COMPUTERS, 1999, 31 (02) :322-328