
View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by DigitalCommons@University of Nebraska University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln Faculty Publications, Department of Psychology Psychology, Department of 1982 Some simple Apple II software for the collection and analysis of observational data John H. Flowers University of Nebraska-Lincoln, [email protected] Follow this and additional works at: https://digitalcommons.unl.edu/psychfacpub Part of the Psychiatry and Psychology Commons Flowers, John H., "Some simple Apple II software for the collection and analysis of observational data" (1982). Faculty Publications, Department of Psychology. 460. https://digitalcommons.unl.edu/psychfacpub/460 This Article is brought to you for free and open access by the Psychology, Department of at DigitalCommons@University of Nebraska - Lincoln. It has been accepted for inclusion in Faculty Publications, Department of Psychology by an authorized administrator of DigitalCommons@University of Nebraska - Lincoln. Copyright © 1982 The Psychonomic Society. Used by permission. Behavior Research Methods & Instrumentation 1982, Vol. 14 {2), 241-249 Some simple Apple II software for the collection and analysis of observational data JOHN H. FLOWERS University of Nebraska, Lincoln, Nebraska 68588 Two general-purpose software packages for collecting and analyzing observational data from a variety of settings are discussed. One package is designed for coding mutually exclusive behavioral states using the Apple’s keyboard as an input device. The other is designed to monitor temporally overlapping behaviors, and it makes use of the Apple II’s built-in game- control button inputs to indicate up to three behavioral states that may occur simultaneously. Personal computers can be programmed to provide subject under observation is engaged in a behavior other quite elaborate but highly efficient behavioral recording than one of interest. The second (and slightly more com- and analysis routines for dedicated research projects plex) package is designed to allow the investigator to (Bemstein & Livingston, 1982; Hargrove & Martin, monitor up to three betmvioral states, which may 1982). Such specialized programs are highly useful in occur jointly. These temporally overlapping behaviors research projects for which the investigator intends to may coexist within a single subject (e.g., a subject may collect large amounts of data over a long period of time. be simultaneously talking to and holding eye contact In contrast, the two categories of programs described in with another person). Alternatively, these behaviors this paper were designed to fit a wide variety of labora- may occur jointly among up to three different individual tory settings instead of a single dedicated application. subjects in a single setting (e.g., three ground squirrels The primary intended use of the software was for under- each giving alarm calls in response to a predator). A third graduate laboratory courses in experimental design, application might involve the observation of the same animal behavior, and developmental psychology, behavior within the same subject by up to three indepen- although several of these routines have been adapted dent judges. The last application can be useful for teach- for advanced research. Because of the need to collect ing students the principles of interjudge reliability and data in very diverse settings (ranging from observation of demonstrating that certain categories of behavior can be rats dividing their time between the activities of eating, more reliably assessed than others. The data acquisition drinking, and grooming to assessing the interdependence routines for both the mutually exclusive and temporally of eye contact and vocalization in a social distance overlapping situations were written in APPLESOFT experiment), these programs have been purposefully BASIC, with machine code routines for accomplishing kept extremely simple. Thus, they essentially represent the timing functions and initializing the programmable "bare-bones" illustrations of using a small computer for timers used to establish the time base. Before describing behavioral observation, and they demonstrate program- each routine in more detail, two design principles com- ming principles that can be implemented in more elabo- mon to the program should be mentioned. rate or specialized routines. Separation of Data Acquisition from Overlapping vs. Nonoverlapping Behaviors Data Analysis and Summary Two different sets of programs will be described; each For both software packages, the programs for data set includes both a main data acquisition program and a acquisition were kept separate from programs used in sample summary and analysis routine. The two sets of data analysis and summary. This principle was followed programs are each designed for use in slightly different not only for maintaining program simplicity, but also research settings. The first (and simplest) of these pack- because widely different types of analysis may be ages is designed to study the onsets, offsets, and transi- called for in different research applications. By providing tions among several mutually exclusive (temporally a highly general data acquisition program that formats nonoverlapping) behavioral states. These states may data on disks in a straightforward and well documented include a "null" state, representing times when the manner, individual users are free to create their own experimental analysis and summary routines. While some research applications may require examination of This work was supported in part by National Science sequential dependencies between different behaviors, for Foundation Grant SER 80-15123 to the author. example, many applications may require little more than Copyright 1982 Psychonomic Society, Inc. 241 0005-7878/82]020240-09501.15[0 2.42 FLOWERS a printout of the onset time and duration of each bout through execution of the clear interrupt (CLI) com- of behavior. Particularly in teaching applications, in mand. Within the same section of code containing the which it is often appropriate for students to proceed on initialization procedures, it is necessary to provide a their own through the steps involved in computing "stop" routine, which terminates the process of inter- descriptive statistics and constructing frequency distribu- rupt generation, effectively stopping the "clock." This tions, one may wish to have very little "preprocessing" consists of a command to the timer that stops its inter- of the raw data other than to present it in a highly rupt generation, plus a command to the computer (a set readable form. An additional reason for separating the interrupt, SEI) that stops the computer from accepting functions of data acquisition from those of data sum- further interrupts. The stop routine is called from the mary and analysis is that, for some applications, one main program at the termination of the observation may wish to move the computer (which is highly porta- session. ble) to the research site for data acquisition. With the The second type of routine necessary for imple- present routines, all that need be transported are the menting interrupt-driven timing is the interrupt handler computer, a video monitor, and a single disk drive; itself. The interrupt handler is a special type of sub- printers (which are often bulky, heavy, and delicate) routine that is entered atttomatically every time an can be left behind for use at a later time. interrupt is generated. For behavioral timing, the sim- plest form of interrupt handler is one that simply Interrupt-Based Timing increments the pair of memory locations constituting Both categories of observation programs make use of the elapsed time clock and then returns control to the computer interrupts generated by a programmable timer main program. Although a small amount of assembly located in the Apple’s backplane slots. The program for language programming is necessary to implement an monitoring temporally overlapping behaviors comes in interrupt-driven timing system, there are some advan- two versions; one is designed to use the Mountain tages to such an approach. Since upcounting the clock Computer Apple clock, and another is designed to use occurs automatically, the higher level language program the California Computer System (CCS) Model 7440 pro- need not bother with special clock reading routines grammable timer. Both sets of programs can be adapted other than a simple pair o:~ peeks to a pair of memory for use with other products by slight modification in locations. The remainder of the main program can be the software. constructed as a loop that continuously updates infor- As opposed to timing routines that read a free- mation for the experimental observer and looks for running real-time clock (a procedure followed in the special conditions, such as keypresses, and so on, that software described by Bernstein & Livingston, 1982, and indicate changes in behavioral states or commands to big Hargrove & Martin, 1982), the interrupt timing terminate the session. Programming in the high-level system uses a pair of memory locations in the computer language thus becomes simpler in structure than would to keep track of elapsed time. This pair of memory be the case ira set of complex commands to a peripheral locations is incremented upon each interrupt. In order to device, such as a real-time clock, had to be programmed make use of interrupts for timing purposes,
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages10 Page
-
File Size-