Offline simulation to on-site programming