Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
-
RoZi A
- Posts: 13
- Joined: Sat Feb 06, 2016 10:04 pm
Post
by RoZi A » Mon Jul 23, 2018 1:44 pm
Hi Tom,
Thanks for the codes. I wanted to know if the below codes save the analysis results somewhere or no. Because I customized codes but couldn't find the analysis results.
I am looking for a way to add analysis in Forward Dynamics Tool (which is below codes) and save the result in a file or show the results in Workspace Matlab.
Any help is appreciated
Bests,
RoZi
tkuchida wrote: ↑Sat Feb 11, 2017 2:08 am
Code: Select all
import org.opensim.modeling.*
model = Model('myModel.osim');
ma = MuscleAnalysis();
model.addAnalysis(ma);
ft = ForwardTool();
ft.setModel(model);
ft.setInitialTime(0.);
ft.setFinalTime(1.);
ft.run();
-
RoZi A
- Posts: 13
- Joined: Sat Feb 06, 2016 10:04 pm
Post
by RoZi A » Wed Jul 25, 2018 10:12 am
Hi Tom,
Thanks for your help. I looked through the links you sent and also printResults() in API. My understanding is that to use this tool, we need to specify the directory where the results have been saved, and by using this command we can print that. My problem is that I don't know where the results are locating and I don't know its directory. For example, I wanted to see the muscleAnalysis results of TugOfWar_CompleteRunVisualize.m file . I added the result which I want to see by using addAnalysis() , but I don't know where it's going to be saved after running the file, therefore I can't specify the input of printResults. I wanted to know if the results which I added to the model by addAnalysis() tool, will be saved somewhere after running the model or no. If yes, how can I find the directory?
Thanks a lot
RoZi
-
RoZi A
- Posts: 13
- Joined: Sat Feb 06, 2016 10:04 pm
Post
by RoZi A » Thu Jul 26, 2018 9:44 am
Hi Tom,
I really appreciate it. That's what I want!
RoZi