I have recently changed to a new PC that has Matlab2017a and OpenSim 3.3 (both 64-bit) from my old one Matlab2014a and OpenSim 3.3 (64-bit again). I am running pretty much the identical code but now some of the API commands are outputing their results to the command Window. I can't figure out why this is happening, I have gone through the code and checked for (;) after the commands that prints results and it seems ok.
The commands that output to the command window are:
Model();
My code:
Code: Select all
model=Model(modelFile);
PointKinematics.setBody() and PointKinematics.setRelativeToBody();Loaded model RugbyModel_inertia_mass_mod from file C:\Users\ps605\Documents\PhD\OpenSim\C7C2_OPTIM.osim
My code:
Code: Select all
pkC2=PointKinematics(model);
pkC2.setBody(c2Body);
pkC2.setRelativeToBody(groundBody);
and ForwardTool.run();PointKinematics.setBody: set body to cerv2
PointKinematics.setRelativeToBody: set relative-to body to cerv2
My code:
Code: Select all
fdTool.run();
Usual FD tool output, state numbers, printing ect.
I am using these within an optimisation procedure that runs the script many times so I don't want it to keep writing the results as it may damage performance and its annoying.
If anyone has any suggestions I would greatly appreciate them!
Best regards,
Pavlos