Hi! If you have any troubles you can contact me at: imandie@bu.edu. This program assumes that all data has been sampled at 100Hz. I am presently working on a new version that can handle different sampling frequencies. This program runs in matlab and has been used both in windows and in unix. It was created in version 4.1 but has been running great in the new 5.1 version. A few warning messages have been noticed, however, they can just be ignored. In addition to the basic matlab software, this program also requires the signals toolbox to run. The name of the program is "cop". I have also included seven other ".m" files that I wrote that are utilized in the cop program. Make sure the following eight files are all in the same directory: cop.m findtime.m plotmult.m cpdf.m sparam.m plotraw.m datcp.m plotgr.m To run the program, simply change directories at the matlab prompt to the directory where all of the files are saved. Note, the data need not be saved in the same directory as the programs. Then, type "cop" at the next prompt and a new figure window will pop up. If the colors are obnoxious, just let me know and I can tell you how to fix them. I have noticed that different screens cause the colors to have slightly different shades that may become annoying after a while. You will notice some pull down menus at the top of the figure and a rectangular box in the top left corner of the figure. Click on the spaces in the "input options" box and enter the specified file directories with a slash at the end and the names of the data files without the extensions. Be sure to press return after you are finished filling the data for each category or the program will not register a new change in input. Note: the raw data files must be saved with a ".cp" extension. Next, go through the two pull down menus on the right and check the options that you want the computer to perform. After everything is set, go up to the "Analyze" pulldown menu and click on the "cp->df" button to convert the ".cp" raw data files to a ".df" stabilogram diffusion file. We usually take 10 trials (ie 10 ".cp" files) to produce 1 stabilogram diffusion plot. That is, 10 ".cp" files yield 1 ".df" file. However, this program is flexible and can handle a different number of data files so be sure you specify the number of trials in the rectangular box. This program also produces a ".dfp" file, the p of which stands for parameters. This ".dfp" file is saved as follows: X critical point lag time The value at this lag time The slope/2 for the short term linear X The slope/2 for the long term linear X The slope/2 for the short term log X The slope/2 for the long term log X This pattern repeats for the Y values and finally for the R values where each parameter is on a separate line. (total of 18 parameters)! It is assumed that the ".cp" files contain two colums of data, one of the X (mediolateral) coordinates and one of the Y (anterioposterior) coordinates. The ".df" files are saved in the same format. However, ther are only 1002 points in the files corresponding to the first 10 seconds of time lag of the stabilogram diffusion plot. Since the data was sampled at 100Hz, each data point in the file is assumed to be .01 sec after the one before. For 30 seconds of data collection, 3000 data points will be collected, and for 60 seconds of data collection, 6000 data points will be collected. Be sure you specify whether you have 60 seconds or 30 seconds of data unser the "options" pulldown menu. If by chance you have data files that have ".dat" extensions and are filled with numbers from an A/D board in units of mV then you can convert the numbers to units of mm and therefore ".cp" files by using the "dat->cp" ore "dat->df" buttons under the analyze pulldown menu. If you want to view just the raw ".cp" data files, specify the correct information in the "input options" box and then go up to the "graphics" pulldown menu and click on the "plot raw cp data" button and each trial will be plotted in a separate window. If you want to view the ".df" files at a later time, you can specify all of the information in the "input options" box and then click on the "plot multiple df files" button under the "graphics" pulldown menu. It is assumed that the files in the "input options" box have the ".df" extensions. These files will not be plotted with the regression lines. If the "show parameters" box is checked under the "random options" pulldown menu, the critical point, scaling exponents, and diffusion coefficients will be printed in the command window of matlab. If you have any other questions, please do not hesitate to contact me. Later Andrea Stamp