Narrative:

VFR flight utilizing flight following. ATC called out climb to 4500 for traffic at my 11:00; I was at 4200 and had been in a descent and set my autopilot to climb back to 4500; I failed to set the ascent rate so my auto pilot just held my 4200 foot altitude rather than climbing as I expected. I observed the other aircraft heading towards me at my 11:00 and it appeared above me. I decided the safest course at that time was to descend further below the other aircraft and make a left turn to try to keep as much separation as possible. ATC called out that they were at my same altitude but they were higher than me. I had another pilot with me and he agreed this was the best course of action once realizing we had not climbed to the requested 4500.ATC advised me to call for a possible pilot deviation and I provided the information above.

Google
 

Original NASA ASRS Text

Title: C172 pilot reported an NMAC in the vicinity of IGX airport.

Narrative: VFR flight utilizing flight following. ATC called out climb to 4500 for traffic at my 11:00; I was at 4200 and had been in a descent and set my autopilot to climb back to 4500; I failed to set the ascent rate so my auto pilot just held my 4200 foot altitude rather than climbing as I expected. I observed the other aircraft heading towards me at my 11:00 and it appeared above me. I decided the safest course at that time was to descend further below the other aircraft and make a left turn to try to keep as much separation as possible. ATC called out that they were at my same altitude but they were higher than me. I had another pilot with me and he agreed this was the best course of action once realizing we had not climbed to the requested 4500.ATC advised me to call for a possible pilot deviation and I provided the information above.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.