I am having issues editing the Analyzer tool with Matlab to run batch processing of Joint Contact analysis. I am not able to edit the <forces_file> name under the Analysis Set section of the tool. My script works by reading in generic XML setup files and rewriting information from my model and then running the full tool.
I have been able to edit all parameters that I need for each subject, apart from the <forces_file> tag, including tags that fall over or under the Analysis Set section of the tool, and have not had problems with scaling, IK, ID, or SO tools.
For example, I was able to read in the Generic XML file, set the model name to my scaled model (and other tags), and set the initial and final time for the Analysis Set with the following.
Code: Select all
jcTool = AnalyzeTool([InitialPath 'Generic_JCSETUP.xml'])
jcTool.setModelFilename([subjectDir 'ScaleResults\' subjectNo '_scaled_weighted_matlab.osim']);
.
.
.
jcTool.getAnalysisSet().get(0).setStartTime(initial_time)
jcTool.getAnalysisSet().get(0).setEndTime(final_time)
Code: Select all
jcTool.getAnalysisSet().get(0).setForcesFileName([OS_output.results_so '\' SO_forces])
and
Code: Select all
jcTool.getAnalysisSet().getForcesFileName(0).setForcesFileName([OS_output.results_so '\'
SO_forces])
Code: Select all
jcTool.setForcesFileName([OS_output.results_so '\' SO_forces])
Code: Select all
Unrecognized function or variable 'setForcesFileName'.
Code: Select all
'setForcesFileName'
Code: Select all
'getForcesFileName'
Any help is greatly appreciated.
Thanks