I just fixed a problem I had with a bad TPS that I thought I would share.
Bike: 2012 Ducati 1199
Problem: Once the bike would warm up, the throttle would get very choppy and then the bike would cut off and the red engine light would turn on. I could let the bike cool down, and start up again...