Real Time Adaptive Spot Welding Control