Set .mot file of External load applied during CMC
Posted: Thu Aug 16, 2018 6:07 pm
I have a generic .xml external load file that I wish to use on several different iterations of CMC. For each iteration, I want to start a new CMCTool(setup), included in the setup file is the .xml external load file. I then want to pick a specific externalForce.mot file for the given trial. I have the following code but it is not working. Any tips?
model = Model([path 'scaled_upper_arm_CMC.osim']);
state = model.initSystem();
cmc = CMCTool(setup);
% Set-up trial specific output
exLoads = cmc.getExternalLoads.setDataFileName(motFile);
cmc.updExternalLoads();
% run CMC tool
cmc.run()
model = Model([path 'scaled_upper_arm_CMC.osim']);
state = model.initSystem();
cmc = CMCTool(setup);
% Set-up trial specific output
exLoads = cmc.getExternalLoads.setDataFileName(motFile);
cmc.updExternalLoads();
% run CMC tool
cmc.run()