Doubt about the Serial port Arduino

I have solved this problem. Now I get enter in the serial interrupt. The following code is a proof (you must enter by serial port in software arduino a data like this "$ADQ,P00,CH0\r" or this"$ADQ,P14,CH1\r" etc and the program will show this data. Is only a proof.... but when I include a Serial.print() in this code the program don't show the daTa if I enter the data. And if I include a big delay (for example delay(1000) I have very problems with the serial interrupt... I don't read this interrupt if the delay is long) The code is the following.

arduino_prueba_pic.ino (4.82 KB)