Automatic measurement program generation software