TODAY is a Great Day to visit our Store and order the parts you need for your truck ! ! !
The throttle position sensor can be out of adjustment and will throw a code 24. From your troubleshooting it doesn't sound like the vss is at fault.
hmm- did you check( visual) the wiring between the tps and the ecm? Connectors look ok?Is the truck shifting ok? The tps is a potentiometer, and it can work ok but still have a dead spot in it, where 0 volts are detected by the ecm, and then a code gets set. But it might be working at the lower and higher ends, so you see the correct voltages there and still have a bad sensor. Most car techs use an oscillascope to check them. That's about all i know about them. The problem might still be in the vss- the speedo cable,transmission speed sensor system and wiring. I don't have a 4wd, so I'm not sure whether the transfer case is involved or not. not much help, huh?
If you have a timing light: first, verify your base timing (with the EST connector unplugged); second, connect the timing light to the coil wire and run the engine while aiming the light at the fuel spray from the injector nozzles to check for a distorted spray pattern.-----------------------