Hi there,
I am trying to run a Scaling Tool to scale the Lenhart Model, however I am always getting the same message:
Java exception occurred:
java.lang.RuntimeException: ScaleTool: No model specified.
at org.opensim.modeling.opensimActuatorsAnalysesToolsJNI.ScaleTool_run(Native Method)
at org.opensim.modeling.ScaleTool.run(ScaleTool.java:109)
Even though I already specified the model with this command:
scaling.getGenericModelMaker().setModelFileName('lenhart2015_CAR.osim');
I honestly don't understand why this keeps happening, so if anyone came across this issue or know how to resolve this please respond!
Best regards,
Rodrigo
Scaling Tool error - No model specified
- Rodrigo Mateus
- Posts: 55
- Joined: Thu Feb 22, 2018 3:07 am
- Ayman Habib
- Posts: 2240
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Scaling Tool error - No model specified
Hi Rodrigo,
Because the scale tool performs multiple tasks (scaling and marker-placement), each of these steps requires the input model to be specified. Typically the application populates these for you but from Matlab you'll need to specify these file names explicitly including the name of the output file if needed. I'd suggest you review the XML file and check for XML tags that contain "model_file" and make sure they are populated for the task(s) you're executing. Please keep an eye on errors/warnings as it's possible that the file name(s) are specified but the model(s) can't be opened for other reasons (Path issues, typos, working directory issues etc.)
Hope this helps,
-Ayman
Because the scale tool performs multiple tasks (scaling and marker-placement), each of these steps requires the input model to be specified. Typically the application populates these for you but from Matlab you'll need to specify these file names explicitly including the name of the output file if needed. I'd suggest you review the XML file and check for XML tags that contain "model_file" and make sure they are populated for the task(s) you're executing. Please keep an eye on errors/warnings as it's possible that the file name(s) are specified but the model(s) can't be opened for other reasons (Path issues, typos, working directory issues etc.)
Hope this helps,
-Ayman