2014 Sportsman 570 TPS Questions

Hi, new to the forum and recently purchased the 570. It had about 35 hours on it and ran great; I recently hit around 56 hours and it started acting up and threw an error code (520194-7). This seems to only happen when I’m slow trail riding. I’ve searched numerous forums and web sites and have adjusted the throttle cable and cleaned the contacts in the throttle leaver housing which didn’t help. Now I’m trying to figure out which wires are which that go to the TPS. I know one is for the 5v reference, one will be ground and the other is the signal to the ECU; wanting to check to see if it is out of adjustment or if the TPS needs to be replaced.