An ultrasonic imaging system having a real-time arbitrary mmode. This device includes a laser interferometer capable of generating a laser beam directed towards the wafer and detecting light reflected from the wafer, and a window disposed adjacent to a hole formed through a platen. Certain bits are extracted form the shift register and are used to generate the code sequences.