Precision astrometry of a sample of speckle binaries and multiples with the adaptive optics facilities at the Hale and Keck II telescopes