Simulate measuring program, graphical interactive generation of program