I am trying to have my simulations be saved automatically under specified names as they are automatically computed in my app, but I am having trouble getting them to save under specified names.
Both of the following methods work fine:
- model.save("filename","m")
- model.save("filename","java")
But I am unable to save the file as a mph file:
- model.save("filename","mph") gives error "Unknown output type," as does
- model.save("filename.mph", "mph")
And
- model.save("filename") won't compile with error "Unhandled exception type IOExpection," as does
- model.save("filename.mph")
saveApplication(); doesn't allow me to specify names the name and saveApplicationAs(): requires user input.
How can I save the model files under specified names programatically?