The manual tells you how HSEROUT works, that's about all I can say since you're not showing the code you're having problems with.