Hi Ken,

HPWM is hardware based, so it keeps going while other things happen.

Check out the manual:
It can run continuously in the background
while the program is executing other instructions.

You might try trouble shooting your output signal, to see what is happening.