I could not find a solution in the forum, so I would be happy if someone can held me:
I am trying to specify the path of the model I want to use for the ScaleTool via MATLAB.
Code: Select all
scaleTool = ScaleTool('C:\...\OSMATLAB_Batch_Walk\Subject01\ScaleSetup'\svegor_Setup_Scale.xml');
scaleTool.getGenericModelMaker().setModelFileName('C:\...\OSMATLAB_Batch_Walk\modelfile.osim');
scaleTool.getGenericModelMaker().setMarkerSetFileName('C:\...\OSMATLAB_Batch_Walk\Subject01\ScaleSetup\svegor_MarkerSet.xml');
scaleTool.run();
What I get is following:
Code: Select all
Step 1: Loading generic model
Exception:
Object: Cannot not open file
C:\...\OSMATLAB_Batch_Walk\Subject01\ScaleSetup\C:\...\MATLAB\OSMATLAB_Batch_Walk\modelfile.osim.
It may not exist or you do not have permission to read it.
Thrown at object.cpp:104 in Object().
line= 2632
If I would store the model file in the setup file folder, it works, but this is what I'm trying to avoid.
I also tries to type in the setup file "Unassigned", but this also does not work.
I hope you understand my problem and would be happy for any help or idea.
Yours, Sven