Urgent help please

Hello im need your help, its urgent. My sustain pedal is all over the place, sometimes when i press it just some notes get sustained and somes dont, other times they just dont, its driving me crazy, im having problems with ewql pianos AND other VSTs. I have a yamaha clavinova clp-230 and i use this as the midi in. Here is a picture of what it looks like when i record.

Can someone help me?
Thankyou very much.
Captura de pantalla 2013-05-08 a las 11.44.18.png

It looks like i have pressed the sustain pedal one hundred thousand times… its just weird. I dont know how to fix this, im pretty new at midi any help much appreciated . Thanks