Student Written Programs

Executable files for the PC

The programs atwood.pas and rotate.pas are two pascal programs that are used in our first year laboratory classes. They read the game port on PC's, and are used with photogates interfaced to the game port for the Atwood machine and rotational dynamics experiments. The data file cat.dat is the calibration file for atwood.pas, and crot.dat is the calibration file for rotate.pas. It is recommended that the Pascal programs be used to guide student programmers to write their own codes to interface with the game port, port[$201] on most PC's. The programs were written by Rich Aguaro (91) and Joe Kobayashi (99).

The programs listed below are executable files which will run on PC type computers. They run in DOS, but will also run in windows 95, 98, or NT when you double click on the .exe files. The windows environment recognizes that the .exe code runs in DOS and runs it in DOS. If you want to use the codes, it is recommended that you copy all the files into one directory on your hard disk. The programs that have graphics use the Borland egavga.bgi graphics driver, which must be in the same directory as the .exe file.

fitalle.pas
This program was written by students Byron Curry ('90) and Tsuyoshi Kawahito ('90). It performs Gaussian curve fitting for single and double peaks. It is designed to be used on the data from the mca's in the nuclear laboratory, and is written in pascal. To use the code, save the executable file fitalle.exe. This can be done by "left-clicking" on fitalle.exe and copy the file to your hard disk. Your browser will recognize that this is a binary file and save it properly. You will also need the graphics driver egavga.bgi. If you are using Internet Explorer, just "right-click" on egavga.bgi and copy the file to your hard disk. Internet Explorer will recognize the file to be binary and save it properly. If you are using Netscape, you need to "left-click" on egavga.exe and copy the file to your hard disk. Once you have copied the file to your hard disk you must rename it to egavga.bgi. Netscape recognizes only the .exe extention as a binary file. Once is it copied correctly to your hard disk, you must rename it to .bgi for fitalle.exe to recognize the driver. For a sample data file of Cs137, download the ascii file by "left-clicking" on cs137.dat and saving the file to your hard disk.

mcafit2.pas
This program assists in the calibration of the MCA, by letting the student try linear and quadratic interpolation schemes. The program is written in pascal. To use the code, save the executable mcacalg.exe. This can be done by "left-clicking" on mcafit2.exe and copy the file to your hard disk. Your browser will recognize that this is a binary file and save it properly. You will also need the graphics driver egavga.bgi. If you are using Internet Explorer, just "right-click" on egavga.bgi and copy the file to your hard disk. Internet Explorer will recognize the file to be binary and save it properly. If you are using Netscape, you need to "left-click" on egavga.exe and copy the file to your hard disk. Once you have copied the file to your hard disk you must rename it to egavga.bgi. Netscape recognizes only the .exe extention as a binary file. Once is it copied correctly to your hard disk, you must rename it to .bgi for mcafit2.exe to recognize the driver.

linefit.cpp
This program is a linear regression program, which allows up to 10 data points and two interpolation points. The code calculates the slope, intercepts and their uncertainties. The program is written in C++. To use the code, save the executable linefit.exe. This can be done by "left-clicking" on linefit.exe and copy the file to your hard disk. Your browser will recognize that this is a binary file and save it properly. You will also need the graphics driver egavga.bgi. If you are using Internet Explorer, just "right-click" on egavga.bgi and copy the file to your hard disk. Internet Explorer will recognize the file to be binary and save it properly. If you are using Netscape, you need to "left-click" on egavga.exe and copy the file to your hard disk. Once you have copied the file to your hard disk you must rename it to egavga.bgi. Netscape recognizes only the .exe extention as a binary file. Once is it copied correctly to your hard disk, you must rename it to .bgi for linefit.exe to recognize the driver.

soundexp.pas
This code allows the user to input sounds into the computer mic, and download the waveform for analysis. To use the code, save the executable soundexp.exe. This can be done by "left-clicking" on soundexp.exe and copy the file to your hard disk. Your browser will recognize that this is a binary file and save it properly. You will also need the graphics driver egavga.bgi. If you are using Internet Explorer, just "right-click" on egavga.bgi and copy the file to your hard disk. Internet Explorer will recognize the file to be binary and save it properly. If you are using Netscape, you need to "left-click" on egavga.exe and copy the file to your hard disk. Once you have copied the file to your hard disk you must rename it to egavga.bgi. Netscape recognizes only the .exe extention as a binary file. Once is it copied correctly to your hard disk, you must rename it to .bgi for soundexp.exe to recognize the driver.

Siegel's home page
Physics Home page | College of Science