Knowledge Engineering for Real Time Control