There are a few gps data logging applications available on the market (I personally have My Tracks installed - it's from the Google team, but I've not yet really put it through the works). I don't know if any of them would output NMEA files, but if not, you could use an application like GPS Babel to convert the GPX to NMEA.
Cheers, Carl.