MSc Real Time Systems - Sample C Files and C programming Exercises

Prepared by Eric Goodyer

Room 4.10 James Went

For more information mail me at eg@dmu.ac.uk

OR eric.goodyer@ntlworld.com


Getting Started - LOOK HERE FOR LAB EXERCISES


-----------------------------------------------------------------------------
SOME SAMPLE C FILES

MUSIC.C Turns PC into simple note playing machine.
Demonstrates use of PC internal timer and I/O ports
MUSIC.EXE The programme

CONTROL.C Simulates a PID response using PC graphics
CONTROL.EXE The programme
COURB.FON Courier font used by CONTROL.EXE
COLOUR.DAT Sets up foreground & background colours for CONTROL.EXE

SKINTEST.C Uses a PC as the control for the Linear Skin Rheometer
An instrument that measures the elasticity of human skin in-vivo. The PC operating system is discarded, and is instead
used as a piece of electronics that monitors the position of the measuring probe at a rate of 1kHz.
SKINTEST.EXE Programme
SETUP.DAT Setup file used by CONTROL.EXE
NEW.DAT Calibration file for LSR kit
COURB.FON Courier font used by CONTROL.EXE

NEWP.C Code that measures the width of fibres using a laser
NEWP.EXE Programme
EGAVGA.BGI Borland Graphics Interface library
To run this code enter NEWP/D to a DOS prompt, otherwise it tries to find the laser and line scan camera

Last update 8 Jan 2002