Real-time data collection in Linux: a case study.
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.
Finney
S A
SA
Department of Psychology, Ohio State University, 142 Townshend Hall, 1885 Neil Ave., Columbus, OH 43210, USA. sf@dactyl.som.ohio-state.edu
D003625:Data Collection; D006801:Humans; D012984:Software