Simple function for pulse error.