Ultrasonic instrumentation: a microprocessor-based profile determination