Reading signal frequency

-i put voltage output from the signal generator is 30V peak to peak

A 30V input to a 5V device? And, what appears to be AC, too.

When you get a new Arduino, having toasted the one you have, don't do that. Pay some attention to what the Arduino can, and can not, handle.